applyProposal
Requires permission catalog:copilot:apply.
THE write gate: applies an explicitly APPROVED proposal card through the throttled, idempotent pipeline. Anything else (PROPOSED/REJECTED/…) fails 400.
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 ApplyProposal($input: ApplyProposalInput!) {
applyProposal(input: $input) {
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 ApplyProposal($input: ApplyProposalInput!) {\n applyProposal(input: $input) {\n batchId\n jobId\n replayed\n report\n }\n}",
"variables": {
"input": {
"idempotencyKey": "string",
"proposalId": "id",
"sessionId": "id"
}
}
}
EOF
Variables:
{
"input": {
"idempotencyKey": "string",
"proposalId": "id",
"sessionId": "id"
}
}
Response:
{
"data": {
"applyProposal": {
"batchId": "string",
"jobId": "string",
"replayed": true,
"report": {}
}
}
}
applyProposal(
input: ApplyProposalInput!
): ApplyProposalResult!
Arguments
applyProposal.input ● ApplyProposalInput! non-null input
The details of the apply proposal request.
Type
ApplyProposalResult object
The result of applying a proposal.