/r/{repoId}/events/{id}
POST
Creating a webhook
Parameters
repoId/string/required
The unique ID of the repository.
id/string/required
Responses
201
The webhook was created successfully.
400
Invalid data was transferred.
Show operation
const options = {
method: 'POST',
headers: {accept: 'application/json', 'content-type': 'application/hal+json'},
body: '{"apiKey":"cryptoKey","description":"Webhook for the validation of invoices.","enabled":"test","handleResponse":"NONE | STATUS | STATUS_AND_BODY","id":"00000000-0000-0000-0000-000000000000","restrictions":"test","retry":"test","timeout":"test","uri":"https://my-company.com/webhooks"}'
};
fetch('https://example.com/dmsconfig/r/REPOID/events/ID', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));