DeleteMilestone - Delete a milestone
Updated at:
|
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 |
Milestone |
Read and write |
Request syntax
Central edition
DELETE https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{projectId}/milestones/{id}
Region edition
DELETE 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 |
|
organizationId. |
|
|
projectId |
string |
path |
Yes |
Unique project identifier. |
|
|
id |
string |
path |
Yes |
Unique milestone identifier. |
|
| - |
object |
body |
No |
|
|
| operatorId |
string |
body |
No |
The operator's userId. This parameter is invalid when using a personal token. |
The operator's userId. This parameter is invalid when using a personal token. |
Request examples
Central edition
curl -X 'DELETE' \
'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 '
{
"operatorId": "The operator'\''s userId. This parameter is invalid when using a personal token."
}'
Region edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/projex/projects/{projectId}/milestones/{id}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"operatorId": "The operator'\''s userId. This parameter is invalid when using a personal token."
}'
Response parameters
None
Error codes
Visit the Error Code Center to view API-related error codes.
Is this page helpful?