CreateChatMediaUrl
Retrieves the upload URL for chat message media files.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MimeType |
string |
Yes |
media id |
jpg |
| RequestId |
string |
No |
The request ID. |
9F766284-F103-4298-8EC5-19F9F9BE5522 |
| InstanceId |
string |
Yes |
The Cloud Call Center instance ID. |
9cfad875-6260-4a53-ab6e-b13e3fb31f7d |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
GetChatMediaUrlResponse |
||
| Data |
object |
The data. |
|
| MediaId |
string |
The media ID. |
$iAHNCNQCo21wMwMGBAAFAAbaACOEAaQhIH6TAqogDGyb-qD2Hbj0A88AAAGRLKYVnwTOACwwYwcACM8AAAGRLRPynQ |
| Url |
string |
The file URL. |
https://ccc-v2-online.oss-cn-shanghai.aliyuncs.com/ccc-test/namelist.csv?Expires=1642067227&OSSAccessKeyId=****&Signature=**** |
| RequestId |
string |
The request ID. |
03C67DAD-EB26-41D8-949D-9B0C470FB716 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
string |
The response code. |
OK |
| Message |
string |
The response message. |
None |
| Params |
array |
The response parameters. |
|
|
string |
The error parameters. |
['OFFLINE', 'BREAK,READY,WORKING'] |
Examples
Success response
JSON format
{
"Data": {
"MediaId": "$iAHNCNQCo21wMwMGBAAFAAbaACOEAaQhIH6TAqogDGyb-qD2Hbj0A88AAAGRLKYVnwTOACwwYwcACM8AAAGRLRPynQ",
"Url": "https://ccc-v2-online.oss-cn-shanghai.aliyuncs.com/ccc-test/namelist.csv?Expires=1642067227&OSSAccessKeyId=****&Signature=****"
},
"RequestId": "03C67DAD-EB26-41D8-949D-9B0C470FB716",
"HttpStatusCode": 200,
"Code": "OK",
"Message": "无",
"Params": [
"['OFFLINE', 'BREAK,READY,WORKING']"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | The specified call center instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.