ListMergeRequestLabels
Queries the labels associated with a specified merge request.
Try it now
Test
RAM authorization
Request syntax
GET /api/v4/projects/merge_requests/labels HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The enterprise ID. It is a string and can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId]. |
60de7a6852743a5162b5f957 |
| accessToken |
string |
No |
The personal access token. This parameter is not required if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) for temporary authorization. |
f0b1e61db5961df5975a93f9129d2513 |
| repositoryIdentity |
string |
Yes |
The ID or full path of the code repository. |
2835387 or codeup/codeup-demo |
| localId |
integer |
Yes |
The local ID of the merge request, which indicates the sequence number of the merge request in the code repository. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
4D6AF7CC-B43B-5454-86AB-023D25E44868 |
| success |
boolean |
Indicates whether the call was successful. |
true |
| errorCode |
string |
The error code. |
Invalid.IdNotFound |
| errorMessage |
string |
The error message. |
"" |
| result |
array<object> |
The returned list. |
|
|
object |
The returned items. |
||
| id |
string |
The label ID. |
f2bf0e0b4ce34a348b2d971c69a1d11f |
| name |
string |
The label name. |
Optimization |
| description |
string |
The label description. |
Optimization or refactoring of existing content |
| color |
string |
The label color. |
#A16AD7 |
Examples
Success response
JSON format
{
"requestId": "4D6AF7CC-B43B-5454-86AB-023D25E44868",
"success": true,
"errorCode": "Invalid.IdNotFound",
"errorMessage": "\"\"",
"result": [
{
"id": "f2bf0e0b4ce34a348b2d971c69a1d11f",
"name": "优化",
"description": "已有内容的优化或重构",
"color": "#A16AD7"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.