Revoke Delegation
revoke_delegationIssue a signed revocation record for an AuthorityDelegationV1 so chain verifiers reject it and its descendants; returns the signed JSON record.
Instructions
[OPERATOR] Issue a signed revocation record (AuthorityRevocationV1, draft-03 section 3.5.1 direct revocation) for an AuthorityDelegationV1. Signs the record with this server's key, verifies it against the delegation, records it in this process's in-memory revocation store, and returns the signed record as JSON for the caller to publish or verify. Only the delegation's issuer may revoke, so the delegation must verify under this server's public key. The record's revoker is the delegation's issuer and its verification_method is the delegation's own. Descendants are not given separate records: a chain verifier that holds this record rejects every chain containing the delegation as an ancestor. The store is in-memory for this process only, is lost on restart, and is not consulted by verify_delegation, which checks legacy delegations. Legacy delegation records from create_delegation and sub_delegate (del_...) are refused, because SDK 8 has no revocation for them. A repeat call for an already revoked delegation returns the earlier record unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional free-text detail, written to the record's detail member. | |
| cascade | No | Kept for compatibility, no effect on the output. Descendants are invalidated at chain verification through this ancestor record whatever the value, and no per-descendant records are issued. | |
| delegation | No | The AuthorityDelegationV1 to revoke (record_type aps:authority-delegation:v1), as a JSON string or object. Required for a revocation to be issued. | |
| reason_code | Yes | Machine-readable reason, written to the record's reason_code. Any non-empty string is accepted, because the draft fixes no grammar for it. | |
| delegation_id | No | Optional. Checked against delegation.delegation_id when both are given. A legacy session id (del_...) is refused with an explanation. |