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

Add recording using REST API fails

Hi, I am trying to add a recording using REST API. I verified the recorder exists with the same ID. But keep getting the error message that the recorder id is invalid. Am I missing anything?

url = "https://xyz.hosted.panopto.com/Panopto/api/v1/scheduledRecordings?resolveConflicts=true"
body = {'Name': 'api_test_name',
        'Description': 'api_test_descr',
        'StartTime': '2023-04-08T16:22:24.24Z',
        'EndTime': '2023-04-08T17:22:24.24Z',
        'FolderId': '5a0276b6-52b3-4e16-9b4a-ad3a011183d3',
        'IsBroadcast': 'false',
        'Recorders': [{'RemoteRecorderId': "f9d19120-a1ea-4b66-be58-afd6011820df",
                       'SuppressPrimary': 'false',
                       'SuppressSecondary': 'false'
                       }]}
response = requests.post(url=url, headers={'Authorization': 'Bearer {access_token}'.format(access_token=token)}, data=body)

{'Error': {'ErrorCode': '', 'Message': 'RecorderScheduleEntries must have a valid recorder id. on recorder 00000000-0000-0000-0000-000000000000', 'Success': False, 'ErrorSource': None}}

Answers

  • Options

    I'm not sure of the syntax in the language you are using, but I notice a deviation where you use double quotes surrounding the RemoteRecorderId compared to the rest of the strings.

Sign In or Register to comment.