Update webhook subscription
Resource
PATCH api/v1/webhook/subscribe/[ID]
Authorization
OAuth 2.0 bearer token with Business scope.
curl -X PATCH \
https://api.gett.com/v1/webhook/subscribe/[ID] \
-H 'Accept: application/json' \
-H 'Authorization: Bearer [TOKEN]' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{"hook_address":"http://example.com/updated-webhook"}’
{
"created_at": "2018-03-18T12:00:25.543804071+02:00",
"updated_at": "2018-03-18T12:00:25.543804071+02:00",
"hook_address": "http://example.com/updated-webhook",
"secret_id": "8750d38f-62f0-418b-9322-106fa4a3fe28",
"id": "2e2ad86e-13d8-4348-b4ef-9b67051802fe",
}
Name | Type | Description |
---|---|---|
created_at | date | RFC 3339 date. states when subscription has been created. |
updated_at | date | RFC 3339 date. states when subscription has been updated. |
hook_address | string | valid url of endpoint to receive updates. |
secret_id | string | uuid verification token used to validate that request was sent from Gett. |
id | string | uuid subscription id. |
Updated almost 3 years ago