Skip to main content
MUTATION
tagsAdd(name: String!, type: String!, colorCode: String, parentId: String): Tag

Arguments

name
String!
required

Display name for the new tag.

type
String!
required

Content type this tag applies to (e.g. core:customer).

colorCode
String

Hex color used to render the tag in the UI.

parentId
String

Parent tag id to nest this tag under. Omit for a root-level tag.

Returns

_id
String!

Unique tag identifier.

name
String

Display name of the tag.

type
String

Content type this tag applies to (e.g. core:customer). Use tags with the type argument to filter by it.

colorCode
String

Hex color used to render the tag in the UI.

createdAt
Date

When this tag was created.

objectCount
Int

Number of entities directly tagged with this tag.

totalObjectCount
Int

Number of entities tagged with this tag or any of its childTags.

parentId
String

Parent tag id, when this tag is nested under another. null for root-level tags.

order
String

Sort order string used to position sibling tags.

relatedIds
[String]

Ids of related tags, when applicable.

childTags
[Tag]

Direct child Tag rows nested under this tag.

Mutation
Variables
Response
آخر تعديل في ١١ أغسطس ٢٠٢٦