Skip to main content

Update a single field of a Specific Webhook Endpoint

This endpoint updates a specific field of a specific webhook endpoint

info

This operation requires authentication and admin role.

HTTP Request

PATCH /api/v2/webhook/endpoint/{id}/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this endpoint
» is_activebodybooleanfalseEndpoint active status
» targetbodystring(uri)trueEndpoint target
» descriptionbodystringfalseEndpoint description
» eventsbodylist[object]trueEndpoint events objects
»» typebodystringtrueThe webhook event type
» ssl_cert_verificationbodybooleanfalseIf true, the SSL certificates for HTTPS requests must be enabled

Example Body Parameters

{
"is_active": "boolean",
"target": "string",
"description": "string",
"events": [
{
"type": "string"
}
],
"ssl_cert_verification": "boolean"
}

Example Request

const inputBody = '{
"is_active": "boolean",
"target": "string",
"description": "string",
"events": [
{
"type": "string"
}
],
"ssl_cert_verification": "boolean"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/webhook/endpoint/{id}/',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeEndpoint

Example responses

{
"id": "integer",
"created_at": "string",
"updated_at": "string",
"is_active": "boolean",
"target": "string",
"description": "string",
"events": [
{
"type": "string",
"added_at": "string"
}
],
"ssl_cert_verification": "boolean"
}