跳转到主要内容
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"
}
需要 Enterprise 管理员的个人 API key。 将特定组织内的所有成员从源组织角色迁移到目标组织角色。在组织内重构权限时进行批量角色更新时非常有用。此操作不会影响群组成员关系。

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