Hubsot Form via API legal checkbox (abo type)

Hi everyone…
I hope somebody can help me out with my issue I am currently facing. I have a simple form connected to the Hubspot API. All fields get populated correctly – except the legal checkbox. Error Message withi Hubspot "this value was not passed to the contact record “legal_consent" is not valid”. I thought "legal_consent" is the name field for this checkbox value…
What is the name field value to transmit to hubspot?

Thanks in advance folks… :wink:
Best Michael

Hey, @mclopez :waving_hand: Can you share an example of the request body you are sending?

Thanks! — Jaycee

Hi @Jaycee_Lewis
I still could not manage getting it to work…;(
That is the request, the property should be the consent within hubspot “legal_consent
Maybe it’s not the right property name… not sure

Thanks in advance for your help, appreciate it…

Hey @mclopez :waving_hand: Have you tried `hs_legal_basis` instead?

I set up a quick test form with those options added and used a test contact to make a submission. The property `hs_legal_basis` is what is getting updated in my test.

Best,

Jaycee

Hi @Jaycee_Lewis
well :wink: yes. Now the message is gone.
Thank you so much… Is this documented anywhere?
Maybe you could give me a hint why this entry still is different somehow.
I have other entries showing explicitly the legal value under “other values

The new ones does not have this “other values”.

Thanks in advance and have a great day…
Michael

Hey @Jaycee_Lewis
THX for your reply.
So that’s a screenshot of the data sent & the html rendered. Not sure what the legal field should be to be accepted by hubspot.

The legal_consent should be the legal checkbox, the subscription type which could be set for the forms