Skip to main content
payload

Return type for tagsAdd mutation.

•Node

The object that was updated.

•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Adds tags to a resource. If the resource type doesn't support tagging, the id argument returns a resource-not-found error.

Tags help merchants organize and filter resources. See the tags argument for supported input formats.

Learn more about using tags to organize subscription orders.

Arguments

•ID!
required

The ID of a resource to add tags to. Supported resources: Order, DraftOrder, Customer, Product, Article, and DiscountNode.

•[String!]!
required

A list of tags to add to the resource. Can be an array of strings or a single string composed of a comma-separated list of values. Example values: ["tag1", "tag2", "tag3"], "tag1, tag2, tag3".



Was this section helpful?