Skip to main content

revokeControlApprovalDelegation

Requires at least one of the permissions approvals:bills:approve, approvals:credit:approve, approvals:credit_notes:approve, approvals:delegation:manage, approvals:discounts:approve, approvals:large_orders:approve, approvals:order_changes:approve, approvals:payments:verify, approvals:stock_adjustments:approve, approvals:supplier_payments:approve or purchase:purchase_order:approve.

Revokes a cover now. The person covered, whoever set it, or a holder of approvals:delegation:manage may revoke it.

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 RevokeControlApprovalDelegation($id: ID!) {
revokeControlApprovalDelegation(id: $id) {
id
createdAt
endsAt
enteredBy
fromUserId
isActive
}
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"revokeControlApprovalDelegation": {
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"endsAt": "2025-01-15T00:00:00Z",
"enteredBy": "string",
"fromUserId": "string",
"isActive": true
}
}
}
revokeControlApprovalDelegation(
id: ID!
): ControlApprovalDelegation!

Arguments​

revokeControlApprovalDelegation.id ● ID! non-null scalar​

The cover's ID.

Type​

ControlApprovalDelegation object​

A cover: for a date range, one person may decide approval requests needing the listed permissions on behalf of another, never beyond what that person still holds.