stageProductImport
Requires permission products:import:stage.
Enqueues the stage+validate background job once the file has been PUT to the presigned URL.
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:
- GraphQL
- cURL
mutation StageProductImport($importId: String!) {
stageProductImport(importId: $importId)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation StageProductImport($importId: String!) {\n stageProductImport(importId: $importId)\n}",
"variables": {
"importId": "string"
}
}
EOF
Variables:
{
"importId": "string"
}
Response:
{
"data": {
"stageProductImport": true
}
}
stageProductImport(
importId: String!
mappingOverride: JSON
): Boolean!
Arguments
stageProductImport.importId ● String! non-null scalar
The ID of the import.
stageProductImport.mappingOverride ● JSON scalar
Column mapping that replaces the saved one for this import.
Type
Boolean scalar
The Boolean scalar type represents true or false.