DeleteRepositoryTeamMember - Remove a repository team
|
Applicable editions |
Central edition, Region edition |
Service endpoint and authorization
- Obtain the service endpoint: Replace {domain} in the request URL.
- Obtain a personal access token.
- Obtain the organizationId: Required only for the Central edition. Go to Organization Management > Basic Information to get the organization ID.
|
Product |
Resource |
Required permissions |
|
Codeup |
member |
Read and write |
Request syntax
Central edition
DELETE https://{domain}/oapi/v1/codeup/organizations/{organizationId}/repositories/{repositoryId}/members/teams/{teamId}
Region edition
DELETE https://{domain}/oapi/v1/codeup/repositories/{repositoryId}/members/teams/{teamId}
Request headers
|
Parameter |
Type |
Required |
Description |
Example |
|
x-yunxiao-token |
string |
Yes |
Your personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
In |
Required |
Description |
Example |
|
organizationId |
string |
path |
|
The organization ID. |
60d54f3daccf2bbd6659f3ad |
|
repositoryId |
string |
path |
Yes |
The ID of the repository or its URL-encoded full path. |
2813489 or 60de7a6852743a5162b5f957%2FDemoRepo |
|
teamId |
string |
path |
Yes |
The team ID. |
12345 |
|
removeType |
string |
query |
No |
The removal method. ONLY_REMOVE_TEAM (default) removes only the team. REMOVE_ALL removes the team and all its members. |
|
Request examples
Central edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/codeup/organizations/60d54f3daccf2bbd6659f3ad/repositories/2813489/members/teams/12345?removeType={removeType}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/codeup/repositories/2813489/members/teams/12345?removeType={removeType}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example |
| - |
object |
|
|
| result |
boolean |
Whether the team was successfully removed. |
true |
Response example
{
"result": true
}
Error codes
For API error codes, see the Error Code Center.