Header

Listing all build commands

This method allows you to retrieve a list of build commands in a project using the DeployHQ API.

URL

/projects/<project>/build_commands

HTTP Method

GET

Replace <project> with the permalink of the project.

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/projects/atomic-deployment-test/build_commands

Example JSON

[
  {
    "id":13216,
    "project_id":null,
    "description":"NPM Build","command":"npm install --save --quiet\r\nnpm run build",
    "halt_on_error":true,
    "position":1,
    "created_at":"2019-01-31T09:15:20.000+00:00",
    "updated_at":"2019-03-04T16:58:25.000+00:00",
    "identifier":"608d9d9a-a18d-436b-a1df-69e43fd4de4b",
    "parent_type":"Project",
    "parent_id":350494,
    "template_name":"npm"
  }
]