DeleteWorkitemTestcaseRelationRecord - Delete a work item-test case relation record

Updated at:

Applicable editions

Central edition, Region edition

Service endpoints and authorization information

  • Obtain the service endpoint: use it to replace the {domain} parameter in the API request syntax.
  • Obtain a personal access token.
  • Obtain the organizationId: required only for the Central edition. Go to the Organization Management console > Basic Information page to obtain the organization ID.

Product

Resource

Required permission

Project Collaboration

Work item related items

Read/write

Request syntax

Central edition

DELETE https://{domain}/oapi/v1/projex/organizations/{organizationId}/workitems/{id}/testcaseRelationRecords/{relationRecordId}

Region edition

DELETE https://{domain}/oapi/v1/projex/workitems/{id}/testcaseRelationRecords/{relationRecordId}

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Your personal access token.

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

Request parameters

Parameter

Type

Location

Required

Description

Example value

id

string

path

Yes

The unique identifier of the work item.

<nil>

relationRecordId

string

path

Yes

The ID of the relation record.

<nil>

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

organizationId.

<nil>

Request examples

Central edition

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/workitems/{id}/testcaseRelationRecords/{relationRecordId}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/projex/workitems/{id}/testcaseRelationRecords/{relationRecordId}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

boolean

<nil>

Response example

Error codes

For more information, see the error code center for API-related error codes.