POST api/webhook/create/{triggerName}

Creates a new webhook in the system (scoped to agency)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
triggerName

Name of the trigger.

string

Required

Body Parameters

Webhook callback details

Dezrez.Core.DataContracts.External.Api.Webhook.CreateWebhookDataContract
NameDescriptionTypeAdditional information
WebhookUrl

string

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateWebhookDataContract'.

application/json, text/json

Sample:
{
  "WebhookUrl": "sample string 1"
}

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.