Update Webhook
const url = 'https://api.wink.travel/api/managing-entity//webhook/example';const options = { method: 'PATCH', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"name":"","entity":"","enabled":true,"eventUrl":"","eventList":[""]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.wink.travel/api/managing-entity//webhook/example \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "name": "", "entity": "", "enabled": true, "eventUrl": "", "eventList": [ "" ] }'Update an existing webhook
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Identifier of the managing entity that owns the webhook
Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Descriptive name of webhook.
Example
Webhook prodName of the application.
object
Managing entity identifier.
Example
123456789Descriptive name of managing entity.
Example
Managing entity prodExample
App 1Whether this webhook is enabled.
Example
trueThe url to POST event to.
Example
https://www.webhook.com/eventResponses
Section titled “ Responses ”OK
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Unique owner record identifier
Unique owner record identifier
Name of company owner.
Descriptive name of webhook.
Whether this webhook is enabled.
The url to POST event to.
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "userIdentifier": "", "ownerIdentifier": "", "ownerName": "", "name": "", "enabled": true, "eventUrl": "", "eventList": [ "" ]}Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}