DeleteProjectRole - Delete a project role
Updated at:
Deletes one or more roles from 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 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 |
Project roles |
Read and write |
Request syntax
Central edition
DELETE https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}/roles
Region edition
DELETE https://{domain}/oapi/v1/projex/projects/{id}/roles
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 |
Project ID. |
589c53d622cc8521793e08**** |
|
organizationId |
string |
path |
|
Organization ID. |
|
| - |
object |
body |
No |
|
|
| roleIds |
array[string] |
body |
Yes |
Role IDs to delete. |
["project.participant"] |
Request examples
Central edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/589c53d622cc8521793e08****/roles' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"roleIds": ["project.participant"]
}'
Region edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/projex/projects/589c53d622cc8521793e08****/roles' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"roleIds": ["project.participant"]
}'
Response parameters
None
Error codes
For API-related error codes, see Error Code Center.
Is this page helpful?