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
I am currently including in the body of my POST request:
{
“values”: {
“email”: “APITEST@gmail.com”,
“name”: “APITEST”,
“lastupdated”: “06/02/2022”, }
}
But i am receiving the following error when i post the request :
<body>
<h2>HTTP ERROR 415</h2>
<p>Problem accessing /cms/v3/hubdb/tables/5294922/rows. Reason:
<pre> Unsupported Media Type</pre>
</p>
</body>
Anybody faced this issue ? Would appreciate some advice.
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.
Hello @miljkovicmisa,
Content-type solved my issue, i was able to populate my Hubdb.
Thank you !