Parameters

NameTypeRequiredDescription
brandIdstringYesOcoya brand id from ocoya_list_brands.
contactIdstringYesContact id from ocoya_list_contacts.
firstNamestringNo—
lastNamestringNo—
propertiesobjectNoReplaces the contact’s extra fields.
groupsstring[]NoEvery group the contact should be in, by name; they are removed from the others.
statusstringNoOne of subscribed, unsubscribed.
consentConfirmedbooleanNoRequired 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.