Turn a webhook Sotirea turned off back on
POST
/v1/webhooks/{id}/enable
const url = 'https://api.sotirea.com/v1/webhooks/1/enable';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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://api.sotirea.com/v1/webhooks/1/enable \ --header 'Authorization: Bearer <token>'Sotirea turns a webhook off once every delivery to it has failed for 3 days and at least 10 attempts. Turning it on starts a clean run; deliveries given up can then be resent.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
The webhook’s id.
Responses
Section titled “Responses”Done.
Media typeapplication/json
object
data
required
object
done
required
boolean
meta
object
request_id
Quote it when asking about a request; it is in the X-Request-Id header too.
string
success
required
Example
{ "success": true}default
Section titled “default”Refused or failed, in words a person can act on.
Media typeapplication/json
object
error
required
object
code
required
string
fields
object
key
additional properties
string
message
required
string
meta
object
request_id
Quote it when asking about a request.
string
success
required
Example
{ "success": false}