PUT api/webhooks/registrations/{id}

Updates an existing WebHook registration.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The WebHook ID.

string

Required

Body Parameters

The new to use.

WebHook
NameDescriptionTypeAdditional information
Id

Gets or sets a unique ID of the WebHook. This ID can be used to later refer to the WebHook in case it needs to be updated or deleted. The ID is by default in the form of a and if the field is cleared it will be reset to a .

string

None

WebHookUri

Gets or sets the URI of the WebHook.

URI

Required

Secret

Gets or sets the secret used to sign the body of the WebHook request.

string

None

Description

Gets or sets a description of the WebHook.

string

None

IsPaused

Gets or sets a value indicating whether the WebHook is paused.

boolean

None

Filters

Gets the set of case-insensitive filters associated with this WebHook. The filters indicate which WebHook events that this WebHook will be notified for. The list of filters can be obtained from the registered instance.

Collection of string

None

Headers

Gets a set of additional HTTP headers that will be sent with the WebHook request.

Dictionary of string [key] and string [value]

None

Properties

Gets a set of additional case-insensitive properties that will be sent with the WebHook request as part of the HTTP request entity body.

Dictionary of string [key] and Object [value]

None

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "WebHookUri": "http://webapihelppage2.com",
  "Secret": "sample string 3",
  "Description": "sample string 4",
  "IsPaused": true,
  "Filters": [],
  "Headers": {},
  "Properties": {}
}

application/xml, text/xml

Sample:
<WebHook xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.WebHooks">
  <Description>sample string 4</Description>
  <Headers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <Id>sample string 1</Id>
  <IsPaused>true</IsPaused>
  <Properties xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <Secret>sample string 3</Secret>
  <WebHookUri>http://webapihelppage2.com/</WebHookUri>
</WebHook>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.