scriptTagCreate mutation

Version 2020-01 (Release candidate)

Creates a new 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

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 created.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-10 (Latest)

Creates a new 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

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 created.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-07

Creates a new 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

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 created.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-04

Creates a new 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

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 created.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Sign up for a Partner account to get started.

Sign up