UpdateMilestone - Update a milestone
Updates a milestone in a project, including its title, status, dates, owner, and description.
|
Applicable editions |
Central edition, Region edition |
Endpoint and authorization information
- Get the endpoint: Replace {domain} in the API request syntax.
- Obtain a personal access token.
- Obtain organizationId: Required for Central edition only. Go to the Basic Information page in the Organization Management console to retrieve your organization ID.
|
Product |
Resource |
Required permission |
|
Project Collaboration |
Milestone |
Read and write |
Request syntax
Central edition
PUT https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{projectId}/milestones/{id}
Region edition
PUT https://{domain}/oapi/v1/projex/projects/{projectId}/milestones/{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 |
|
organizationId |
string |
path |
|
The organization ID. |
|
|
projectId |
string |
path |
Yes |
Unique project identifier. |
|
|
id |
string |
path |
Yes |
Unique milestone identifier. |
|
| - |
object |
body |
No |
|
|
| actualEndDate |
string |
body |
No |
Actual completion date in yyyy-MM-dd format. Set this parameter only when changing the status to completed. |
|
| assignedTo |
string |
body |
No |
The owner of the milestone. |
|
| description |
string |
body |
No |
The milestone description. |
|
| operatorId |
string |
body |
No |
The operator's userId. This parameter is ignored when using a personal token. |
The operator's userId. This parameter is ignored when using a personal token. |
| planEndDate |
string |
body |
No |
Planned completion date in yyyy-MM-dd format. |
|
| status |
string |
body |
No |
The milestone status. |
|
| subject |
string |
body |
No |
The milestone title. |
|
Request examples
Central edition
curl -X 'PUT' \
'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{projectId}/milestones/{id}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"actualEndDate": "",
"assignedTo": "",
"description": "",
"operatorId": "The operator\'s userId. This parameter is ignored when using a personal token.",
"planEndDate": "",
"status": "",
"subject": ""
}'
Region edition
curl -X 'PUT' \
'https://{domain}/oapi/v1/projex/projects/{projectId}/milestones/{id}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"actualEndDate": "",
"assignedTo": "",
"description": "",
"operatorId": "The operator\'s userId. This parameter is ignored when using a personal token.",
"planEndDate": "",
"status": "",
"subject": ""
}'
Response parameters
None
Error codes
See Error Code Center for API error codes.