Magidoc

associateColorTag
Mutation

Attaches an existing ColorTag to a Todo or RecipeTodo. id is the ColorTag id, not the task id; pass exactly one of todoId or recipeTodoId. The tag must belong to the task's own Project or Recipe — tag sets are scoped per Project and per Recipe, and cross-container associations fail with not_allowed.

Attaching the special Milestone tag converts the task into a milestone: a Todo's startDate and duration are cleared, its dependenciesType becomes "finish-to-finish", and project progress is recalculated (a RecipeTodo only loses duration).

Requires update permission on the target task — a user assigned to the Todo, a Project Admin, Stack Admin, or Workspace Admin; on the Recipe side, update access to the Recipe. Returns the ColorTag. Detach with disassociateColorTag.

Arguments

#

id

Non-null

ColorTag id.

recipeTodoId

todoId

Response

#

Returns ColorTag .

Example

#