Show examples in:
Javascript HTTP

Content Management API > Deploy activity

Deploy activity

Represents an event occurred during the deploy process of your administrative area.

Object payload

id string

ID of menu item

Example: "34"
type string

Must be exactly "build_event".

attributes.event_type enum

The type of activity

Example: "response_success"
request_success

Build requested successfully

request_failure

Build request failed

response_success

Successful build notification

response_failure

Failed build notification

request_aborted

Build request aborted by user

response_unprocessable

Received notification is not valid

indexing_started

Site indexing started

indexing_success

Site indexing completed successfully

indexing_failure

Site indexing failed

attributes.data object

Any details regarding the event

Example: { request_body: '{"object_kind":"build","ref":"master","tag":false,"before_sha":"0000000000000000000000000000000000000000","sha":"ecfccf5ea28af900c14b499a2b762e029c7492","build_id":10495,"build_name":"build","build_stage":"test","build_status":"success","build_started_at":"2016-09-20 18:49:22 UTC","build_finished_at":"2016-09-20 18:50:24 UTC","build_duration":62.279854524,"build_allow_failure":false,"project_id":195,"project_id":"Stefano Verna / awesome-website","user":{"id":null,"name":null,"email":null},"commit":{"id":6754,"sha":"ecfccf5ea28af900c6614b499a2b762e029c7492","message":"Update gems\\n","author_name":"Stefano Verna","author_email":"s.verna@datocms.com","status":"success","duration":62,"started_at":"2016-09-20 18:49:22 UTC","finished_at":"2016-09-20 18:50:24 UTC"},"repository":{"name":"awesome-website","url":"git@gitlab.com:stefanoverna/awesome-website.git","description":"","visibility_level":0}}', request_headers: { Via: "1.1 vegur", Host: "webhooks.datocms.com", Origin: null, Version: "HTTP/1.1", Connection: "close", "Connect-Time": "0", "X-Request-Id": "5c1beced-0fe3-4c5b-b45d-68ba4a15b5f3", "X-Gitlab-Event": "Build Hook", "X-Forwarded-For": "46.101.135.219", "X-Request-Start": "1474397424903", "Total-Route-Time": "0", "X-Forwarded-Port": "443", "X-Forwarded-Proto": "https", }, }
attributes.created_at date-time

The moment the activity occurred

Example: "2016-09-20T18:50:24.914Z"
relationships.build_trigger.data

Source build trigger

Available endpoints