Get Available Image Files
Retrieves the image files that can be used when configuring phones.
Request URL
GET {base_url}/uc-cautop/api/v1/image-files/options
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.
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<Image_File_Options> | The list of available image files. |
- Image_File_Options
-
Parameter Type Description items Array<Image_File_Option> The list of available image files.
- Image_File_Option
-
Parameter Type Description id String The ID of the image file. name String The name of the image file. fileName String The original file name of the image file.
Example
Request example
GET /uc-cautop/api/v1/image-files/options HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9vay5jb20iLCJncmFudF90eXBlIjoib3BlbmFwaSIsImNsaWVudF9leHQiOnsiZGVzY3JpcHRpb24iOiLnrKzkuInmlrnlkIjkvZzkvJnkvLTlupTnlKgiLCJwYXJ0bmVyIjoi56S65L6L5ZCI5L2c5LyZ5Ly0In0sImNsaWVudF90eXBlIjoib3BlbmFwaSIsImV4cCI6MTc5MDc3MDY4NiwiaWF0IjoxNzkwNzQ5MDg2LCJqdGkiOiIyNjQ5ZTk2Yi1kZjBkLTQ3ZjItOTJlNS01ODEyYTg4NmJjOWQiLCJjbGllbnRfaWQiOiJub3ZvLW9wZW4tcGxhdGZvcm0iLCJ1c2VyX2V4dCI6eyJyb2xlSWRzIjpbM10sInN0eXBlIjoiQURNSU4iLCJ0ZW5hbnRDb2RlIjpudWxsLCJ0eXBlIjoiUF9BQ0NPVU5UIiwidXNlcklkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJlbWFpbCI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInVzZXJuYW1lIjoiZGlzdHJpYnV0b3JleGFtcGxlQG91dGxvb2suY29tIiwidWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5Nn19.0wcK9nXqw2qECw8dH5sEp68buMqqDyWsqKIZ6uaXBPF1OAcywjSbIw4jCtll7s9cfsXh8iO0n1dVb90yh5eepg2g7YxI-BibZLFG68qGdCLT2wjaSS1AjvXfL10fkdLfTopn_9Ie9XrW_5C6k1p02hea_q5tEqTWM23ICVKnhXo3J6pSYUHWnKfwJCk3UqEQBu1bc5lTLCH-Sa096FrwtNuNfynyHK5WHcmopYio5fNGggplSQKrAXjrw4azV6VF4E6EPoMszj_cS68zACNDNdZW4kj6gF0Ui5A60UZ_7N3n9sczLv4Ico4sKxC9SnRv1cXlmbO_18piJejxI_3T8g
x-tenant-code: jint
Response example
HTTP/1.1 400 Bad Request { "requestId": "55676cd3a72958c037ef30711e81f230", "code": "400", "message": "CODEC", "detailMessage": "parsing field \"id\": strconv.ParseInt: parsing \"options\": invalid syntax", "result": null }
Warning:
In the current test environment, this request is intercepted by the /{id} route, and the literal path segment options is parsed as the image file ID, which causes the request to fail. Verify that the service is operational before using this interface.