DeleteProjectMember - Delete project member
Updated at:
|
Applicable editions |
Central edition, Region edition |
Prerequisites
- Get the service endpoint to replace
{domain}in the API request syntax. - Get a personal access token.
- Get the organization ID: Required only for the Central edition. Go to Organization Settings > Basic Information to get the organization ID.
|
Product |
Resource |
Permission |
|
Projects |
project member |
Read/Write |
Request syntax
Central edition
DELETE https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}/members
Region edition
DELETE https://{domain}/oapi/v1/projex/projects/{id}/members
Request headers
|
Parameter |
Type |
Required |
Description |
Example |
|
x-yunxiao-token |
string |
Yes |
The personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
In |
Required |
Description |
Example |
|
id |
string |
path |
Yes |
The unique project ID. |
589c53d622cc8521793e08**** |
|
organizationId |
string |
path |
|
The organization ID. |
|
| - |
object |
body |
No |
The request body. |
|
| operatorId |
string |
body |
No |
The ID of the operator. Ignored when using a personal access token. |
user-xxx |
| roleIds |
array[string] |
body |
No |
The role IDs. |
["project.participant"] |
| userId |
string |
body |
Yes |
The user ID. |
11234 |
Request examples
Central edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/589c53d622cc8521793e08****/members' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"operatorId": "user-xxx",
"roleIds": ["project.participant"],
"userId": "11234"
}'
Region edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/projex/projects/589c53d622cc8521793e08****/members' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"operatorId": "user-xxx",
"roleIds": ["project.participant"],
"userId": "11234"
}'
Response parameters
A successful request returns an empty response body.
Error codes
For a list of API error codes, see the Error Code Center.
Is this page helpful?