# Adding rows to HubDB Table - API

**URL:** <https://community.hubspot.com/t/adding-rows-to-hubdb-table-api/50976>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [February 6, 2022, 8:34am UTC](https://community.hubspot.com/t/adding-rows-to-hubdb-table-api/50976 "2022-02-06T08:34:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisChiha](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chrischiha/32/90510_2.png) [@ChrisChiha](https://community.hubspot.com/u/ChrisChiha)\
**Post date:** [February 6, 2022, 8:34am UTC](https://community.hubspot.com/t/adding-rows-to-hubdb-table-api/50976/1 "2022-02-06T08:34:27Z")

</div>

Hello,

I am trying to post data to my hubdb table using this API:  
[https://developers.hubspot.com/docs/api/cms/hubdb?\_ga=2.90709146.1816002823.1644129586-1021920363.1643623263](https://developers.hubspot.com/docs/api/cms/hubdb?_ga=2.90709146.1816002823.1644129586-1021920363.1643623263)

I am currently including in the body of my POST request:  
{  
“values”: {  
“email”: “[APITEST@gmail.com](mailto:APITEST@gmail.com)”,  
“name”: “APITEST”,  
“lastupdated”: “06/02/2022”, }  
&nbsp;&nbsp;&nbsp;&nbsp;}

But i am receiving the following error when i post the request :  
\<body\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<h2\>HTTP ERROR 415\</h2\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<p\>Problem accessing /cms/v3/hubdb/tables/5294922/rows. Reason:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<pre\> Unsupported Media Type\</pre\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</p\>  
\</body\>

Anybody faced this issue ? Would appreciate some advice.

---

<div class="post-metadata">

**Author:** ![miljkovicmisa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miljkovicmisa/32/86357_2.png) [@miljkovicmisa](https://community.hubspot.com/u/miljkovicmisa)\
**Post date:** [February 6, 2022, 1:05pm UTC](https://community.hubspot.com/t/adding-rows-to-hubdb-table-api/50976/2 "2022-02-06T13:05:45Z")

</div>

Hi @ChrisChiha and thank you for writing in the forum,  
this error is related to the payload format of your request, meaning that some data is not properly formatted, please **make sure your request’s “content-type” header is “application/json”**.  
Also I’m not 100% sure because I haven’t made this exact request **but anything else I have ever worked with has always wanted me to pass dates in timestamp format** because its the standard format the computer understands, you seem to be sending a date in a formatted way and that could be causing the issue.  
_ **If my answer was helpful please mark it as a solution.** _

---

<div class="post-metadata">

**Author:** ![ChrisChiha](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chrischiha/32/90510_2.png) [@ChrisChiha](https://community.hubspot.com/u/ChrisChiha)\
**Post date:** [February 6, 2022, 1:27pm UTC](https://community.hubspot.com/t/adding-rows-to-hubdb-table-api/50976/3 "2022-02-06T13:27:52Z")

</div>

Hello @miljkovicmisa,  
Content-type solved my issue, i was able to populate my Hubdb.  
Thank you !
