UpdateTestPlan - Update a test plan

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

PUT https://{domain}/oapi/v1/testhub/organizations/{organizationId}/testPlans/{testPlanIdentifier}

Region edition

PUT https://{domain}/oapi/v1/testhub/testPlans/{testPlanIdentifier}

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.

testPlanIdentifier

string

path

Yes

The unique identifier of the test plan.

-

object

body

No

The request body for updating a test plan. This is a partial update: a field that is not specified remains unchanged.

description

string

body

No

The description. Pass an empty string to clear it. If not specified, the description remains unchanged.

Regression test plan covering the login and checkout core flows

endDate

string

body

No

The end date, in the yyyy-MM-dd format. If not specified, the end date remains unchanged.

2026-07-17

managerIdentifiers

array[string]

body

No

The user identifiers of the test plan owners. If not specified, the owners remain unchanged.

["4f8a1b2c3d4e5f6a7b8c9d0e"]

memberIdentifiers

array[string]

body

No

The user identifiers of the test plan members. Pass an empty array to clear them. If not specified, the members remain unchanged.

["1a2b3c4d5e6f7a8b9c0d1e2f"]

name

string

body

No

The name of the test plan. If not specified, the name remains unchanged.

Regression test plan

projectIdentifier

string

body

No

The identifier of the associated project. Pass an empty string to remove the association. If not specified, the association remains unchanged.

5f3a2b1c4d5e6f7a8b9c0d1e2f

scope

string

body

No

The visibility scope. Valid values: public, private. If not specified, the scope remains unchanged.

public

sprintIdentifier

string

body

No

The identifier of the associated sprint. Pass an empty string to remove the association. If not specified, the association remains unchanged. To specify a value, the test plan must already be associated with a project, and the sprint must belong to that project.

6a1b2c3d4e5f6a7b8c9d0e1f2a

startDate

string

body

No

The start date, in the yyyy-MM-dd format. If not specified, the start date remains unchanged.

2026-07-13

Request examples

Central edition

curl -X 'PUT' \
  'https://{domain}/oapi/v1/testhub/organizations/{organizationId}/testPlans/{testPlanIdentifier}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "description": "Regression test plan covering the login and checkout core flows",
        "endDate": "2026-07-17",
        "managerIdentifiers": ["4f8a1b2c3d4e5f6a7b8c9d0e"],
        "memberIdentifiers": ["1a2b3c4d5e6f7a8b9c0d1e2f"],
        "name": "Regression test plan",
        "projectIdentifier": "5f3a2b1c4d5e6f7a8b9c0d1e2f",
        "scope": "public",
        "sprintIdentifier": "6a1b2c3d4e5f6a7b8c9d0e1f2a",
        "startDate": "2026-07-13"
    }'

Region edition

curl -X 'PUT' \
  'https://{domain}/oapi/v1/testhub/testPlans/{testPlanIdentifier}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "description": "Regression test plan covering the login and checkout core flows",
        "endDate": "2026-07-17",
        "managerIdentifiers": ["4f8a1b2c3d4e5f6a7b8c9d0e"],
        "memberIdentifiers": ["1a2b3c4d5e6f7a8b9c0d1e2f"],
        "name": "Regression test plan",
        "projectIdentifier": "5f3a2b1c4d5e6f7a8b9c0d1e2f",
        "scope": "public",
        "sprintIdentifier": "6a1b2c3d4e5f6a7b8c9d0e1f2a",
        "startDate": "2026-07-13"
    }'

Response parameters

Parameter

Type

Description

Example value

-

object

id

string

The ID.

id-xxx

Response example

{
    "id": "id-xxx"
}

Error codes

For error codes, see the Error Code Center.