Skip to main content

rejectCopilotProposal

Requires permission catalog:copilot:chat.

Rejects a change the copilot proposed in the caller's own chat, optionally with a reason and a note that help the copilot learn. Limited to 30 requests a minute. Needs the catalog copilot feature on the plan and permission to chat with the copilot.

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 RejectCopilotProposal($proposalId: ID!, $sessionId: ID!) {
rejectCopilotProposal(proposalId: $proposalId, sessionId: $sessionId) {
id
status
createdAt
batchId
creditEstimateCents
error
}
}

Variables:

{
"proposalId": "id",
"sessionId": "id"
}

Response:

{
"data": {
"rejectCopilotProposal": {
"id": "id",
"status": "APPLIED",
"createdAt": 0,
"batchId": "string",
"creditEstimateCents": 0,
"error": "string"
}
}
}
rejectCopilotProposal(
note: String
proposalId: ID!
reason: String
sessionId: ID!
): ProposalCardType!

Arguments​

rejectCopilotProposal.note ● String scalar​

An optional note. A note over 280 characters is shortened.

rejectCopilotProposal.proposalId ● ID! non-null scalar​

The ID of the proposal.

rejectCopilotProposal.reason ● String scalar​

An optional reason code: wrong customer, wrong items, wrong quantity or unit, wrong price, wrong details, not needed, or other.

rejectCopilotProposal.sessionId ● ID! non-null scalar​

The ID of the copilot chat the proposal is in.

Type​

ProposalCardType object​

A change the copilot proposes, shown as a card for the user to approve.