DeleteProjectLabel - Delete Project Label

Updated at:

Delete a project label using OpenAPI.

Applicable editions

Central edition

Service Endpoints and Authorization Information

  • Obtain service endpoints: Replace {domain} in the API request syntax.
  • Obtain a personal access token.
  • Obtain the organization ID: Required only for the Central edition. Go to the Basic Information page in the Organization Management console to obtain the organization ID.

Product

Resource

Required Permissions

Code Management

Project Label

Read/Write

Request Syntax

Central edition

DELETE https://{domain}/oapi/v1/codeup/organizations/{organizationId}/repositories/{repositoryId}/labels/{labelId}

Request Headers

Parameter

Type

Required

Description

Example Value

x-yunxiao-token

string

Yes

Personal access token.

pt-0fh3****0fbG_35af****0484

Request Parameters

Parameter

Type

Location

Required

Description

Example Value

organizationId

string

path

Yes

Organization ID.

60d54f3daccf2bbd6659f3ad

repositoryId

string

path

Yes

Repository ID or URL-encoded full path.

2813489 or 60de7a6852743a5162b5f957%2FDemoRepo

labelId

string

path

Yes

Label ID.

101

Request Example

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/codeup/organizations/60d54f3daccf2bbd6659f3ad/repositories/2813489 or 60de7a6852743a5162b5f957%2FDemoRepo/labels/101' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response Parameters

Parameter

Type

Description

Example Value

-

object

result

boolean

Indicates whether the operation was successful.

true

Response Example

{
    "result": true
}

Error Codes

For API error codes, see the Error Code Center.