setCopilotAutoApproveLow
Requires permission catalog:copilot:chat.
Turn the CALLER'S own auto mode on or off: low-tier cards Minori asks about are approved without asking. Never applies at medium or above.
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 SetCopilotAutoApproveLow($enabled: Boolean!) {
setCopilotAutoApproveLow(enabled: $enabled) {
autoApproveAvailable
autoApproveLow
sessionLowTier
textApprovalAvailable
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation SetCopilotAutoApproveLow($enabled: Boolean!) {\n setCopilotAutoApproveLow(enabled: $enabled) {\n autoApproveAvailable\n autoApproveLow\n sessionLowTier\n textApprovalAvailable\n }\n}",
"variables": {
"enabled": true
}
}
EOF
Variables:
{
"enabled": true
}
Response:
{
"data": {
"setCopilotAutoApproveLow": {
"autoApproveAvailable": true,
"autoApproveLow": true,
"sessionLowTier": true,
"textApprovalAvailable": true
}
}
}
setCopilotAutoApproveLow(
enabled: Boolean!
): CopilotApprovalRulesType!
Arguments
setCopilotAutoApproveLow.enabled ● Boolean! non-null scalar
True to approve low-risk Copilot actions automatically.
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.