Automations · Broadcasts

Update broadcast

Updates a broadcast. Fields you leave out keep their current values.

PATCHhttps://api.pozy.ai/v1/broadcasts/{broadcastId}
updateBroadcast

Guides: Broadcasts, WhatsApp broadcasts

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the messages resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
broadcastIdrequiredstring

Request body

application/json, optional

  • namestring
  • descriptionstring
  • messageobject
    • textstring
    • attachmentsarray of object

      Up to 10 items.

      3 child fields
      • typestring
      • urlstring
      • filenamestring
    • messageTagstring

      One of CONFIRMED_EVENT_UPDATE, POST_PURCHASE_UPDATE, ACCOUNT_UPDATE, HUMAN_AGENT.

  • templateobject
    • namestring
    • languagestring
    • variableMappingmap of object

      Keys are free-form; each value has these fields.

      2 child fields
      • fieldstring

        One of name, phone, email, company, custom.

      • customValuestring
  • segmentFiltersobject

Example

curl -X PATCH "https://api.pozy.ai/v1/broadcasts/6ce1988a4c4f8bc6d3ca157a" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme",
  "description": "A short description",
  "message": {
    "text": "Hello from Pozy",
    "attachments": [
      {
        "type": "string",
        "url": "https://pozy.ai/media/example-1.jpg",
        "filename": "photo.jpg"
      }
    ],
    "messageTag": "CONFIRMED_EVENT_UPDATE"
  },
  "template": {
    "name": "Acme",
    "language": "en",
    "variableMapping": {
      "key": {
        "field": "name",
        "customValue": "string"
      }
    }
  }
}'

Response

200 on success

  • successboolean
  • broadcastobject
    • idstring
    • namestring
    • descriptionstring
    • statusstring
    • updatedAtstring (date-time)
200 response
{
  "success": true,
  "broadcast": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "name": "Acme",
    "description": "A short description",
    "status": "active",
    "updatedAt": "2026-10-02T09:00:00.000Z"
  }
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Broadcasts