Tasks
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
POST | |
GET | |
PATCH | |
POST | |
POST |
List all tasks
Get a list of tasks for the current project, with optional filtering by origin product, stage, organization, repository, and created_by.
Required API key scopes
task:readPath parameters
- project_idstring
Query parameters
- created_byinteger
- limitinteger
- offsetinteger
- organizationstring
- origin_productstring
- repositorystring
- stagestring
Response
Example request
GET /api /projects /:project_id /tasksExample response
Status 200 List of tasks
List all tasks
Get a list of tasks for the current project, with optional filtering by origin product, stage, organization, repository, and created_by.
Required API key scopes
task:readPath parameters
- project_idstring
Query parameters
- created_byinteger
- limitinteger
- offsetinteger
- organizationstring
- origin_productstring
- repositorystring
- stagestring
Response
Example request
GET /api /projects /:project_id /tasksExample response
Status 200 List of tasks
Create tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- project_idstring
Request parameters
- titlestring
- descriptionstring
- assigneestring
Response
Example request
POST /api /projects /:project_id /tasksExample response
Status 201
Create tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- project_idstring
Request parameters
- titlestring
- descriptionstring
- assigneestring
Response
Example request
POST /api /projects /:project_id /tasksExample response
Status 201
Retrieve tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /tasks /:idExample response
Status 200
Retrieve tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /tasks /:idExample response
Status 200
Update tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
Request parameters
- titlestring
- descriptionstring
- origin_product
- repositorystring
- github_integrationinteger
- json_schema
Response
Example request
PATCH /api /projects /:project_id /tasks /:idExample response
Status 200
Update tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
Request parameters
- titlestring
- descriptionstring
- origin_product
- repositorystring
- github_integrationinteger
- json_schema
Response
Example request
PATCH /api /projects /:project_id /tasks /:idExample response
Status 200
Delete tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /projects /:project_id /tasks /:idExample response
Status 204 No response body
Delete tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /projects /:project_id /tasks /:idExample response
Status 204 No response body
Create tasks run
Create a new task run and kick off the workflow.
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
Response
Example request
POST /api /projects /:project_id /tasks /:id /runExample response
Status 200 Task with updated latest run
Status 404 Task not found
Create tasks run
Create a new task run and kick off the workflow.
Required API key scopes
task:writePath parameters
- idstring
- project_idstring
Response
Example request
POST /api /projects /:project_id /tasks /:id /runExample response
Status 200 Task with updated latest run
Status 404 Task not found
List all tasks runs
Get a list of runs for a specific task.
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
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
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
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
Status 400 Invalid update data
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
Status 400 Invalid log entries
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 /artifacts