I'm very new to API's and am trying to accomplish the following:
Update the Archive Date to a future time that is approximately 5 minutes from the sending of the request.
I have successfully been able to get the Recording ID which is apparently 1 of 3 pieces of required information, the other being the interaction ID. What I'm struggling with is the Parameter for "body" which is described as "recording", data type "recording", and is required...
is this the right API for trying to get my recently restored recordings set back to archived (to free up my available retrieval requests) and
if that is the correct API, how do I satisfy that Parameter? Is it looking for an actual recording to send back and overwrite?
RecordingApi.getConversationRecordingmetadata() will give you the recording ID, assuming you already know the conversation ID. Once you have both IDs, use RecordingApi.putConversationRecording() with the body { "archiveDate": "2017-11-17T18:25:00+00:00" } to set the new archive date (using your own timestamp, of course). The archival process will be initiated "soon" after the archive date elapses; it can take 10+ minutes after the archive date until it becomes archived.
No, the state is a system-generated property. The only thing you need to do is set the archive date and the server will handle everything. If the state isn't transitioning to archived after a reasonable amount of time, please open a ticket with PureCloud Support to investigate (performance issues can't be investigated via the forum).