Skip to main content

createProductImport

Requires permission products:import:stage.

Requests a presigned upload URL and creates the UPLOADED import ledger row. No file bytes cross GraphQL.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation CreateProductImport($input: CreateProductImportInput!) {
createProductImport(input: $input) {
fileRef
importId
uploadUrl
}
}

Variables:

{
"input": {
"filename": "string"
}
}

Response:

{
"data": {
"createProductImport": {
"fileRef": "string",
"importId": "string",
"uploadUrl": "string"
}
}
}
createProductImport(
input: CreateProductImportInput!
): CreateProductImportResult!

Arguments​

createProductImport.input ● CreateProductImportInput! non-null input​

The details of the product import to create.

Type​

CreateProductImportResult object​

A started import and where to upload its file.