The comments in the file state:
- To run this example file:
-- Copy and paste the contents of this file
-- Plug in your CLIENT_ID and CLIENT_SECRET (https://developer.domo.com/manage-clients), and execute "python3 run_examples.py"
The Python script fails to execute at line 429 because owners is included in the page dict, but it is not accepted as pat of the page update API endpoint.
My solution was:
# Update the page using returned page
page['name'] = 'Updated Page'
domo.logger.info("Page keys before update: {}".format(list(page.keys())))
if 'owners' in page:
del page['owners'] # Remove the unexpected 'owners' key
domo.pages.update(**page)
domo.logger.info("Renamed Page {}".format(page['id']))
The comments in the file state:
The Python script fails to execute at line 429 because owners is included in the page dict, but it is not accepted as pat of the page update API endpoint.
My solution was: