approveProductImport
Requires permission products:import:approve.
The human approval gate — locks the commit mode, resolves shared references, and enqueues the chunked commit.
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 ApproveProductImport($input: ApproveProductImportInput!) {
approveProductImport(input: $input)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation ApproveProductImport($input: ApproveProductImportInput!) {\n approveProductImport(input: $input)\n}",
"variables": {
"input": {
"importId": "string"
}
}
}
EOF
Variables:
{
"input": {
"importId": "string"
}
}
Response:
{
"data": {
"approveProductImport": true
}
}
approveProductImport(
input: ApproveProductImportInput!
): Boolean!
Arguments
approveProductImport.input ● ApproveProductImportInput! non-null input
The details of the approve product import request.
Type
Boolean scalar
The Boolean scalar type represents true or false.