Tasks-2
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
PATCH |
Create tasks runs artifacts presign
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
Retrieve tasks runs logs
Fetch the logs for a task run. Returns JSONL formatted log entries.
Required API key scopes
task:readPath parameters
- idstring
- project_idstring
- task_idstring
Example request
GET /api /projects /:project_id /tasks /:task_id /runs /:id /logsExample response
Status 200 Log content in JSONL format
Status 404 Task run 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