Read only properties


#1

properties such as first page seen , number of visits, first referring site,ipaddress are read only value.Values are not updated
Property - First page seen
Request body
{
"properties": [
{
"property": "email",
"value": "tesi1ngsd@hubspot.com"
},
{
"property": "firstname",
"value": "Adrian"
},
{
"property": "lastname",
"value": "Mott"
},
{
"property": "website",
"value": "http://hubspot.com"
},
{
"property": "company",
"value": "HubSpot"
},
{
"property": "phone",
"value": "555-122-2323"
},
{
"property": "address",
"value": "25 First Street"
},
{
"property": "city",
"value": "Cambridge"
},
{
"property": "state",
"value": "MA"
},
{
"property": "zip",
"value": "02139"
},
{
"property":"hs_analytics_first_url",
"value":"http://hubspot.com"
}
]
}

Response body
{

"status": "error",

"message": "Property values were not valid",

"correlationId": "b217c14d-5378-4ea6-825a-8e5b308f428c",

"validationResults":[

{"isValid": false, "message": ""hs_analytics_first_url" is a read only property; its value cannot be set.", "error": "READ_ONLY_VALUE",…}

],

"requestId": "c0d82f31975d5a6a8d97ce0be17c688b"

}
The similar response getting for read only properties


#2

Hi @Tanisha, this is expected as those properties are set upon first visit for a contact, and are set via the tracking code and the cookies we drop in: https://developers.hubspot.com/docs/methods/tracking_code_api/tracking_code_overview. These fields cannot be manipulated