I send the POST request
https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/andrew-test-api-012@mailinator.com?hapikey=myAPI
and body is
{
"properties": [
{
"property": "lastname",
"value": "Weaver-012-test in POST"
},
{
"property": "website",
"value": "http://mysite.com"
},
{
"property": "outlets",
"value": "1"
},
{
"property": "company",
"value": "testComany-01"
},
{
"property": "phone",
"value": "067 123-123-1"
},
{
"property": "address",
"value": "Bla bla lba Street"
},
{
"property": "city",
"value": "Moloko"
},
{
"property": "state",
"value": "UA"
},
{
"property": "zip",
"value": "01001"
},
{
"property": "ai_m",
"value": "true"
}
]
}
where property ai_m is custom property which I already created at CRM
but I have trouble because the response is
{
"validationResults": [
{
"isValid": false,
"message": "Property \"ai_m\" does not exist",
"error": "PROPERTY_DOESNT_EXIST",
"name": "ai_m"
}
],
"status": "error",
"message": "Property values were not valid",
"correlationId": "2ac9714b-905b-4d09-83f6-84a3d1036d78",
"requestId": "8c3a6b42-5da3-4263-9e7e-1dc47f4c0e0c"
}
I figure out that same problem exist from 2016 but I nowhere find the solution.