startCopilotParse
Requires permission catalog:copilot:parse.
Parse an uploaded supplier file into the session IR (parse-once). Poll copilotJob for completion.
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 StartCopilotParse($input: StartCopilotParseInput!) {
startCopilotParse(input: $input) {
status
error
jobId
kind
progress
report
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation StartCopilotParse($input: StartCopilotParseInput!) {\n startCopilotParse(input: $input) {\n status\n error\n jobId\n kind\n progress\n report\n }\n}",
"variables": {
"input": {
"fileKey": "string",
"sessionId": "id"
}
}
}
EOF
Variables:
{
"input": {
"fileKey": "string",
"sessionId": "id"
}
}
Response:
{
"data": {
"startCopilotParse": {
"status": "COMPLETED",
"error": "string",
"jobId": "id",
"kind": "APPLY",
"progress": {},
"report": {}
}
}
}
startCopilotParse(
input: StartCopilotParseInput!
): CopilotJob!
Arguments
startCopilotParse.input ● StartCopilotParseInput! non-null input
The details of the copilot parse to start.
Type
CopilotJob object
A background job started by the copilot.