Topolo Docs Topolo Platform
Open workspace

Update broadcast draft

Change a draft broadcast's name, template, pinned templateVersion (null = current version at submit), topic, segments, schedule or throttlePerHour (null = unthrottled). Only drafts can change; reject a pending or approved broadcast back to draft first. Changing templateId clears the pinned version unless one is given. schedule is {mode:"now"} (default), {mode:"at", sendAt ISO-8601} or {mode:"recipient_local", date YYYY-MM-DD, time HH:MM, fallbackTimezone IANA}: recipient_local sends at that wall-clock time in each contact's own zone, using fallbackTimezone when the contact has none.

Outcome

Change a draft broadcast's name, template, pinned templateVersion (null = current version at submit), topic, segments, schedule or throttlePerHour (null = unthrottled). Only drafts can change; reject a pending or approved broadcast back to draft first. Changing templateId clears the pinned version unless one is given. schedule is {mode:"now"} (default), {mode:"at", sendAt ISO-8601} or {mode:"recipient_local", date YYYY-MM-DD, time HH:MM, fallbackTimezone IANA}: recipient_local sends at that wall-clock time in each contact's own zone, using fallbackTimezone when the contact has none.

Before you start

  • Verify identity and pin the intended organization and environment before discovering the action.
  • Discover a granted Nurture workspace. The application permission is workspace:write; required workspace access is read_write. A permission alone does not supply a workspace grant.
  • Organization and workspace come from verified context. Select resourceType/resourceId separately from action input; body fields cannot grant a different organization or workspace. The first authorized product action can initialize an identity-only workspace mirror.
  • Obtain authorization for the documented effect or personal-data export before supplying CLI --confirm or MCP confirm:true.

Discover the target

topolo whoami --json
topolo actions get app_topolo_nurture.broadcasts.update --detail --json
topolo resources topolo-nurture --json
topolo workspaces list topolo-nurture --json
topolo actions get app_topolo_nurture.broadcasts.list --detail --json
topolo actions get app_topolo_nurture.templates.list --detail --json
topolo actions get app_topolo_nurture.subscription_topics.list --detail --json
  • id: broadcasts record id in the selected workspace.
  • templateId: Nurture template id; inspect its active state and version.
  • topicId: Subscription topic record id; topicKey is a separate stable topic key.

Request

PATCH /api/broadcasts/{id}

Save action input as payload.json. The reviewed plan separates path identifiers, query fields and HTTP body. Set NURTURE_WORKSPACE_ID from granted resource discovery; it is separate from action input.

Inspect and test this action in the signed action console. A test response still requires the verification below.

Input fields

FieldRequiredTypeConstraints
idRequiredstringbroadcasts record id in the selected workspace. {"minLength":1,"maxLength":64}
nameOptionalstring{"minLength":1,"maxLength":120}
templateIdOptionalSee schemaNurture template id; inspect its active state and version. {}
templateVersionOptionalSee schema{}
topicIdOptionalstringSubscription topic record id; topicKey is a separate stable topic key. {"minLength":1,"maxLength":64}
segmentIdsOptionalarray{"minItems":1,"maxItems":20}
scheduleOptionalSee schema{}
throttlePerHourOptionalSee schema{}

Exact input schema:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "templateId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ]
    },
    "templateVersion": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 100000
        },
        {
          "type": "null"
        }
      ]
    },
    "topicId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "segmentIds": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      }
    },
    "schedule": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "const": "now"
            }
          },
          "required": [
            "mode"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "const": "at"
            },
            "sendAt": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          },
          "required": [
            "mode",
            "sendAt"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "const": "recipient_local"
            },
            "date": {
              "type": "string",
              "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"
            },
            "time": {
              "type": "string",
              "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
            },
            "fallbackTimezone": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          "required": [
            "mode",
            "date",
            "time",
            "fallbackTimezone"
          ],
          "additionalProperties": false
        }
      ]
    },
    "throttlePerHour": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}

Effects

  • Updates the named fields of one draft broadcast.

Interpret the response

The returned identifier path is $.broadcast.id for broadcast. Empty lists do not discover a target.

Call app_topolo_nurture.broadcasts.get and confirm the changed fields.

Exact success schema:

{
  "type": "object",
  "required": [
    "broadcast"
  ],
  "properties": {
    "broadcast": {
      "type": "object",
      "required": [
        "id",
        "status",
        "topicId",
        "segmentIds",
        "schedule"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "templateId": {
          "type": [
            "string",
            "null"
          ]
        },
        "templateVersion": {
          "type": [
            "integer",
            "null"
          ]
        },
        "topicId": {
          "type": "string"
        },
        "segmentIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "purpose": {
          "type": "string",
          "enum": [
            "marketing"
          ]
        },
        "schedule": {
          "type": "object",
          "required": [
            "mode"
          ],
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "now",
                "at",
                "recipient_local"
              ]
            }
          }
        },
        "throttlePerHour": {
          "type": [
            "integer",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "draft",
            "pending_approval",
            "approved",
            "scheduled",
            "sending",
            "sent",
            "cancelled",
            "failed",
            "archived"
          ]
        },
        "launchAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "totalRecipients": {
          "type": [
            "integer",
            "null"
          ]
        },
        "createdBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "submittedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "submittedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "approvedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "approvedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "rejectedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "rejectedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "rejectionReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "scheduledBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "scheduledAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "launchedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "completedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "cancelledBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "cancelledAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "cancelReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "failureReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "legacy": {
          "type": [
            "object",
            "null"
          ]
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        }
      }
    }
  }
}

Worked examples

Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Replace synthetic identifiers using credential-scoped discovery. A local success is not evidence of a deployed effect, configured provider or delivered message.

Successful request

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "bc_37e98ed76c9e40798462f980530410ae",
  "name": "Renamed",
  "schedule": {
    "mode": "recipient_local",
    "date": "2026-10-05",
    "time": "09:00",
    "fallbackTimezone": "Europe/Paris"
  },
  "throttlePerHour": null
}

CLI:

topolo actions validate app_topolo_nurture.broadcasts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.broadcasts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.broadcasts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --confirm --json

MCP tool and arguments:

{
  "tool": "topolo_call_action",
  "arguments": {
    "actionId": "app_topolo_nurture.broadcasts.update",
    "input": {
      "id": "bc_37e98ed76c9e40798462f980530410ae",
      "name": "Renamed",
      "schedule": {
        "mode": "recipient_local",
        "date": "2026-10-05",
        "time": "09:00",
        "fallbackTimezone": "Europe/Paris"
      },
      "throttlePerHour": null
    },
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>",
    "confirm": true
  }
}

Captured local response · HTTP 200:

{
  "broadcast": {
    "id": "bc_37e98ed76c9e40798462f980530410ae",
    "name": "Renamed",
    "templateId": null,
    "templateVersion": null,
    "topicId": "topic_7882fdbc77614457b384744e81929d44",
    "segmentIds": [
      "seg_330eddbe201c4fa4a82d02c8dc9f4cbb"
    ],
    "purpose": "marketing",
    "schedule": {
      "mode": "recipient_local",
      "date": "2026-10-05",
      "time": "09:00",
      "fallbackTimezone": "Europe/Paris"
    },
    "throttlePerHour": null,
    "status": "draft",
    "launchAt": null,
    "totalRecipients": null,
    "createdBy": "u1",
    "submittedBy": null,
    "submittedAt": null,
    "approvedBy": null,
    "approvedAt": null,
    "rejectedBy": null,
    "rejectedAt": null,
    "rejectionReason": null,
    "scheduledBy": null,
    "scheduledAt": null,
    "launchedAt": null,
    "completedAt": null,
    "cancelledBy": null,
    "cancelledAt": null,
    "cancelReason": null,
    "failureReason": null,
    "legacy": null,
    "createdAt": "2026-10-04T00:32:37.364Z",
    "updatedAt": "2026-10-04T00:32:37.428Z"
  }
}

HTTP 200. Call app_topolo_nurture.broadcasts.get and confirm the changed fields.

Another supported request

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "bc_37e98ed76c9e40798462f980530410ae",
  "templateId": "tpl_2190d4725e13404883410e4107f9762b"
}

CLI:

topolo actions validate app_topolo_nurture.broadcasts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.broadcasts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.broadcasts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --confirm --json

MCP tool and arguments:

{
  "tool": "topolo_call_action",
  "arguments": {
    "actionId": "app_topolo_nurture.broadcasts.update",
    "input": {
      "id": "bc_37e98ed76c9e40798462f980530410ae",
      "templateId": "tpl_2190d4725e13404883410e4107f9762b"
    },
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>",
    "confirm": true
  }
}

Captured local response · HTTP 200:

{
  "broadcast": {
    "id": "bc_37e98ed76c9e40798462f980530410ae",
    "name": "Oct",
    "templateId": "tpl_2190d4725e13404883410e4107f9762b",
    "templateVersion": null,
    "topicId": "topic_7882fdbc77614457b384744e81929d44",
    "segmentIds": [
      "seg_330eddbe201c4fa4a82d02c8dc9f4cbb"
    ],
    "purpose": "marketing",
    "schedule": {
      "mode": "now"
    },
    "throttlePerHour": 100,
    "status": "draft",
    "launchAt": null,
    "totalRecipients": null,
    "createdBy": "u1",
    "submittedBy": null,
    "submittedAt": null,
    "approvedBy": null,
    "approvedAt": null,
    "rejectedBy": null,
    "rejectedAt": null,
    "rejectionReason": null,
    "scheduledBy": null,
    "scheduledAt": null,
    "launchedAt": null,
    "completedAt": null,
    "cancelledBy": null,
    "cancelledAt": null,
    "cancelReason": null,
    "failureReason": null,
    "legacy": null,
    "createdAt": "2026-10-04T00:32:37.364Z",
    "updatedAt": "2026-10-04T00:32:37.424Z"
  }
}

HTTP 200. Call app_topolo_nurture.broadcasts.get and confirm the changed fields.

Refused request · invalid_status

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "bc_11e8f679c65f4b9c9db34760e8e11cb7",
  "name": "x"
}

CLI:

topolo actions validate app_topolo_nurture.broadcasts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.broadcasts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

Captured local response · HTTP 409:

{
  "error": {
    "code": "invalid_status",
    "message": "The broadcast is pending_approval; this action needs draft.",
    "details": {
      "status": "pending_approval",
      "expected": [
        "draft"
      ]
    }
  }
}

HTTP 409. Preserve the refusal details and do not claim success.

Refused request · segment_unavailable

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "bc_37e98ed76c9e40798462f980530410ae",
  "segmentIds": [
    "seg_missing"
  ]
}

CLI:

topolo actions validate app_topolo_nurture.broadcasts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.broadcasts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

Captured local response · HTTP 422:

{
  "error": {
    "code": "segment_unavailable",
    "message": "A segment is missing or archived."
  }
}

HTTP 422. Preserve the refusal details and do not claim success.

Refused request · not_found

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "bc_missing",
  "name": "x"
}

CLI:

topolo actions validate app_topolo_nurture.broadcasts.update --data @payload.json --json
topolo actions plan app_topolo_nurture.broadcasts.update --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

Captured local response · HTTP 404:

{
  "error": {
    "code": "not_found",
    "message": "Broadcast was not found in this workspace."
  }
}

HTTP 404. Preserve the refusal details and do not claim success.

Verify the result

  • Call app_topolo_nurture.broadcasts.get and confirm the changed fields.

Errors and recovery

  • organization_required (HTTP 403): Select an organization available to the verified caller before choosing a Nurture workspace.
  • permission_denied (HTTP 403): Grant the credential the required Nurture workspace permission.
  • workspace_required (HTTP 409): Create a Nurture workspace, or pass the workspace resource context.
  • invalid_input (HTTP 422): Correct the fields named in error.details using inputSchema, then retry.
  • not_found (HTTP 404): List broadcasts to find a valid id in this workspace.
  • invalid_status (HTTP 409): Read the broadcast with app_topolo_nurture.broadcasts.get; error.details.expected lists the statuses this action accepts.
  • broadcast_archived (HTTP 409): Create a new broadcast; archived ones cannot be edited.
  • topic_unavailable (HTTP 422): Pick an active subscription topic from this workspace, or update the draft.
  • segment_unavailable (HTTP 422): Pick an active segment from this workspace, or update the draft.
  • template_unavailable (HTTP 422): Pick an active template from this workspace, or update the draft.
  • template_version_unavailable (HTTP 422): Call templates.get to see the current version, or omit templateVersion to use it.
  • schedule_in_past (HTTP 422): Choose a later sendAt or date; for recipient_local the time must still be ahead somewhere (UTC-12).
  • invalid_timezone (HTTP 422): Use an IANA zone such as Europe/London for fallbackTimezone.

Auth or gateway failures may precede this handler. Preserve the exact response shape, error string/code, request id and credential context; no synthetic fixture establishes live credential access.

Recovery boundary

Read the draft first, then send the previous values back through update.

  • Get broadcast: Read one broadcast with its template pin, audience, schedule, throttle, approval trail (who submitted, approved, rejected, scheduled or cancelled it, and when) and its 20 most recent test sends.
  • Update broadcast draft: Change a draft broadcast's name, template, pinned templateVersion (null = current version at submit), topic, segments, schedule or throttlePerHour (null = unthrottled). Only drafts can change; reject a pending or approved broadcast back to draft first. Changing templateId clears the pinned version unless one is given. schedule is {mode:"now"} (default), {mode:"at", sendAt ISO-8601} or {mode:"recipient_local", date YYYY-MM-DD, time HH:MM, fallbackTimezone IANA}: recipient_local sends at that wall-clock time in each contact's own zone, using fallbackTimezone when the contact has none.

Evidence

Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Test scenario and capture digests are retained with each fixture.