POST api/webhooks/registrations

Request Information

URI Parameters

None.

Body Parameters

WebHook
NameDescriptionTypeAdditional information
Id

string

None.

WebHookUri

URI

Required

Secret

string

None.

Description

string

None.

IsPaused

boolean

None.

Filters

Collection of string

None.

Headers

Dictionary of string [key] and string [value]

None.

Properties

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>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

WebHook
NameDescriptionTypeAdditional information
Id

string

None.

WebHookUri

URI

Required

Secret

string

None.

Description

string

None.

IsPaused

boolean

None.

Filters

Collection of string

None.

Headers

Dictionary of string [key] and string [value]

None.

Properties

Dictionary of string [key] and Object [value]

None.

Response 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>