Skip to main content
PATCH
/
v3beta1
/
enterprise
/
members
/
users
/
{user_id}
Update User Role
curl --request PATCH \
  --url https://api.devin.ai/v3beta1/enterprise/members/users/{user_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "role_id": "<string>"
}'
{
  "user_id": "<string>",
  "email": "<string>",
  "name": "<string>",
  "role_assignments": [
    {
      "role": {
        "role_name": "<string>",
        "role_id": "<string>",
        "role_type": "enterprise"
      },
      "org_id": "<string>"
    }
  ]
}

Path Parameters

user_id
string
required

Query Parameters

enterprise_id
string | null
org_id
string | null

Body

application/json
role_id
string
required

Response

Successful Response

user_id
string
required
email
string | null
required
name
string | null
required
role_assignments
RoleAssignment · object[]
required