API version: unstable
API version: 2021-07 Release candidate
API version: 2021-04 Latest
API version: 2021-01
API version: 2020-10
API version: 2020-07
API version: 2020-04
API version: 2020-01 Unsupported
API version: 2019-10 Unsupported

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 executing the mutation.

Version 2021-07 (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 executing the mutation.

Version 2021-04 (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.


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 executing the mutation.

Version 2021-01

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 executing the mutation.

Version 2020-10

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 executing the mutation.

Version 2020-07

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 executing the mutation.

Version 2020-04

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 executing the mutation.

Version 2020-01 (Unsupported)

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 executing the mutation.

Version 2019-10 (Unsupported)

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 executing the mutation.

Version 2019-07 (Unsupported)

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 executing the mutation.

Version 2019-04 (Unsupported)

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 executing the mutation.