Sorry, no results found for "".
Returns a resource object of type build_trigger.
GET https://site-api.datocms.com/build-triggers/:build_trigger_id HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3
curl -g 'https://site-api.datocms.com/build-triggers/:build_trigger_id' \ \ -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", { headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", },});
HTTP/1.1 200 OKContent-Type: application/jsonCache-Control: cache-control: max-age=0, private, must-revalidateX-RateLimit-Limit: 30X-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 } }}