文档

UpdateProjectMember - 添加更新项目成员

添加项目成员。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

POST /organization/{organizationId}/projects/{projectId}/updateMember

请求参数

名称类型必填描述示例值
organizationIdstring

企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https:// devops.aliyun.com/organization/【OrganizationId】

5ebbc0228123212b59xxxxx
bodyobject

添加的用户信息

roleIdentifierstring

角色 id,例如管理员:project.admin,参与人:project.participant,或者其他自定义角色,id 可以从 https:// devops.aliyun.com/projex/api/workspace/role/list?targetType=Space&targetIdentifier=【spaceIdentifier】接口中获取到,其中 spaceIdentifier 为需要查询的项目 id

project.admin
userIdentifierstring

用户 aliyunPk,也就是阿里云账号 Id

19xx7043xxxxxxx914
userTypestring

用户类型,这里为单用户 user

user
targetTypestring

资源类型,这里为 Space

Space
targetIdentifierstring

资源 id,也就是项目 id

5e70xxxxxxcd000xxxxe96
projectIdstring

项目 id,同 spaceIdentifier

5e70xxxxxxcd000xxxxe96

返回参数

名称类型描述示例值
object
requestIdstring

请求 id,每次请求都是唯一值,便于后续排查问题

ASSDS-ASSASX-XSAXSA-XSAXSAXS
errorMsgstring

错误信息

error
errorCodestring

错误码

Openapi.RequestError
successboolean

true 或者 false

true
memberobject

成员信息

idstring

id,暂时无用

1124382
roleIdentifierstring

角色 id

project.admin
userIdentifierstring

用户 id,阿里云账号 id,即 aliyunPk

19xx7043xxxxxxx914
userTypestring

用户类型

user
targetTypestring

资源类型

Space
gmtCreatelong

创建时间

1623916393000
gmtModifiedlong

修改时间

1623916393000
targetIdentifierstring

资源 id,也就是项目 id

5e70xxxxxxcd000xxxxe96

示例

正常返回示例

JSON格式

{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "errorMsg": "error",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "member": {
    "id": "1124382",
    "roleIdentifier": "project.admin",
    "userIdentifier": "19xx7043xxxxxxx914",
    "userType": "user",
    "targetType": "Space",
    "gmtCreate": 1623916393000,
    "gmtModified": 1623916393000,
    "targetIdentifier": "5e70xxxxxxcd000xxxxe96"
  }
}

错误码

HTTP status code错误码错误信息描述
400Openapi.RequestErrorrequest errorOpenAPI请求数据错误
403Operate.NoPermissionNoPermission没有权限

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈