# unable to update rows with hubspot client api

**URL:** <https://community.hubspot.com/t/unable-to-update-rows-with-hubspot-client-api/71923>\
**Category:** CMS Development\
**Created:** [December 28, 2022, 4:13pm UTC](https://community.hubspot.com/t/unable-to-update-rows-with-hubspot-client-api/71923 "2022-12-28T16:13:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![naixs](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/naixs/32/77566_2.png) [@naixs](https://community.hubspot.com/u/naixs)\
**Post date:** [December 28, 2022, 4:13pm UTC](https://community.hubspot.com/t/unable-to-update-rows-with-hubspot-client-api/71923/1 "2022-12-28T16:13:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TitiCuisset](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TitiCuisset](https://community.hubspot.com/u/TitiCuisset)\
**Post date:** [January 6, 2023, 11:00am UTC](https://community.hubspot.com/t/unable-to-update-rows-with-hubspot-client-api/71923/2 "2023-01-06T11:00:11Z")

</div>

Hi @naixs

Thank you for reaching out.

I want to tag some of our experts here - [@klloyd\_\_1](https://community.hubspot.com/t5/user/viewprofilepage/user-id/381293) @MBERARD do you know what may be happening here?

Thank you!

Best

Tiphaine

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [February 15, 2023, 9:26am UTC](https://community.hubspot.com/t/unable-to-update-rows-with-hubspot-client-api/71923/3 "2023-02-15T09:26:55Z")

</div>

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](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!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 15, 2023, 6:34pm UTC](https://community.hubspot.com/t/unable-to-update-rows-with-hubspot-client-api/71923/4 "2023-02-15T18:34:59Z")

</div>

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