DeleteChangeRequestComment - Delete a merge request comment

Updated at:

Deletes a merge request comment.

Applicable editions

Central edition, Region edition

Service Endpoints and Authorization Information

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

Product

Resource

Required Permissions

Code Management

Merge Request

Read/Write

Request Syntax

Central edition

DELETE https://{domain}/oapi/v1/codeup/organizations/{organizationId}/repositories/{repositoryId}/changeRequests/{localId}/comments/{commentBizId}

Region edition

DELETE https://{domain}/oapi/v1/codeup/repositories/{repositoryId}/changeRequests/{localId}/comments/{commentBizId}

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: Central edition

  • No: Region edition

Organization ID.

60d54f3daccf2bbd6659f3ad

repositoryId

string

path

Yes

Repository ID or URL-encoded full path.

2813489 or 60de7a6852743a5162b5f957%2FDemoRepo

localId

integer

path

Yes

Merge request number in the repository.

1

commentBizId

string

path

Yes

Business ID of the comment.

bf117304dfe44d5d9b1132f348edf92e

Request Examples

Central edition

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/codeup/organizations/60d54f3daccf2bbd6659f3ad/repositories/2813489 or 60de7a6852743a5162b5f957%2FDemoRepo/changeRequests/1/comments/bf117304dfe44d5d9b1132f348edf92e' \
  -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 or 60de7a6852743a5162b5f957%2FDemoRepo/changeRequests/1/comments/bf117304dfe44d5d9b1132f348edf92e' \
  -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 deletion succeeded.

true

Response Example

{
    "result": true
}

Error Codes

For API error codes, see the API Error Code Center.