tagsAdd mutation

Version unstable

Add tags to an order, a draft order, a customer, a product, or an online store article.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
id ( ID! ) required

The ID of a resource to add tags to.

tags ( [String!]! ) required

A list of tags. Can be an array or a comma-separated list. Example values: ["tag1", "tag2", "tag3"], "tag1, tag2, tag3".

Return fields

  • node (Node)

    The object that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred from executing the mutation.

Version 2021-10 (Release candidate)

Add tags to an order, a draft order, a customer, a product, or an online store article.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
id ( ID! ) required

The ID of a resource to add tags to.

tags ( [String!]! ) required

A list of tags. Can be an array or a comma-separated list. Example values: ["tag1", "tag2", "tag3"], "tag1, tag2, tag3".

Return fields

  • node (Node)

    The object that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred from executing the mutation.

Version 2021-07 (Latest)

Add tags to an order, a draft order, a customer, a product, or an online store article.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.