DeleteTestResultBugRelation - Disassociate a bug from a test result

Updated at:

Applicable editions

Central edition, Region edition

Endpoints and authorization

  • Obtain an endpoint. Replace {domain} in the request syntax with the endpoint.
  • Obtain a personal access token.
  • Obtain an organization ID: Required only for the Central edition. Go to the organization management console and obtain the organization ID from the basic information page.

Product

Resource

Required permissions

Test management

Test plan

Read and write

Request syntax

Central edition

DELETE https://{domain}/oapi/v1/testhub/organizations/{organizationId}/testPlans/{testplanId}/testcases/{id}/bugs/{workitemId}

Region edition

DELETE https://{domain}/oapi/v1/testhub/testPlans/{testplanId}/testcases/{id}/bugs/{workitemId}

Request header

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

The 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)

The organization ID.

testplanId

string

path

Yes

The ID of the test plan.

id

string

path

Yes

The ID of the test case.

workitemId

string

path

Yes

The ID of the bug work item.

Request examples

Central edition

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/testhub/organizations/{organizationId}/testPlans/{testplanId}/testcases/{id}/bugs/{workitemId}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/testhub/testPlans/{testplanId}/testcases/{id}/bugs/{workitemId}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

boolean

Response example

Error codes

For error codes, see the Error Code Center.