Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Inventory__start Seed Job

Starts a dataset import in the background and returns a jobId. Poll inventory__seedJobStatus for progress. Used by the "activate theme" import dialog to show a per-category progress bar. Requires a signed-in staff user. Needs the `inventory__Product` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONinventory__startSeedJob(input: ApplySeedDatasetInput!): SeedJobStartResult!

Starts a dataset import in the background and returns a jobId. Poll inventory__seedJobStatus for progress. Used by the "activate theme" import dialog to show a per-category progress bar. Requires a signed-in staff user. Needs the inventory__Product create permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

input*

Returns

  1. inventory__startSeedJob
jobId*String!
Example Request
mutation Inventory__startSeedJob($input: ApplySeedDatasetInput!) {  inventory__startSeedJob(input: $input) {    jobId  }}
Variables
{  "input": {    "datasetId": "string"  }}
Example Response
{  "data": {    "inventory__startSeedJob": {      "jobId": "string"    }  }}