首页 文章

上传RingCentral自定义问候语音频文件的最大大小是多少?

提问于
浏览
1

调用RingCentral创建自定义问候API时:

POST /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting

我有时会因较大的文件MP3和WAV媒体文件而出现以下错误 . 是否有官方大小限制?

HTTP/1.1 413 Request Entity Too Large

{
    "errorCode": "AGW-413",
    "message": "Request entity too large",
    "errors": [

    ]
}

API参考或博客文章中没有指定限制:

API参考:

https://developers.ringcentral.com/api-docs/latest/index.html#!#RefCreateUserCustomGreeting

我正在使用带有以下代码的ringcentral_sdk gem

req = RingCentralSdk::REST::Request::Multipart.new(
  method: 'post',
  url: 'account/~/extension/~/greeting'
).
add_json({type: 'Voicemail', answeringRule: {id: '11111111'}}).
add_file(file)

res = client.send_request req

puts res.status
puts MultiJson.encode(res.body, pretty: true)

更多内容在这篇博客文章中:

https://medium.com/ringcentral-developers/updating-ringcentral-user-extension-greetings-using-the-rest-api-and-ruby-db325022c6ee

2 回答

相关问题