UpdateProjectLabel

Updated at:

Updates the label information of a code repository.

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

PUT /api/v4/projects/labels/{labelId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

labelId

string

Yes

The unique ID of the label.

54e2699e538b4ba985177d6eb4d16cee

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The enterprise identifier, also known as the enterprise ID. It is a string. You can obtain it from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId].

5ebbc0228123212b59xxxxx

accessToken

string

No

The personal access token. You do not need to specify this parameter 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

body

object

No

The request body.

name

string

No

The name of the label.

Defect

color

string

No

The color of the label.

#EF433B

description

string

No

The description of the label.

Defects that need to be fixed

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The ID of the request.

F7B85D1B-D1C2-140F-A039-341859F130B9

success

boolean

Indicates whether the call was successful.

true

errorCode

string

The error code.

SYSTEM_UNKNOWN_ERROR

errorMessage

string

The error message.

""

result

object

The returned result.

id

string

The unique ID of the label.

8d84d73cf315473683400760f02dbfc1

name

string

The name of the label.

Defect

color

string

The color of the label.

#EF433B

description

string

The description of the label.

Defects that need to be fixed

Examples

Success response

JSON format

{
  "requestId": "F7B85D1B-D1C2-140F-A039-341859F130B9",
  "success": true,
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "errorMessage": "\"\"",
  "result": {
    "id": "8d84d73cf315473683400760f02dbfc1",
    "name": "缺陷",
    "color": "#EF433B",
    "description": "需要进行修复的缺陷"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.