I'm trying to record a message on the phone through CUTI, then set it as a greeting using CUPI.
When I record, I POST
{"op":"RECORD"}
to /vmrest/calls/{callId}, which returns the following once I finish recording by pressing # on the called phone
{"op":"RECORD","resourceType":"STREAM","resourceId":"d6446fd6-0807-4c1b-9aba-77fc3b85174a.wav","lastResult":"0","speed":"100","volume":"100","startPosition":"0"}
I then try to set this recording to the primary call handler of a mailbox:
PUT: /vmrest/handlers/callhandlers/3f25a1e5-fe1e-4d58-bd95-b4912c45dae2/greetings/Alternate/greetingstreamfiles/1031
with this content
{"op":"RECORD","ResourceType":"STREAM","resourceId":"d6446fd6-0807-4c1b-9aba-77fc3b85174a.wav","lastResult":"0","speed":"100","volume":"100","startPosition":"0"}
And I get an HTTP 400 error with this content back
{"errors":{"code":"DATA_EXCEPTION","message":"Missing parameter label.greetingstreamfile.streamfile"}}
Any idea what's going on here?