Skip to main content

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:

mutation StartCopilotParse($input: StartCopilotParseInput!) {
startCopilotParse(input: $input) {
status
error
jobId
kind
progress
report
}
}

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.