Updates the subscriber properties. The properties passed in to the API are merged with the existing subscriber properties. Property names must be camel cased or this call will fail. Note that subscriber properties are visible to bots through the subscriber.properties
hash. See the Bot Documentation for more information.
Response format | JSON |
---|---|
Requires authentication? | Yes |
properties required | Properties to set for the subscriber. |
---|
curl -X PATCH \
-u '[SID]:[TOKEN]' \
-H 'Content-Type: application/json' \
'https://api.essential.to/v2/account/subscribers/RsbrYCSo2m0sShMLOlZqtw/properties' \
-d '{ "properties": { "sampleProperty": 123, "secondProperty": "Another property" }}'
# Sample response
{
"lastPurchaseDate": "2017-02-20T16:20:00.000Z",
"sampleProperty": 123,
"secondProperty": "Another property"
}
Python coming soon.
Node coming soon.