productReorderMedia mutation
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead
Asynchronously Reoders the media attached to a product.
Required access
write_products
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 product on which to reorder medias. |
moves
(
[MoveInput!]!
)
required
|
A list of moves to perform which will be evaluated in order. |
MoveInput fields
-
id (
ID!
) RequiredThe ID of the object to be moved.
-
newPosition (
UnsignedInt64!
) RequiredThe new position of the object in the set, using a 0 based index.
Return fields
-
job (
Job
)The asynchronous job reordering the media.
-
mediaUserErrors (
[MediaUserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
userErrors (
[UserError!]!
) deprecatedList of errors that occurred executing the mutation.
Deprecation warning
Use
mediaUserErrors
instead