Zone Roles

Revoke role from user

Changed on

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

delete/zones/{zoneId}/users/{userId}/roles/{roleId}

Request

  • Base URL
    https://docs.keycard.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://docs.keycard.ai/zones/{zoneId}/users/{userId}/roles/{roleId}
  • Auth
    • HTTP bearer
    • or OAuth 2
      Client credentials
      Token URL: /service-account-token

Path parameters

zoneIdstring required

Zone ID

userIdstring required

User ID

roleIdstring required

Role ID

Query parameters

scope_typestring

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

scope_idstring

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

Response

Default Response

Changes

    • breaking

      for the query request parameter scope_id, the minLength was increased from 0 to 1

    • breaking

      for the query request parameter scope_type, the minLength was increased from 0 to 1

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      endpoint added