Task-runs
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
POST | |
POST | |
POST | |
PATCH |
List all tasks runs
Required API key scopes
task:readPath parameters
- project_idstring
- task_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /tasks /:task_id /runsExample response
Status 200 List of task runs
RESPONSE
Create tasks runs
Create a new run for a specific task.
Required API key scopes
task:writePath parameters
- project_idstring
- task_idstring
Response
Example request
POST /api /projects /:project_id /tasks /:task_id /runsExample response
Status 201 Created task run
RESPONSE
Retrieve tasks runs
API for managing task runs. Each run represents an execution of a task.
Required API key scopes
task:readPath parameters
- idstring
- project_idstring
- task_idstring
Response
Example request
GET /api /projects /:project_id /tasks /:task_id /runs /:idExample response
Status 200
RESPONSE
Update tasks runs
API for managing task runs. Each run represents an execution of a task.
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
- task_idstring
Request parameters
- status
- branchstring
- stagestring
- output
- state
- error_messagestring
Response
Example request
PATCH /api /projects /:project_id /tasks /:task_id /runs /:idExample response
Status 200 Updated task run
RESPONSE
Status 400 Invalid update data
RESPONSE
Status 404 Task run not found
Create tasks runs append log
Append one or more log entries to the task run log array
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
- task_idstring
Request parameters
- entriesarray
Response
Example request
POST /api /projects /:project_id /tasks /:task_id /runs /:id /append_logExample response
Status 200 Run with updated log
RESPONSE
Status 400 Invalid log entries
RESPONSE
Status 404 Run not found
Create tasks runs artifacts
Persist task artifacts to S3 and attach them to the run manifest.
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
- task_idstring
Request parameters
- artifactsarray
Response
Example request
POST /api /projects /:project_id /tasks /:task_id /runs /:id /artifactsExample response
Status 200 Run with updated artifact manifest
RESPONSE
Status 400 Invalid artifact payload
RESPONSE
Status 404 Run not found
Create tasks runs artifacts presign
Returns a temporary, signed URL that can be used to download a specific artifact.
Required API key scopes
task:readPath parameters
- idstring
- project_idstring
- task_idstring
Request parameters
- storage_pathstring
Response
Example request
POST /api /projects /:project_id /tasks /:task_id /runs /:id /artifacts /presignExample response
Status 200 Presigned URL for the requested artifact
RESPONSE
Status 400 Invalid request
RESPONSE
Status 404 Artifact not found
Update tasks runs set output
Update the output field for a task run (e.g., PR URL, commit SHA, etc.)
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
- task_idstring
Response
Example request
PATCH /api /projects /:project_id /tasks /:task_id /runs /:id /set_outputExample response
Status 200 Run with updated output
RESPONSE