Not sure what I'm doing wrong this time, trying to add extension 1158 to automatic call recording, when running the script below I receive:
ringcentral.http.api_exception.ApiException: Parameter [addedExtensions] value is invalid.
But the documentation tells me to use "addedExtensions"? I get the same error if I try to use "updatedExtensions"?
Specific API call I'm following: Office API Reference | RingCentral Developers
accountId = '~'
body = {
'addedExtensions': {
'extensionNumber': 1158,
'callDirection': 'Outbound'
},
# 'updatedExtensions': {
# 'extensionNumber': 1158,
# 'callDirection': 'Outbound'
# },
# 'removedExtensions': {
# 'extensionNumber': 1158,
# 'callDirection': 'Outbound'
# }
}
r = platform.post(f'/restapi/v1.0/account/{accountId}/call-recording/bulk-assign', body)
Also tried calling using the extensionId thinking it was because I was calling the extension, but it still spits out the same error. Am I missing permissions for this?
Thanks