Importing Data by Using a Template
Function
This API is used to import data by using a template. Before importing data, you need to create a data import template and define data mapping rules in the template. When this API is called, the template name must be specified and the operation script must be defined in the template. The import process may take a long time. The import result will not be returned immediately. After the import is complete, you can view the execution status of the scheduled task based on the obtained task ID.
URI
POST Huawei Cloud Astro Zero domain name/u-route/baas/bulk/v1.0/template/xlsx?template={template}&filename={filename}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
template |
Yes |
String |
Explanation Name of the data import template. Constraints None Value None Default value None |
filename |
Yes |
String |
Explanation Name of the file to upload. Constraints The file can be in XLS or XLSX format. Value None Default value None |
Request Parameters
None
Response Parameters
This API has no response parameter. If the HTTP status code is 200, the file is successfully uploaded. The data import task is executed in the backend.
Example Request
POST https://Huawei Cloud Astro Zero domain name/ u-route/baas/bulk/v1.0/template/xlsx?template=myTemplate&filename=myData.xlsx
Example Response
None
Status Code
See Status Codes.
Error Code
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