Passer au contenu principal
PATCH
/
v3beta1
/
enterprise
/
members
/
users
/
{user_id}
Update User
curl --request PATCH \
  --url https://api.devin.ai/v3beta1/enterprise/members/users/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role_id": "<string>"
}
'
{
  "email": "<string>",
  "name": "<string>",
  "role_assignments": [
    {
      "role": {
        "role_id": "<string>",
        "role_name": "<string>",
        "role_type": "enterprise"
      },
      "org_id": "<string>"
    }
  ],
  "user_id": "<string>"
}

Autorisations

Nécessite un utilisateur de service disposant de l’autorisation ManageAccountMembership au niveau Enterprise.

Autorisations

Authorization
string
header
requis

Service User credential (prefix: cog_)

Paramètres de chemin

user_id
string
requis

Corps

application/json
role_id
string
requis

Réponse

Successful Response

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