Stamp ManagementAPI ReferenceRevoke stamp permission

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 in FailedUsers. 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_FOUND is 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

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.
application/json
StampIdRequiredstring
Stamp ID.
UserIdsRequiredarray<string>
Business UserIDs of members to revoke, 1–100 after deduplication and removal of empty values.

Response Parameters

UserIdsOptionalarray<string>
UserIDs successfully revoked.
FailedUsersOptionalarray<object>
Members that could not be revoked and the reason.
⌃Sub-properties
UserIdOptionalstring
The member's business UserID
ReasonOptionalstring
Failure reason. The only value is `internal_error` (internal service error).

Error Codes

Error CodeDescription
INVALID_REQUESTInvalid request parameters (empty StampId, empty UserIds or more than 100)
OPENAPI.OPERATOR_USER_ID_REQUIREDX-Operator-User-Id not provided in the client credentials flow
OPENAPI.OPERATOR_USER_NOT_FOUNDOperator user does not exist, account not enabled, or not an enabled member of the current Space
OPENAPI.OPERATOR_USER_NOT_HUMANOperator user is not a real user
MEMBER.INSUFFICIENT_PERMISSIONOperator user is not a Space administrator
OPENAPI.STAMP_NOT_FOUNDThe stamp does not exist or does not belong to the current Space
INTERNAL_ERRORInternal server error