I am having some issues with the HubDB , I keep running into a typeerror, the code is the following error:
TypeError: RowsBatchApi.batch_create_draft_table_rows() missing 1 required positional argument: ‘batch_input_hub_db_table_row_v3_request’ , but I cannot see what argument I am missing
batch_input_hub_db_table_row_v_3_request = BatchInputHubDbTableRowV3Request(inputs=[{"values":{"text_column":"sample text value"}}])
try:
api_response = client.cms.hubdb.rows_batch_api.batch_create_draft_table_rows(table_id_or_name=“4708328", batch_input_hub_db_table_row_v_3_request=batch_input_hub_db_table_row_v_3_request)
pprint(api_response)
except ApiException as e:
print(“Exception when calling rows_batch_api->batch_create_draft_table_rows: %s\n” % e)
The error message is: TypeError: RowsBatchApi.batch_create_draft_table_rows() missing 1 required positional argument: ‘batch_input_hub_db_table_row_v3_request’
The table I am writing to is very simple, it has the following columns:
ID
PAGE TITLE
PAGE PATH
CHILD TABLE
TEXT COLUMN