Adding Project Members in Batches
Function
When you add project members in batches, only members under the same tenant as the project creator can be added. Incorrect user IDs will be skipped. If the added users exceed the permission, the default role is set to 7.
URI
POST /v4/projects/{project_id}/members
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 the 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 |
---|---|---|---|
users |
Yes |
Array of BatchAddMemberRequestV4 objects |
Information about the added user |
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/526cefde62004de2b62b5e8dd2c2b3af/members { "users" : [ { "user_id" : "665b542eb4c14b53a15ead449f28b0ba", "role_id" : 5 } ] }
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
204 |
No Content |
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