Skip to content

Commit 5a13a99

Browse files
committed
fix(apollo): require contact_attributes for bulk_update
1 parent 39f86bd commit 5a13a99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/tools/apollo/contact_bulk_update.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export const apolloContactBulkUpdateTool: ToolConfig<
6868
body.contact_attributes = params.contact_attributes
6969
}
7070
}
71-
if (!body.contact_ids && !body.contact_attributes) {
71+
if (!body.contact_attributes) {
7272
throw new Error(
73-
'Apollo bulk update requires either contact_ids or contact_attributes to be provided'
73+
'Apollo bulk update requires contact_attributes (the fields to update). Use contact_attributes alone (array of per-contact updates with id) or together with contact_ids (single object applied to all listed contacts).'
7474
)
7575
}
7676
if (params.async !== undefined) body.async = params.async

0 commit comments

Comments
 (0)