Skip to main content
PATCH
/
v1
/
teams
/
{team_id}
/
members
/
{user_id}
Update Member Role
curl --request PATCH \
  --url https://api.dataraven.io/v1/teams/{team_id}/members/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "viewer"
}
'
{
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "role": "viewer",
  "joined_at": "2023-11-07T05:31:56Z",
  "email": "<string>",
  "invited_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string<uuid>
required
team_id
string<uuid>
required

Body

application/json

Schema for updating team member role.

role
enum<string>
required

User roles within teams (hierarchical).

  • OWNER (4): Full control including team deletion
  • ADMIN (3): All operations except team deletion
  • OPERATOR (2): Day-to-day operations (run jobs, view logs), no setup/config
  • VIEWER (1): Read-only audit access
Available options:
viewer,
operator,
admin,
owner

Response

Successful Response

Schema for team member in responses.

user_id
string<uuid>
required
role
enum<string>
required

User roles within teams (hierarchical).

  • OWNER (4): Full control including team deletion
  • ADMIN (3): All operations except team deletion
  • OPERATOR (2): Day-to-day operations (run jobs, view logs), no setup/config
  • VIEWER (1): Read-only audit access
Available options:
viewer,
operator,
admin,
owner
joined_at
string<date-time>
required
email
string | null
invited_by
string<uuid> | null