Webhooks
Change an endpoint’s address or events
Needs the webhooks:write scope. About scopes
keyheader
AuthorizationBearer <traki_account_…>id*stringFormat
uuidapplication/json- body
url?stringFormat
uriLength
length <= 2000events?array<>Items
1 <= items <= 26Success
application/json- response
id*stringFormat
uuidcode*stringownerType*stringValue in
"WORKSPACE""SOURCE""BUYER"owner*|nullurl*stringevents*array<string>state*stringValue in
"ACTIVE""FAILING""PAUSED"failureCount*integerRange
-9007199254740991 <= value <= 9007199254740991lastDeliveryAt*|nulllastFailureNote*string|nullcreatedAt*stringFormat
date-timecurl -X PATCH 'https://api.traki.io/v1/account/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "ownerType": "WORKSPACE", "owner": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "url": "string", "events": [ "string" ], "state": "ACTIVE", "failureCount": -9007199254740991, "lastDeliveryAt": "2019-08-24T14:15:22Z", "lastFailureNote": "string", "createdAt": "2019-08-24T14:15:22Z"}