Organizations

Update role for organization member

Updates the role of an existing member in the specified organization. The requested role must be valid for the organization. Only organization admins can call this endpoint.

patch/organizations/{org_id}/members/{member_id}

Request

  • Base URL: https://console.neon.tech/api/v2
  • URL: https://console.neon.tech/api/v2/organizations/{org_id}/members/{member_id}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie zenith
    • API key in cookie keycloak_token

Request body

role'admin' | 'member' | 'editor' | 'viewer' | 'collaborator' required

Organization member's role. admin: full administrative access. editor (and its legacy alias member): standard access governed by project permissions. viewer and collaborator: additional scoped project roles. Some values may not be available for all organizations.

Response

The updated organization member

idstring uuid required

The organization member's ID.

user_idstring uuid required

The Neon user ID.

org_idstring required

The Neon organization ID. Returned as id from GET /users/me/organizations.

role'admin' | 'member' | 'editor' | 'viewer' | 'collaborator' required

Organization member's role. admin: full administrative access. editor (and its legacy alias member): standard access governed by project permissions. viewer and collaborator: additional scoped project roles. Some values may not be available for all organizations.

joined_atstring date-time

Timestamp when the user joined the organization.

Example response

{
  "org_id": "org-cool-darkness-12345678"
}

Changes

No recorded changes to this operation across all 15 revisions of this API.