trouble during updating the custom properties by API

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.

Welcome, @Andrew_tk.

Are you attempting to create contacts in the test account ending in 2097?

If so, requests to read all contact object properties (v3, v1) do not return any boolean properties with the name ai_m.

I do see that an active_subscriptions custom enumeration property has an option for ai_m, however. If that is the property to which you wish to write, use:

{
 "property": "active_subscriptions",
 "value": "ai_m"
}

thank you. It’s exactly that I need