unable to update rows with hubspot client api

When i try update a row using this function :

hubspotClient.cms.hubdb.tables.rowsApi.updateDraftTableRow(tableIdOrName, rowId, HubDbTableRowV3Request)

I get this error

“Cannot read properties of undefined (reading ‘rowsApi’)”

The cms and hubd services are unabled for this app and the function

“hubspotClient.crm.deals.basicApi.getPage()”

it works

Hi @naixs

Thank you for reaching out.

I want to tag some of our experts here - @klloyd__1 @MBERARD do you know what may be happening here?

Thank you!

Best

Tiphaine

Hi @naixs -

You should try this way to update row in HubDB

Example PUT URL:
https://api.hubapi.com/hubdb/api/v2/tables/300081/rows/4690423622?hapikey=demo

Example request data:
Update the row to have the single column with id ‘4’ of type TEXT:
{
“values”: {
“4”: “updated”
}
}

Example Response:
{
“id”: 4690423622,
“createdAt”: 1483744403213,
“path”: null,
“name”: null,
“values”: {
“4”: “updated”
}
}

If you find it helpfull.Please amrk it as Solution.

Thanks!

Thanks for sharing, @GRajput :raising_hands: Hey, @naixs were you able to find a solution here?