From 29e97688723c004dc36fd46ed94d2fbe05835624 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 6 Nov 2026 10:32:15 +0000 Subject: [PATCH] Document flag_id on the Contact Automations list CP-8355. GET /contact_automations?flag_id= returns only the automations whose actions add that Flag to Contacts. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xoZECpP8VFwKZkyNVV --- openapi.yaml | 9 +++++++++ server.js | 1 + 2 files changed, 10 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 07f9753..277390e 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -10579,6 +10579,15 @@ paths: schema: type: integer description: Only the Contact Automations on this Project + - name: flag_id + in: query + schema: + type: integer + description: | + Only the Contact Automations whose actions add this Flag to Contacts, as the "Automations that + add this flag automatically" column on Manage Flags counts them. A Flag of another Organisation + finds nothing. + example: 12 - $ref: '#/components/parameters/Page' - $ref: '#/components/parameters/PerPage' - $ref: '#/components/parameters/LastSyncDatetime' diff --git a/server.js b/server.js index 8657f2b..49da3bc 100644 --- a/server.js +++ b/server.js @@ -3148,6 +3148,7 @@ function buildDocsPage() {
${endpointCard("GET", "/contact_automations", "List Contact Automations", true, [ { name: "project_id", type: "integer", required: false, desc: "Only this Project's" }, + { name: "flag_id", type: "integer", required: false, desc: "Only those whose actions add this Flag to Contacts" }, { name: "page", type: "integer", required: false, desc: "Page number" }, { name: "per_page", type: "integer", required: false, desc: "Records per page" }, { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 incremental sync" }