UpdateGroup
Updates the information of a single code group, using pathWithNamespace as the unique identifier.
Try it now
Test
RAM authorization
Request syntax
PUT /groups/modify HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The enterprise identifier, also known as the enterprise ID. It is a string that can be obtained from the Yunxiao access link, such as https://devops.aliyun.com/organization/[OrganizationId]. |
1e9903d8b3f1xxxxxf9286ef5 |
| 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. |
f0b1e61dxxxxxxx975a93f9129d2513 |
| body |
object |
Yes |
The request body. |
|
| pathWithNamespace |
string |
Yes |
The full path of the code group, including the parent path. |
org/group/subgroup/here |
| name |
string |
Yes |
The name of the code group. |
codeup_group |
| path |
string |
Yes |
The path of the code group. |
codeup_group |
| visibilityLevel |
integer |
No |
The visibility level of the code group. Valid values:
|
10 |
| description |
string |
No |
The description of the code group. |
Specific content of the description |
| avatarUrl |
string |
No |
The URL of the avatar for the code group. |
https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorCode |
string |
The error code. |
success |
| errorMessage |
string |
The error message. |
InvalidParam.NoPermission |
| success |
boolean |
Indicates whether the call was successful. |
true |
| result |
object |
The detailed result. |
|
| id |
integer |
The primary key ID of the code group. |
30815 |
| pathWithNamespace |
string |
The full path of the code group, including the parent path. |
codeup-test-org/test-codeup |
| nameWithNamespace |
string |
The full name of the code group, including the parent path. |
codeup-test-org / codeup (with spaces on both sides of the slash) |
| name |
string |
The name of the code group. |
codeup |
| path |
string |
The path of the code group. |
test-codeup |
| ownerId |
integer |
The ID of the owner. |
19230 |
| parentId |
integer |
The ID of the parent path. |
26842 |
| description |
string |
The description of the code group. |
Specific content of the description |
| avatarUrl |
string |
The URL of the avatar for the code group. |
https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c4ef67f1bea827c4/w/100/h/100 |
| webUrl |
string |
The URL for accessing the web page. |
"" |
| type |
string |
The type. Default value: Group. |
Group |
| visibilityLevel |
integer |
The visibility level of the code group. Valid values:
|
10 |
Examples
Success response
JSON format
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorCode": "success",
"errorMessage": "InvalidParam.NoPermission",
"success": true,
"result": {
"id": 30815,
"pathWithNamespace": "codeup-test-org/test-codeup",
"nameWithNamespace": "codeup-test-org / codeup(斜杠两侧有空格)",
"name": "codeup",
"path": "test-codeup",
"ownerId": 19230,
"parentId": 26842,
"description": "描述信息的具体内容",
"avatarUrl": "https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c4ef67f1bea827c4/w/100/h/100",
"webUrl": "\"\"",
"type": "Group",
"visibilityLevel": 10
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbidden.UserNotAdminOrOwner | The current user is not an admin or owner 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.