Attach files to a run

View as Markdown

Links one or more pooled files to a playbook run (optionally a specific task). The body carries fileIds and an optional taskId. Returns which file ids attached vs. were skipped (missing / being deleted / pending approval). Requires file:write on the project.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired
runIdstringRequired

Request

This endpoint expects an object.
fileIdslist of stringsRequired
The pooled file ids to attach to the run.
taskIdstringOptional
Attach the files to a specific task.

Response

The attach outcome.
attachedlist of strings
skippedlist of strings

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
503
Service Unavailable Error