Relate a chat or chat message to a task
Creates a relation between a task and either a Chat or a single ChatMessage. The task must be on a board. Visibility rules are enforced server-side: - Submission and public chats can attach to any task. - Creator chats only attach to tasks on creator-visibility boards. - Reviewer chats only attach to tasks on reviewer-visibility boards. For chat messages the visibility is derived from the message's parent chat. Requires update access on the task's board plus read access to the chat / message being attached.
Creates a relation between a task and either a Chat or a single ChatMessage. The task must be on a board. Visibility rules are enforced server-side:
- Submission and public chats can attach to any task.
- Creator chats only attach to tasks on creator-visibility boards.
- Reviewer chats only attach to tasks on reviewer-visibility boards.
For chat messages the visibility is derived from the message's parent chat. Requires update access on the task's board plus read access to the chat / message being attached.
Authorization
bearerAuth In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/tasks/497f6eca-6276-4993-bfeb-53cbbbba6f08/relations" \ -H "Content-Type: application/json" \ -d '{ "resourceId": "0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b", "resourceType": "chatMessage" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8", "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6", "resourceType": "chat", "creatorId": "688ebf54-d343-4104-8711-82c2feac534a", "createdAt": 0, "updatedAt": 0}