I am trying to update the ‘Opted out of Email-Marketing Communication’ property of a contact which is part of Subscription Status using an API from Postman, but I keep on getting a
READ_ONLY_VALUE error. However, I can change its value directly from HubSpot. Can someone suggest me how to get around this error.
I have written the following payload in body.
{
“properties”: [
{
"property": "hs\_lead\_status",
"value": "IN\_PROGRESS"
},
{
"property": "hs\_email\_optout\_225987316",
"value": "true"
}]
}
and I am making the api call at the endpoint : https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/Email/