department_id is auto-synced from the team's department. Setting team_id to null removes both team and department. Permission: write taskscurl --location --request PUT 'https://api-dev.commandroom.ai/api/api/tasks/42/team' \
--header 'Authorization: Bearer {{token}}' \
--header 'X-Tenant-UUID: ' \
--header 'Content-Type: application/json' \
--data '{
"team_id": 1
}'{
"data": {
"task_id": 1,
"project_id": 1,
"title": "Sample Title",
"slug": "sample-slug",
"team_id": 1,
"team": {},
"created_at": "2026-01-15T10:30:00.000000Z",
"updated_at": "2026-01-15T10:30:00.000000Z"
}
}