Update subscriber properties

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.

Resource URL:

PATCH https://api.essential.to/v2/account/subscribers/{subscriber_sid}/properties

Resource information:

Response formatJSON
Requires authentication?Yes

Parameters:

properties
required

Properties to set for the subscriber.

Sample code:

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.