DeleteWorkitemRelationRecord - Delete work item relation

Updated at:

Applicable editions

Central edition, Region edition

Service endpoints and authorization

Product

Resource

Required permissions

Project Collaboration

Work item relations

Read and write

Request syntax

Central edition

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

Region edition

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

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

The personal access token for Alibaba Cloud DevOps.

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

Request parameters

Parameter

Type

Position

Required

Description

Example

id

string

path

Yes

The work item ID.

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The organization ID.

-

object

body

No

operatorId

string

body

No

The operator's user ID. Ignored when a personal access token is used.

nil

relationType

string

body

No

The relation type. Valid values: PARENT (parent item), SUB (child item), ASSOCIATED (associated item), DEPEND_ON (dependent item), and DEPENDED_BY (supporting item).

ASSOCIATED

workitemId

string

body

No

The ID of the related work item.

beda1775d1c3eca7dbdff5****

Request examples

Central edition

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/workitems/{id}/relationRecords' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "operatorId": "The user ID of the operator. This parameter is ignored when a personal access token is used.",
        "relationType": "ASSOCIATED",
        "workitemId": "beda1775d1c3eca7dbdff5****"
    }'

Region edition

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/projex/workitems/{id}/relationRecords' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "operatorId": "The user ID of the operator. This parameter is ignored when a personal access token is used.",
        "relationType": "ASSOCIATED",
        "workitemId": "beda1775d1c3eca7dbdff5****"
    }'

Response parameters

None

Error codes

For error codes, see the Error Code Center.