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 Unsupported
API version: 2020-01 Unsupported

scriptTagUpdate mutation

Version unstable

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • cache (Boolean)

    Whether the Shopify CDN can cache and serve the script tag. If true, then the script will be cached and served by the CDN. The cache expires 15 minutes after the script tag is successfully returned. If false, then the script will be served as is.

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2021-07 (Release candidate)

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • cache (Boolean)

    Whether the Shopify CDN can cache and serve the script tag. If true, then the script will be cached and served by the CDN. The cache expires 15 minutes after the script tag is successfully returned. If false, then the script will be served as is.

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2021-04 (Latest)

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • cache (Boolean)

    Whether the Shopify CDN can cache and serve the script tag. If true, then the script will be cached and served by the CDN. The cache expires 15 minutes after the script tag is successfully returned. If false, then the script will be served as is.

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2021-01

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2020-10

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2020-07

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2020-04 (Unsupported)

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2020-01 (Unsupported)

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2019-10 (Unsupported)

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2019-07 (Unsupported)

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2019-04 (Unsupported)

Updates a script tag.

Required access

write_script_tags access scope.

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 the script tag to update.

input ( ScriptTagInput! ) required

Specifies the input fields for a script tag.

ScriptTagInput fields

  • displayScope (ScriptTagDisplayScope)

    The page or pages on the online store where the script should be included.

  • src (URL)

    The URL of the remote script.

Return fields

  • scriptTag (ScriptTag)

    The script tag that was updated.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.