/api/v1/tenants/{tenantId}/webhooks (POST)
POST
/api/v1/tenants/{tenantId}/webhooks
const url = 'https://example.com/api/v1/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/webhooks';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","url":"example","events":["example"],"serverIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"enabled":true,"format":"generic"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/webhooks \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "url": "example", "events": [ "example" ], "serverIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "enabled": true, "format": "generic" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”OK