Import Tenant Phones
Imports phones from a CSV file uploaded to the resource service and adds them to the current tenant in one request.
Request URL
POST {base_url}/uc-cautop/api/v1/tenant/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 resource ID of the CSV file that has been uploaded to the resource service. You can download the import template using the Download the 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.
|
| 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 statistics. |
- Import_Result
-
Parameter Type Description totalCount Integer The total number of records in the CSV file. successCount Integer The number of phones imported successfully. failedCount Integer The number of records that fail to be imported. errorLogResourceId String The resource ID of the error log file, which is returned when import failures occur. fileName String The name of the error log file.