Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Build trigger

Abort a site search spidering and mark it as failed

Examples

1
DELETE https://site-api.datocms.com/build-triggers/:build_trigger_id/abort_indexing HTTP/1.1
2
Authorization: Bearer YOUR-API-TOKEN
3
Accept: application/json
4
X-Api-Version: 3
Terminal window
1
curl -g 'https://site-api.datocms.com/build-triggers/:build_trigger_id/abort_indexing' \
2
-X DELETE \
3
-H "Authorization: Bearer YOUR-API-TOKEN" \
4
-H "Accept: application/json" \
5
-H "X-Api-Version: 3"
1
await fetch(
2
"https://site-api.datocms.com/build-triggers/:build_trigger_id/abort_indexing",
3
{
4
method: "DELETE",
5
headers: {
6
Authorization: "Bearer YOUR-API-TOKEN",
7
Accept: "application/json",
8
"X-Api-Version": "3",
9
},
10
},
11
);