Skip to main content

copilotApprovalRules

Requires permission catalog:copilot:chat.

The CALLER'S standing approval rules for low-tier cards: the session rule for sessionId when given, and their own auto mode.

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:

query CopilotApprovalRules {
copilotApprovalRules {
autoApproveAvailable
autoApproveLow
sessionLowTier
textApprovalAvailable
}
}

Response:

{
"data": {
"copilotApprovalRules": {
"autoApproveAvailable": true,
"autoApproveLow": true,
"sessionLowTier": true,
"textApprovalAvailable": true
}
}
}
copilotApprovalRules(
sessionId: ID
): CopilotApprovalRulesType!

Arguments​

copilotApprovalRules.sessionId ● ID scalar​

Only the rule for this Copilot session. Omit to list all rules.

Type​

CopilotApprovalRulesType object​

The caller's standing approval rules, for low-risk proposals only. The available flags say whether the organization has switched the feature on.