Creates a new webhook

Request Information

URI Parameters

None.

Body Parameters

WebhookCreateUpdateModel

WebhookCreateUpdateModel
Name Description Type Additional information
Url

Url to be called

string
ActivityTypes

What activities this webhook will be called for. Webhook will be called for all if this is empty

Collection of ActivityType
IsDisabled

Is Webhook disabled

boolean

Request Formats

application/json, text/json

Sample:
{
  "Url": "sample string 1",
  "ActivityTypes": [
    "AccountCreated",
    "AccountCreated"
  ],
  "IsDisabled": true
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Sample Request

https://api.servicereef.com/v1/Webhooks?model={model}

Response Information

Resource Description

Returns Id of newly created webhook if successful

IHttpActionResult

None.

Try API

Try this endpoint by entering your credentials and using the API Explorer.

Try With API Explorer

Response Formats

application/json, text/json

Sample:

Sample not available.