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:
- GraphQL
- cURL
query CopilotApprovalRules {
copilotApprovalRules {
autoApproveAvailable
autoApproveLow
sessionLowTier
textApprovalAvailable
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CopilotApprovalRules {\n copilotApprovalRules {\n autoApproveAvailable\n autoApproveLow\n sessionLowTier\n textApprovalAvailable\n }\n}"
}
EOF
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.