DeleteProject - Delete a project
Updated at:
Deletes a specified project by ID.
|
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 the 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 |
Project |
Read and write |
Request syntax
Central edition
DELETE https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}
Region edition
DELETE https://{domain}/oapi/v1/projex/projects/{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 |
|
id |
string |
path |
Yes |
Unique project identifier. |
589c53d622cc8521793e08**** |
|
organizationId |
string |
path |
|
The ID of the organization. |
|
| - |
object |
body |
No |
|
|
| name |
string |
body |
Yes |
Project name. |
project-test |
| operatorId |
string |
body |
No |
User ID of the operator. Ignored when a personal access token is used. |
user-xxx |
Request examples
Central edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/589c53d622cc8521793e08****' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"name": "project-test",
"operatorId": "user-xxx"
}'
Region edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/projex/projects/589c53d622cc8521793e08****' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"name": "project-test",
"operatorId": "user-xxx"
}'
Response parameters
None
Error codes
See Error Code Center for API error codes.
Is this page helpful?