Aug 17, 2022 4:31 AM - edited Aug 17, 2022 10:55 AM
Im using the Import API for creating a contact record in hubspot.
I've created a custom property which I expect to populate it with an Html code (in String). I configured the type of this property to "Signle line text" and "Multi-line-text", but none of them worked for me. I'm recieiving the following response:
status 400, bad request, 'This media type text/html is not supported' .
How can I overcome this issue? Thanks in advance.
update: inserted the code i'm using
Aug 22, 2022 4:20 AM
Hi @DPevzner ,
You can currently add a 'richtext' property that allows HTML. Did you try that property yet?
Does your code work if you leave out the HTML?
Aug 22, 2022 5:18 AM
The html code was inserted after changing the property type to "rich text" but I needed to do escaping to the html before importing it, without it, it would still throw the same error as above. Is there a way to import it without escaping the html?