workspaces_segments_automations_partial_update
Change the config, run_filters, allow_overwrite or turn it on and off with is_enabled. Order is changed with segments_automations_reorder.
Method: PATCH /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/automations/{sqid}/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"segment_sqid": "<segment_sqid>",
"sqid": "<sqid>"
},
"name": "workspaces_segments_automations_partial_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes | ||
| order | No | Run order within the segment. Lower runs first. Enrichments with output that feed others (e.g. KDM finder produces a person; AI research uses it) must come earlier. | |
| config | No | Per-enrichment-type config blob. Shape depends on `enrichment_type`. For the full schema of every type call `workspaces_enrichments_schema_retrieve` (returns form fields + types per enrichment). **`anyapi`** — runs a predefined or custom HTTP enrichment profile. Get available profiles via `workspaces_enrichment_profiles_list`; each profile exposes `input_fields`, `output_fields`, `settings_schema`. Config shape: ``` { "profile_sqid": "<sqid>", "settings": { "<setting_name>": "<value>", "use_predefined_<setting_name>": false }, "input_mapping": {"<input_field.name>": "<workspace_context_field.key>"}, "output_mapping": {"<output_field.name>": "<workspace_context_field.key>"} } ``` Example (ZeroBounce email validation): `{"profile_sqid": "…", "settings": {"api_key": "…"}, "input_mapping": {"email_address": "email"}, "output_mapping": {"status": "validation_status", "sub_status": "validation_detail"}}`. **Other types**: `ai_agent`, `kdm_finder`, `find_email`, `qualification`, `apply_formula`, `validate_phone`, `set_timezone`. Call `workspaces_enrichments_schema_retrieve` for their fields — each has its own form-derived shape, not the anyapi shape above. **`qualification`** — `write_role_relevance` defaults to `true` (left out = on): each qualified lead with an empty `role_relevance` gets one short AI call writing why the offer fits the person's job, which France, Finland, Canada, Australia and New Zealand require for named addresses. Send `false` to turn it off. | |
| is_enabled | No | ||
| run_filters | No | Optional list of FilterConfig sqids — enrichment runs on a lead only if the lead matches every one of the listed filters (AND semantics). Use to cap cost (e.g. only enrich leads in your ICP). Empty list = run on every lead in the segment. | |
| segment_sqid | Yes | ||
| allow_overwrite | No | If True, the enrichment overwrites existing values in its output context fields. If False, leads with existing data in those fields are skipped. | |
| enrichment_type | No | Which enrichment runs. One of: `anyapi`, `ai_agent`, `kdm_finder`, `find_email`, `qualification`, `apply_formula`, `validate_phone`, `set_timezone`, `domain_health`, `dns_query`, `validate_company`. The `config` blob shape depends on this — see `workspaces_enrichments_schema_retrieve` for per-type schemas. |