DeleteRepositoryMember

Updated at:

Removes a specified repository member by Alibaba Cloud account ID.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

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

Path Parameters

Parameter

Type

Required

Description

Example

repositoryId

integer

Yes

The repository ID.

2080398

aliyunPk

string

Yes

The Alibaba Cloud account ID.

1789095186553536

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The enterprise identifier, also known as the enterprise ID. This string can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId].

632bbfdf419338aaa2b1360a

accessToken

string

No

The personal access token. This field is not required if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) temporary authorization.

f0b1e61db5961df5975a93f9129d2513

body

object

No

The request body.

memberType

string

No

The member type. Valid values:

  • TEAMS: Department.

  • USERS: Employee.

USERS

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

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

errorMessage

string

The error message.

""

errorCode

string

The error code.

Openapi.RequestError

success

boolean

Indicates whether the call is successful.

true

result

object

The returned result.

id

integer

The primary key, which has no business significance.

30815

createAt

string

The creation time.

2022-03-12 12:00:00

updateAt

string

The update time.

2022-03-12 12:00:00

sourceId

integer

The source ID, which refers to the repository or code group ID.

2080398

sourceType

string

The type of the associated source. Valid values: Project and Namespace.

Project

userId

integer

The Codeup user ID.

19280

accessLevel

integer

The permission type. Valid values:

  • 20: Viewer.

  • 30: Developer.

  • 40: Administrator.

30

Examples

Success response

JSON format

{
  "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
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403 Forbidden.AccessDenied The user is not authorized to perform the operation. 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.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.