Update the role of a member in the project.
Function
Update the role of a member in the project.
URI
POST /v4/projects/{project_id}/members/role
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the 32-bit ID of the devcloud project. Minimum: 32 Maximum: 32 |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies a user token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. Minimum: 10 Maximum: 32768 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
role_id |
Yes |
Integer |
Member Role, -1: project creator, 3 project manager, 4 developers, 5 test manager, 6 test personnel, 7 participant, 8 viewer, 9 O&M manager |
user_ids |
Yes |
Array of strings |
Specifies the user ID. |
Response Parameters
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
Description |
error_code |
String |
Error Codes |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
Description |
error_code |
String |
Error Codes |
Example Requests
Post https://{endpoint}/v4/projects/e2da96a5d2c845e284f0ad47f8ca8cb1/members/role { "user_ids" : [ "08777d423500d4b01fe5c008d04336ab" ], "role_id" : 7 }
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
204 |
ok |
400 |
Bad Request |
401 |
Unauthorized |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot