Skip to content
Docs
Roles

Revoke role from application

Revoke role from application

zones.applications.roles.revoke(strrole_id, RoleRevokeParams**kwargs)
DELETE/zones/{zoneId}/applications/{applicationId}/roles/{roleId}

Revokes a role from the application. Provide the same (scope_type, scope_id) pair the grant was created with, or omit both to revoke the unscoped grant.

ParametersExpand Collapse
zone_id: str
application_id: str
role_id: str
scope_id: Optional[str]

Scope target of the grant to revoke. Provide together with scope_type.

minLength1
scope_type: Optional[str]

Scope kind of the grant to revoke. Provide together with scope_id.

minLength1

Revoke role from application

import os
from keycardai_api import KeycardAPI

client = KeycardAPI(
    api_key=os.environ.get("KEYCARD_API_API_KEY"),  # This is the default and can be omitted
)
client.zones.applications.roles.revoke(
    role_id="roleId",
    zone_id="zoneId",
    application_id="applicationId",
)
Returns Examples