Import Phones

Imports phones from a CSV file to create multiple phones in one request.

Request URL

POST {base_url}/uc-cautop/api/v1/phones/import

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String The access token used for authentication.

Format: Bearer {access_token}.

x-tenant-code Yes String The tenant name.
Note: You can obtain tenant name using the Query Tenants interface.
Body parameters
Parameter Required Type Description
resourceId Yes String The ID of the CSV file that has been uploaded to the resource service. You can download the CSV template using the Download a Phone Import Template interface.

Response parameters

Parameter Type Description
requestId String The unique ID of the request, which can be used to quickly locate the request.
code String The HTTP status code of the request.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
message String The status message of the request.
detailMessage String The detailed error information.

When the request is successful, this parameter returns empty.

result Object<Import_Result> The import result.
Import_Result
Parameter Type Description
totalCount Integer The total number of data rows in the file.
successCount Integer The number of rows imported successfully.
failedCount Integer The number of rows that fail to be imported.
errorLogResourceId String The resource ID of the error log file. This parameter is returned when failed rows exist.
fileName String The name of the original import file.