You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`email`| string | Yes | If a contact already exists with this email address, an error response will be returned. |
78
-
|`properties`| object | No | An object containing default and any custom properties for your contact.<br />Please [add custom properties](https://loops.so/docs/contacts/properties#custom-contact-properties) in your Loops account before using them with the SDK.<br />Values can be of type `string`, `number`, `boolean` or `date` ([see allowed date formats](https://loops.so/docs/contacts/properties#dates)). |
79
-
|`mailingLists`| object | No | An object of mailing list IDs and boolean subscription statuses. |
|`email`| string | Yes | If a contact already exists with this email address, an error response will be returned. |
78
+
|`properties`| object | No | An object containing default and any custom properties for your contact.<br />Please [add custom properties](https://loops.so/docs/contacts/properties#custom-contact-properties) in your Loops account before using them with the SDK.<br />Values can be of type `string`, `number`, `null` (to reset a value) `boolean` or `date` ([see allowed date formats](https://loops.so/docs/contacts/properties#dates)). |
79
+
|`mailingLists`| object | No | An object of mailing list IDs and boolean subscription statuses. |
80
80
81
81
#### Examples
82
82
@@ -128,11 +128,11 @@ Note: To update a contact's email address, the contact requires a `userId` value
|`email`| string | Yes | The email address of the contact to update. If there is no contact with this email address, a new contact will be created using the email and properties in this request. |
134
-
|`properties`| object | No | An object containing default and any custom properties for your contact.<br />Please [add custom properties](https://loops.so/docs/contacts/properties#custom-contact-properties) in your Loops account before using them with the SDK.<br />Values can be of type `string`, `number`, `boolean` or `date` ([see allowed date formats](https://loops.so/docs/contacts/properties#dates)). |
135
-
|`mailingLists`| object | No | An object of mailing list IDs and boolean subscription statuses. |
|`email`| string | Yes | The email address of the contact to update. If there is no contact with this email address, a new contact will be created using the email and properties in this request. |
134
+
|`properties`| object | No | An object containing default and any custom properties for your contact.<br />Please [add custom properties](https://loops.so/docs/contacts/properties#custom-contact-properties) in your Loops account before using them with the SDK.<br />Values can be of type `string`, `number`, `null` (to reset a value) `boolean` or `date` ([see allowed date formats](https://loops.so/docs/contacts/properties#dates)). |
135
+
|`mailingLists`| object | No | An object of mailing list IDs and boolean subscription statuses. |
136
136
137
137
#### Example
138
138
@@ -304,14 +304,14 @@ Send an event to trigger an email in Loops. [Read more about events](https://loo
|`email`| string | No | The contact's email address. Required if `userId` is not present. |
310
-
|`userId`| string | No | The contact's unique user ID. If you use `userID` without `email`, this value must have already been added to your contact in Loops. Required if `email` is not present. |
311
-
|`eventName`| string | Yes ||
312
-
|`contactProperties`| object | No | An object containing contact properties, which will be updated or added to the contact when the event is received.<br />Please [add custom properties](https://loops.so/docs/contacts/properties#custom-contact-properties) in your Loops account before using them with the SDK.<br />Values can be of type `string`, `number`, `boolean` or `date` ([see allowed date formats](https://loops.so/docs/contacts/properties#dates)). |
313
-
|`eventProperties`| object | No | An object containing event properties, which will be made availabe in emails that are triggered by this event.<br />Values can be of type `string`, `number`, `boolean` or `date` ([see allowed date formats](https://loops.so/docs/events/properties#important-information-about-event-properties)). |
314
-
|`mailingLists`| object | No | An object of mailing list IDs and boolean subscription statuses. |
|`email`| string | No | The contact's email address. Required if `userId` is not present. |
310
+
|`userId`| string | No | The contact's unique user ID. If you use `userID` without `email`, this value must have already been added to your contact in Loops. Required if `email` is not present. |
311
+
|`eventName`| string | Yes ||
312
+
|`contactProperties`| object | No | An object containing contact properties, which will be updated or added to the contact when the event is received.<br />Please [add custom properties](https://loops.so/docs/contacts/properties#custom-contact-properties) in your Loops account before using them with the SDK.<br />Values can be of type `string`, `number`, `null` (to reset a value) `boolean` or `date` ([see allowed date formats](https://loops.so/docs/contacts/properties#dates)). |
313
+
|`eventProperties`| object | No | An object containing event properties, which will be made availabe in emails that are triggered by this event.<br />Values can be of type `string`, `number`, `boolean` or `date` ([see allowed date formats](https://loops.so/docs/events/properties#important-information-about-event-properties)). |
314
+
|`mailingLists`| object | No | An object of mailing list IDs and boolean subscription statuses. |
@@ -490,6 +490,7 @@ If your account has no custom fields, an empty list will be returned.
490
490
491
491
## Version history
492
492
493
+
-`v3.1.0` (Aug 12, 2024) - The SDK now accepts `null` as a value for contact properties in `createContact()`, `updateContact()` and `sendEvent()`, which allows you to reset/empty properties.
493
494
-`v3.0.0` (Jul 2, 2024) - [`sendTransactionalEmail()`](#sendtransactionalemail) now accepts an object instead of separate parameters (breaking change).
494
495
-`v2.2.0` (Jul 2, 2024) - Deprecated. Added new `addToAudience` option to [`sendTransactionalEmail()`](#sendtransactionalemail).
495
496
-`v2.1.1` (Jun 20, 2024) - Added support for mailing lists in [`createContact()`](#createcontact), [`updateContact()`](#updatecontact) and [`sendEvent()`](#sendevent).
0 commit comments