Update a webhook.
PUT {{baseUrl}}/v4/webhooks/:uid
Updates an existing webhook to receive events from a location or an organization.
One of locationUid
or organizationUid
is required, with organizationUid
taking precedence.
All other parameters not provided will be left unchanged.
Request Body
{"disabled"=>true, "eventTypes"=>["message.received"], "secret"=>"something-no-one-will-know", "url"=>"https://www.podium.com/"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"createdAt":"2015-01-23T23:50:07Z","disabled":true,"eventTypes":["message.sent"],"locationUid":"00000000-0000-0000-0000-000000000000","organizationUid":"00000000-0000-0000-0000-000000000000","secret":"magna voluptate qui","uid":"00000000-0000-0000-0000-000000000000","updatedAt":"2015-01-23T23:50:07Z","url":"https://www.podium.com/"},"metadata":{"url":"https://www.podium.com/"}}