A job corresponds to some long running task that the client should poll for status.
Anchor to FieldsFields
- Anchor to donedone•Boolean!non-null
This indicates if the job is still queued or has been run.
- •ID!non-null
A globally-unique ID that's returned when running an asynchronous mutation.
- Anchor to queryquery•
This field will only resolve once the job is done. Can be used to ask for object(s) that have been changed by the job.
Map
No referencing types
Anchor to QueriesQueries
- •query
Returns a Job resource by ID. Used to check the status of internal jobs and any applicable changes.
Job Queries
Queried by
Anchor to MutationsMutations
- •mutation
Asynchronously adds a set of products to a given collection. It can take a long time to run. Instead of returning a collection, it returns a job which should be polled.
- •mutation
Removes a set of products from a given collection. The mutation can take a long time to run. Instead of returning an updated collection the mutation returns a job, which should be polled. For use with manual collections only.
- •mutation
Asynchronously reorders a set of products within a specified collection. Instead of returning an updated collection, this mutation returns a job, which should be polled. The
must be
. Displaced products will have their position altered in a consistent manner, with no gaps.
- •mutation
Updates a collection.
- •mutation
Merges two customers.
- •mutation
Enqueue the removal of a delivery profile.
- •mutation
Asynchronously delete automatic discounts in bulk if a
search
orargument is provided or if a maximum discount threshold is reached (1,000). Otherwise, deletions will occur inline. Warning: All automatic discounts will be deleted if a blank
search
argument is provided.- •mutation
Activates multiple code discounts asynchronously using one of the following:
- A search query
- A saved search ID
- A list of discount code IDs
For example, you can activate discounts for all codes that match a search criteria, or activate a predefined set of discount codes.
- •mutation
Deactivates multiple code-based discounts asynchronously using one of the following:
- A search query
- A saved search ID
- A list of discount code IDs
For example, you can deactivate discounts for all codes that match a search criteria, or deactivate a predefined set of discount codes.
- •mutation
Deletes multiple code-based discounts asynchronously using one of the following:
- A search query
- A saved search ID
- A list of discount code IDs
For example, you can delete discounts for all codes that match a search criteria, or delete a predefined set of discount codes.
- •mutation
Asynchronously delete discount codes in bulk that customers can use to redeem a discount.
- •mutation
Adds tags to multiple draft orders.
- •mutation
Deletes multiple draft orders.
- •mutation
Removes tags from multiple draft orders.
- •mutation
Deletes all external marketing activities. Deletion is performed by a background job, as it may take a bit of time to complete if a large number of activities are to be deleted. Attempting to create or modify external activities before the job has completed will result in the create/update/upsert mutation returning an error.
- •mutation
Updates a metafield definition.
- •mutation
Asynchronously delete metaobjects and their associated metafields in bulk.
- •mutation
Cancels an order.
- •mutation
Creates a payment for an order by mandate.
- •mutation
Duplicates a product.
If you need to duplicate a large product, such as one that has many variants that are active at several locations, you might encounter timeout errors.
To avoid these timeout errors, you can instead duplicate the product asynchronously.
In API version 2024-10 and higher, include
synchronous: false
argument in this mutation to perform the duplication asynchronously.In API version 2024-07 and lower, use the asynchronous
.
Metafield values are not duplicated if the unique values capability is enabled.
- •mutation
Asynchronously reorders the media attached to a product.
- •mutation
Asynchronously delete URL redirects in bulk.
- •mutation
Asynchronously delete URLRedirect objects in bulk by IDs. Learn more about URLRedirect objects.
- •mutation
Asynchronously delete redirects in bulk.
- •mutation
Asynchronously delete redirects in bulk.
- •mutation
Job Mutations
Mutated by
- collection
Add Products V2 - collection
Remove Products - collection
Reorder Products - collection
Update - customer
Merge - delivery
Profile Remove - discount
Automatic Bulk Delete - discount
Code Bulk Activate - discount
Code Bulk Deactivate - discount
Code Bulk Delete - discount
Code Redeem Code Bulk Delete - draft
Order Bulk Add Tags - draft
Order Bulk Delete - draft
Order Bulk Remove Tags - marketing
Activities Delete All External - metafield
Definition Update - metaobject
Bulk Delete - order
Cancel - order
Create Mandate Payment - product
Duplicate - product
Reorder Media - url
Redirect Bulk Delete All - url
Redirect Bulk Delete By Ids - url
Redirect Bulk Delete By Saved Search - url
Redirect Bulk Delete By Search - url
Redirect Import Submit