Organizations

Set the role of an organization member

Changed on

Replaces the member's current role. An organization always retains at least one Admin.

put/organizations/{organizationID}/members/{userID}/role

Request

  • Base URL
    https://api.xata.tech
  • Auth
    OAuth 2
    Implicit: https://auth.xata.io/realms/xata/protocol/openid-connect/auth
    Scopes: role:write

Request body

role'admin' | 'editor' required

The roles a member of an organization can hold

Response

Role updated

Changes