Creating a Batch Provisioning Task
Function
Create a batch provisioning task.
URI
POST /koodrive/ose/v1/user/batchRegister/create
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Authorization | Yes | String | Definition: Signature generated in AK/SK authentication mode. Constraints: N/A Range: N/A Default Value: N/A |
| X-Date | Yes | String | Definition: Date, which is used for app authentication. The format is yyyyMMdd'T'HHmmss'Z'. Constraints: The time must be within 15 minutes from the current time and cannot be later than the current time. Range: N/A Default Value: N/A |
| X-User-Id | Yes | String | Definition: User ID on KooDrive, which is used for app authentication. Constraints: N/A Value range: N/A Default Value: N/A |
| X-Traceid | No | String | Definition: Service trace ID, which contains 58 bits. Constraints: N/A Range: The value contains 58 bits. Default Value: N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| userList | Yes | Array of RegisterUserInfo objects | List of provisioned users. Length: 1,000. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| code | String | Error Codes |
| msg | String | Error description. |
| data | String | Task ID. |
Example Requests
POST /koodrive/ose/v1/user/batchRegister/create
{
"userList" : [ {
"firstname" : "1204",
"surname" : "1204",
"phone" : "1884609076404",
"email" : "1024@12.com",
"password" : "Q!@1assword"
}, {
"firstname" : "1205",
"surname" : "1205",
"phone" : "1884609076405",
"email" : "1052@12.com",
"password" : "paO2*ssword"
} ]
} Example Responses
Status code: 200
User provisioning response
{
"data" : "1893596414966089600",
"code" : 0,
"msg" : "Success"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | User provisioning response |
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