Parameters
| Name | Type | Required | Description |
|---|---|---|---|
brandId | string | Yes | Ocoya brand id from ocoya_list_brands. |
contactId | string | Yes | Contact id from ocoya_list_contacts. |
firstName | string | No | — |
lastName | string | No | — |
properties | object | No | Replaces the contact’s extra fields. |
groups | string[] | No | Every group the contact should be in, by name; they are removed from the others. |
status | string | No | One of subscribed, unsubscribed. |
consentConfirmed | boolean | No | Required with status subscribed: confirms the person asked to be subscribed again. |
Request example
{
"name": "ocoya_update_contact",
"arguments": {
"brandId": "cmayvq3hk00017apshay5qezu",
"contactId": "cmwdke27h0045y0k4fi0tm5pj"
}
}Returns
Returns the result of the call as JSON.