Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Build trigger

Delete a build trigger

Returns

Returns a resource object of type build_trigger.

Examples

DELETE https://site-api.datocms.com/build-triggers/:build_trigger_id HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Terminal window
curl -g 'https://site-api.datocms.com/build-triggers/:build_trigger_id' \
-X DELETE \
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3"
await fetch("https://site-api.datocms.com/build-triggers/:build_trigger_id", {
method: "DELETE",
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
},
});
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": {
"type": "build_trigger",
"id": "1822",
"attributes": {
"name": "Custom build trigger",
"adapter": "custom",
"adapter_settings": {
"trigger_url": "http://some-url.com/trigger",
"headers": {
"Authorization": "Bearer abc123"
},
"payload": {
"type": "build_request"
}
},
"last_build_completed_at": "2017-03-30T09:29:14.872Z",
"build_status": "success",
"webhook_url": "https://webhooks.datocoms.com/xA1239ajsk123/deploy-results",
"indexing_status": "success",
"frontend_url": "https://www.mywebsite.com/",
"indexing_enabled": true,
"autotrigger_on_scheduled_publications": true
}
}
}