Header

List build commands

This method allows you to list all build commands within a project template.

URL

/templates/<permalink>/build_commands
  • Replace <permalink> with the permalink of your template.

HTTP Method

GET

Supported Parameters

None

Example cURL Request

curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
https://atech.deployhq.com/templates/api-create/build_commands

Example response

[
  {
    "id":20995,
    "project_id":null,
    "description":"NPM Build",
    "command":"npm install --save --quiet\r\nnpm run build",
    "halt_on_error":true,
    "position":1,
    "created_at":"2019-07-08T16:16:02.000+01:00",
    "updated_at":"2019-07-08T16:16:02.000+01:00",
    "identifier":"a35f9fc1-752f-401d-a86e-e30dadc7241b",
    "parent_type":"Template",
    "parent_id":8554,
    "template_name":"npm"
  }
]