Skip to content
TALA
Esc
navigateopen⌘Jpreview

Replace the assets linked to a task

Organization-owned assets only. The whole set is validated before anything is written; an empty array detaches all.

PUT/api/tasks/{taskId}/assets
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
taskIdstringrequired
Header parameters
x-organization-idstring
Target organization id. Defaults to the caller's personal organization when omitted.
Request body
requiredapplication/json
object
Responses
403Task assets must belong to the task organization
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT "http://localhost:8000/api/tasks/string/assets" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response
Task assets must belong to the task organization