Skip to the page

API reference

Tags

The tags of a workspace: list, rename, recolour, merge and delete.

GET List Tags, or autocomplete them

/api/clist/v1/workspaces/{workspaceId}/tags

API key scope: workspace.view

q matches the normalized form (case, whitespace and accents ignored), prefix matches first, so a client can offer an existing Tag instead of a near-duplicate.

Parameters

NameInTypeRequiredDescription
qquerystring (up to 200 characters)no
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • tags array of object required
      • id string (uuid) required
      • name string required As first typed; matching ignores case, whitespace and accents.
      • color one of: "gray", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink" required
      • checklist_count integer (at least 0) required Live checklists carrying this Tag.
      • created_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.

Errors come in the error format.

GET Read a Tag

/api/clist/v1/workspaces/{workspaceId}/tags/{tagId}

API key scope: workspace.view

checklist_count is what to confirm before renaming, merging or deleting it.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
tagIdpathstring (uuid)yes

Responses

  • 200 application/json
    • id string (uuid) required
    • name string required As first typed; matching ignores case, whitespace and accents.
    • color one of: "gray", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink" required
    • checklist_count integer (at least 0) required Live checklists carrying this Tag.
    • created_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
    • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.

Errors come in the error format.

PATCH Rename or recolor a Tag

/api/clist/v1/workspaces/{workspaceId}/tags/{tagId}

API key scope: workspace.update

A new name that matches another Tag is conflict (tag_exists; merge them instead). Changing only the case or accents of its own name is fine.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
tagIdpathstring (uuid)yes

Request

Request body application/json (required): object

  • name string (up to 200 characters)
  • color one of: "gray", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"

Responses

  • 200 application/json
    • id string (uuid) required
    • name string required As first typed; matching ignores case, whitespace and accents.
    • color one of: "gray", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink" required
    • checklist_count integer (at least 0) required Live checklists carrying this Tag.
    • created_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
    • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.

Errors come in the error format.

DELETE Delete a Tag

/api/clist/v1/workspaces/{workspaceId}/tags/{tagId}

API key scope: workspace.update

Takes the Tag off every checklist. Read the Tag first for the count to confirm; the response repeats it.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
tagIdpathstring (uuid)yes

Responses

  • 200 application/json
    • affected_checklists integer (at least 0) required

Errors come in the error format.

POST Merge a Tag into another

/api/clist/v1/workspaces/{workspaceId}/tags/{tagId}/merge

API key scope: workspace.update

Every checklist carrying this Tag carries into afterwards (once), and this Tag is deleted. Reports how many checklists it affected.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes
tagIdpathstring (uuid)yes

Request

Request body application/json (required): object

  • into string (uuid) required

Responses

  • 200 application/json
    • tag object required
      • id string (uuid) required
      • name string required As first typed; matching ignores case, whitespace and accents.
      • color one of: "gray", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink" required
      • checklist_count integer (at least 0) required Live checklists carrying this Tag.
      • created_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • created_time_zone string (up to 64 characters) or null The creator’s IANA time zone when this was created; UTC if they had none stored, null for older records. A private record: present only for people who can edit the resource, and absent (not null) for everyone else. Null for the people who may see it means no zone is known.
    • affected_checklists integer (at least 0) required

Errors come in the error format.