编辑自定义铃声
编辑自定义铃声的文件名。
请求 URL
POST {base_url}/{api_path}/custom_ringtone/updatefile?access_token={access_token}
请求参数
| 参数 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| id | 是 | Integer | 自定义铃声的 ID。 注: 可使用 搜索自定义铃声 接口查询自定义铃声的 ID。 |
| new_file | 是 | String | 新文件名,包含文件扩展名 (如 "demo_ringtone.wav")。 |
响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
| errcode | Integer | 返回错误码。
注: 更多错误码和错误信息说明,请参见 错误码 & 错误信息。
|
| errmsg | String | 返回信息。
|
示例
请求示例
POST /openapi/v1.0/custom_ringtone/updatefile?access_token=gwakjgu9ZBUfz36wql4ndsVKkryI0kdj HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"id": 12,
"new_file": "demo_ringtone.wav"
}
响应示例
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}