Revoke stamp permission
POST/openapi/v1/stamps/revoke
Revoke Space members' permission to use a specified stamp, in batch. Pass members' business UserIDs.
- A member that does not currently hold a grant, or a UserID that does not exist in the current Space, is treated as success (idempotent, returned in
UserIds); only an internal service error is reported inFailedUsers. This endpoint does not check whether a member exists or is enabled, so that stale grants of disabled or removed members can still be revoked (otherwise the grant would come back when the member is re-enabled). - If the stamp does not exist or does not belong to the current Space,
OPENAPI.STAMP_NOT_FOUNDis returned. - This endpoint revokes Space-level permissions only, not envelope-level permissions set via
grant-by-envelope.
In the console: Admin > Stamps > Stamp permissions.
Required Scope: stamp:manage
Request Parameters
Header Parameters
AuthorizationRequiredstring
Bearer <access_token>
X-Operator-User-IdOptionalstring
Operator user ID. Not required in the authorization code flow (the authorized user is used automatically); **required** in the client credentials flow. The operator must be an administrator of the current Space.
Request Body
application/jsonStampIdRequiredstring
Stamp ID.
UserIdsRequiredarray<string>
Business UserIDs of members to revoke, 1–100 after deduplication and removal of empty values.
Response Parameters
Response.Data
UserIdsOptionalarray<string>
UserIDs successfully revoked.
FailedUsersOptionalarray<object>
Members that could not be revoked and the reason.
UserIdOptionalstring
The member's business UserID
ReasonOptionalstring
Failure reason. The only value is `internal_error` (internal service error).
Error Codes
| Error Code | Description |
|---|---|
INVALID_REQUEST | Invalid request parameters (empty StampId, empty UserIds or more than 100) |
OPENAPI.OPERATOR_USER_ID_REQUIRED | X-Operator-User-Id not provided in the client credentials flow |
OPENAPI.OPERATOR_USER_NOT_FOUND | Operator user does not exist, account not enabled, or not an enabled member of the current Space |
OPENAPI.OPERATOR_USER_NOT_HUMAN | Operator user is not a real user |
MEMBER.INSUFFICIENT_PERMISSION | Operator user is not a Space administrator |
OPENAPI.STAMP_NOT_FOUND | The stamp does not exist or does not belong to the current Space |
INTERNAL_ERROR | Internal server error |