Parameters

NameTypeRequiredDescription
brandIdstringYesOcoya brand id from ocoya_list_brands.
idsstring[]YesContact ids, up to 5000.
actionstringYesOne of add_to_groups, remove_from_groups, unsubscribe, delete.
groupsstring[]NoFor add_to_groups: group names; missing groups are created.
groupIdsstring[]NoFor remove_from_groups: group ids.

Request example

{
  "name": "ocoya_bulk_update_contacts",
  "arguments": {
    "brandId": "cmayvq3hk00017apshay5qezu",
    "ids": ["cmwdke27h0045y0k4fi0tm5pj"],
    "action": "add_to_groups"
  }
}

Returns

Returns the result of the call as JSON. This tool changes existing content in Ocoya.