CreateSprint - Create an iteration
Creates a sprint (iteration) in a specified project.
|
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 for Central edition only. 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
POST https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}/sprints
Region edition
POST https://{domain}/oapi/v1/projex/projects/{id}/sprints
Request headers
|
Parameter |
Type |
Required |
Description |
Example value |
|
x-yunxiao-token |
string |
Yes |
Personal access token for authentication. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example value |
|
id |
string |
path |
Yes |
Project ID. |
589c53d622cc8521793e08**** |
|
organizationId |
string |
path |
|
Organization ID. |
|
| - |
object |
body |
No |
|
|
| capacityHours |
integer |
body |
No |
Work hour capacity of the iteration (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. Invalid when a personal access token is used. |
user-xxx |
| owners |
array[string] |
body |
Yes |
List of iteration owners. |
|
| startDate |
string |
body |
No |
Start date. |
|
Request examples
Central edition
curl -X 'POST' \
'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/589c53d622cc8521793e08****/sprints' \
-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 'POST' \
'https://{domain}/oapi/v1/projex/projects/589c53d622cc8521793e08****/sprints' \
-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
|
Parameter |
Type |
Description |
Example value |
| - |
object |
|
|
| id |
string |
Sprint ID. |
1111 |
Response example
{
"id": "1111"
}
Error codes
For API error codes, see Error Code Center.