DeleteRepositoryMember - 删除代码库成员

更新时间:
复制 MD 格式

根据阿里云账号ID来移除某个指定的代码库成员。

调试

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

调试

授权信息

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

请求语法

POST /repository/{repositoryId}/members/delete/{aliyunPk} HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

repositoryId

integer

是

代码库 ID

2080398

aliyunPk

string

是

阿里云账号 ID

1789095186553536

请求参数

名称

类型

必填

描述

示例值

organizationId

string

是

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

632bbfdf419338aaa2b1360a

accessToken

string

否

个人访问令牌。 使用阿里云 AK+SK 或使用 STS 临时授权方式不需要传该字段

f0b1e61db5961df5975a93f9129d2513

body

object

否

请求 Body

memberType

string

否

成员类型 TEAMS:部门 USERS:员工

USERS

返回参数

名称

类型

描述

示例值

object

Schema of Response

requestId

string

请求 ID

0E1BCF81-51E6-59D4-8D55-FF945111127A

errorMessage

string

错误信息

""

errorCode

string

错误码

Openapi.RequestError

success

boolean

调用是否成功

true

result

object

返回结果

id

integer

主键,无业务意义

30815

createAt

string

创建时间

2022-03-12 12:00:00

updateAt

string

更新时间

2022-03-12 12:00:00

sourceId

integer

来源 ID,指代码库或代码组 ID

2080398

sourceType

string

关联源的类型 可选值:Project / Namespace

Project

userId

integer

Codeup 用户 ID

19280

accessLevel

integer

权限类型 20:浏览者 30:开发者 40:管理员

30

示例

正常返回示例

JSON格式

{
  "requestId": "0E1BCF81-51E6-59D4-8D55-FF945111127A",
  "errorMessage": "\"\"",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "result": {
    "id": 30815,
    "createAt": "2022-03-12 12:00:00",
    "updateAt": "2022-03-12 12:00:00",
    "sourceId": 2080398,
    "sourceType": "Project",
    "userId": 19280,
    "accessLevel": 30
  }
}

错误码

HTTP status code

错误码

错误信息

描述

403 Forbidden.AccessDenied The user is not authorized to perform the operation. 用户无权限执行相关操作
403 Forbidden.UserNotInCurrentOrganization The user is not in the organization and is not authorized to perform the operation. 当前用户不在该企业中,无权进行操作。

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

变更历史

更多信息,参考变更详情。