Inventory__apply Seed Dataset
Creates sample products/collections from a curated dataset. Existing handles are skipped. Products are marked isDemo. 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).
inventory__applySeedDataset(input: ApplySeedDatasetInput!): SeedDatasetResult!Creates sample products/collections from a curated dataset. Existing handles are skipped. Products are marked isDemo. 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
- inventory__applySeedDataset
created*Int!datasetId*String!failed*Int!items*skipped*Int!mutation Inventory__applySeedDataset($input: ApplySeedDatasetInput!) { inventory__applySeedDataset(input: $input) { created datasetId failed items { handle message status title } skipped }}{ "input": { "datasetId": "string" }}{ "data": { "inventory__applySeedDataset": { "created": 10, "datasetId": "string", "failed": 10, "items": [ { "handle": "string", "message": "string", "status": "string", "title": "string" } ], "skipped": 10 } }}Inventory__apply Information Template To Products MUTATION
Copies the template's sections into the given products. A product section with the same title is replaced; other sections are kept. Returns the number of products updated. Requires a signed-in staff user. Needs the `inventory__Product` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Inventory__apply Technical Specification Template To Products MUTATION
Copies the template's specifications into the given products. A product specification with the same key is replaced; other specifications are kept. Returns the number of products updated. Requires a signed-in staff user. Needs the `inventory__Product` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).