Dashboard
Edit Article Logout

Create or Update a Contact


Creates or updates a contact. A new contact only requires either a valid email address or valid mobile phone number. All other fields are optional.

Updating custom fields

DailyStory supports custom fields to allow you to store virtually any data with a contact.

Recommended

While custom fields comes with their own benefits you can add/remove data using API even if you haven't created the custom field.

To update a contact's custom fields, include the custom field data in the JSON body of your POST:

{ "email":"example@example.com", "extendedProperties":{ "some_custom_field":"hello world" } }

While not required, we recommend custom field key is lower case, contain no spaces, and are limited to alphanumeric characters. This ensures that if the custom field were used for API access, such as personalization, the customer field could be accessed. For example, {{profile.some_custom_field}}.  

HTTP Response Examples
200
{ "Status": true, "Message": "", "Response": { "id": "5a0d669ab6984125a1c63aaacfd0a9cd" } }
HTTP Response Parameters
Response.idstring
The dsid of the contact that was updated or created.


How helpful was this article?

πŸ‘ or πŸ‘Ž

Related Articles