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

Path Parameters

service_user_id
string
required

Query Parameters

enterprise_id
string | null
org_id
string | null

Body

application/json
role_id
string
required

Response

Successful Response

service_user_id
string
required
name
string
required
role_assignments
RoleAssignment · object[]
required