Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
PUT | /webhook/endpoints/{id} | Update webhook endpoint |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | query | Guid? | Yes | The company id, if empty will use the company id for the user you are logged in with. |
Url | body | string | Yes | The webhook endpoint URL. |
Id | path | string | Yes | The ID of the webhook endpoint. |
EventTypes | body | List<string> | Yes | List of event types. At least one event type is required. |
Description | body | string | No | |
Disabled | body | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Description | form | string | No | |
Url | form | string | No | |
Id | form | string | No | |
Disabled | form | bool | No | |
EventTypes | form | List<string> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /webhook/endpoints/{id} HTTP/1.1
Host: api.bokamera.se
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CompanyId: 00000000-0000-0000-0000-000000000000,
Url: String,
Id: String,
EventTypes:
[
String
],
Description: String,
Disabled: False
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Description: String, Url: String, Id: String, Disabled: False, EventTypes: [ String ] }