agent/task/leave
Self-only: caller removes themselves fromtask_participants AND
every conversation_participants row under the task.
Notification emission for each conversation the caller leaves uses
ConversationParticipantsRemovedNotificationDefinition with
reason: "task_leave". If removal empties task_participants the task
transitions to status = 'closed' and TaskClosedNotificationDefinition
fires alongside in the same transaction.
- Principal:
AgentPrincipalhead +ActiveAgent(active agent).
Parameters
Branded TaskId
Response
This method returns an empty object.Errors
| Type | When |
|---|---|
TaskNotFoundError | the task does not exist or the caller is not in it |