retryFailedProposalItems
Requires permission catalog:copilot:apply.
Re-applies only the failed items of a PARTIAL batch (derived idempotency key per retry).
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 RetryFailedProposalItems($batchId: ID!, $proposalId: ID!, $sessionId: ID!) {
retryFailedProposalItems(
batchId: $batchId
proposalId: $proposalId
sessionId: $sessionId
) {
batchId
jobId
replayed
report
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RetryFailedProposalItems($batchId: ID!, $proposalId: ID!, $sessionId: ID!) {\n retryFailedProposalItems(\n batchId: $batchId\n proposalId: $proposalId\n sessionId: $sessionId\n ) {\n batchId\n jobId\n replayed\n report\n }\n}",
"variables": {
"batchId": "id",
"proposalId": "id",
"sessionId": "id"
}
}
EOF
Variables:
{
"batchId": "id",
"proposalId": "id",
"sessionId": "id"
}
Response:
{
"data": {
"retryFailedProposalItems": {
"batchId": "string",
"jobId": "string",
"replayed": true,
"report": {}
}
}
}
retryFailedProposalItems(
batchId: ID!
proposalId: ID!
sessionId: ID!
): ApplyProposalResult!
Arguments
retryFailedProposalItems.batchId ● ID! non-null scalar
The ID of the batch.
retryFailedProposalItems.proposalId ● ID! non-null scalar
The ID of the proposal.
retryFailedProposalItems.sessionId ● ID! non-null scalar
The ID of the Copilot session.
Type
ApplyProposalResult object
The result of applying a proposal.