Schedule Recording API
i'm working through scheduling a recording using the APIs but i've run into an issue and can't seem to get round - it could be something really obvious but any help would be appreciated.
i'm using this API https://demo.hosted.panopto.com/Panopto/Api/Docs/index.html#/ScheduledRecordings/ScheduledRecordings_CreateScheduledRecording
the error message i'm getting:
{"Error":{"ErrorCode":"","Message":"Name is required to create a new scheduled recording","Success":false,"ErrorSource":null}}
and the payload i'm sending is (folder and recorder id removed) it all looks correct to me but not working.
{"Name": "api_test_name",
"Description": "api_test_descr",
"StartTime": "2023-04-08T16:22:24.24Z",
"EndTime": "2023-04-08T17:22:24.24Z",
"FolderId": "xxx",
"IsBroadcast": "false",
"Recorders": [{"RemoteRecorderId": "xxx",
"SuppressPrimary": "false",
"SuppressSecondary": "false"
}]}
Best Answer
-
Michael Goodall Tyro
After alot of head scratching and trying different bits my json didnt have the correct syntax - i've got it working using the following
{"recorderSettings":
{
"RecorderSettings":
{"RecorderId":"XXX",
"SuppressPrimary":false
"SuppressSecondary":"true"}
},
"auth":
{
"UserKey":"mgoodall",
"Password":"UpGuiDqn2e3."
},
"name":"PSY9015",
"description":"PSY9015",
"start":"2024-07-06T14:36:43.660Z",
"end":"2024-07-06T15:36:43.660Z",
"isBroadcast":"false",
"folderId":"XXX"
}hope this helps someone else in the future!
0