Skip to main content
PATCH
/
v2
/
enterprise
/
members
/
migrate-roles
Enterprise Members Migrate Roles Endpoint
curl --request PATCH \
  --url https://api.devin.ai/v2/enterprise/members/migrate-roles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_role_id": "<string>",
  "target_role_id": "<string>"
}
'
{
  "status": "success"
}
Requires an enterprise admin personal API key. Migrates all enterprise members from a source account role to a target account role. This is useful for bulk role updates when restructuring permissions across your enterprise. This operation does not affect group memberships.

Authorizations

Authorization
string
header
required

Personal API Key (apk_user_*) for Enterprise Admins only

Body

application/json
source_role_id
string
required
target_role_id
string
required

Response

Successful Response

status
string
default:success