Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.
Options

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"
}]}

Tagged:

Best Answer

  • Options
    Answer ✓

    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!

Sign In or Register to comment.