UpdateSprint - Update iteration

Updated at:

Updates the properties of a sprint, such as its name, date range, capacity, and owners.

Applicable editions

Central edition, Region edition

Endpoint and authorization information

  • Get the endpoint: Replace {domain} in the API request syntax.
  • Get a personal access token.
  • Get organizationId: Required only for the Central edition. Go to the Basic Information page in the Organization Management console to obtain your organization ID.

Product

Resource

Required permission

Project Collaboration

Iteration

Read and write

Request syntax

Central edition

PUT https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{projectId}/sprints/{id}

Region edition

PUT https://{domain}/oapi/v1/projex/projects/{projectId}/sprints/{id}

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

projectId

string

path

Yes

Unique project identifier.

589c53d622cc8521793e08****

id

string

path

Yes

Unique iteration identifier.

892153d622cc8521793e08****

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Organization ID.

-

object

body

No

capacityHours

integer

body

No

Iteration capacity in hours.

description

string

body

No

Iteration description.

endDate

string

body

No

End date.

name

string

body

Yes

Iteration name.

operatorId

string

body

No

User ID of the operator. Ignored when a personal access token is used.

user-xxx

owners

array[string]

body

No

List of iteration owners.

startDate

string

body

No

Start date.

Request examples

Central edition

curl -X 'PUT' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/589c53d622cc8521793e08****/sprints/892153d622cc8521793e08****' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "capacityHours": 0,
        "description": "",
        "endDate": "",
        "name": "",
        "operatorId": "user-xxx",
        "owners": [
            
        ],
        "startDate": ""
    }'

Region edition

curl -X 'PUT' \
  'https://{domain}/oapi/v1/projex/projects/589c53d622cc8521793e08****/sprints/892153d622cc8521793e08****' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "capacityHours": 0,
        "description": "",
        "endDate": "",
        "name": "",
        "operatorId": "user-xxx",
        "owners": [
            
        ],
        "startDate": ""
    }'

Response parameters

None

Error codes

See the Error Code Center for API-related error codes.