Parameters
| Name | Type | Required | Description |
|---|---|---|---|
brandId | string | Yes | Ocoya brand id from ocoya_list_brands. |
ids | string[] | Yes | Contact ids, up to 5000. |
action | string | Yes | One of add_to_groups, remove_from_groups, unsubscribe, delete. |
groups | string[] | No | For add_to_groups: group names; missing groups are created. |
groupIds | string[] | No | For 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.