Skip to main content
PATCH
/
v2
/
enterprise
/
organizations
/
{org_id}
/
members
/
migrate-roles
Enterprise Organization Members Migrate Roles Endpoint
curl --request PATCH \
  --url https://api.devin.ai/v2/enterprise/organizations/{org_id}/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 members within a specific organization from a source organization role to a target organization role. This is useful for bulk role updates when restructuring permissions within an organization. This operation does not affect group memberships.

Authorizations

Authorization
string
header
required

Personal API Key (apk_user_*) for Enterprise Admins only

Path Parameters

org_id
string
required

Body

application/json
source_role_id
string
required
target_role_id
string
required

Response

Successful Response

status
string
default:success