---
updatedAt: 2026-08-15T14:03:27.000Z
agentTools:
  projectIndex: https://developers.campaignrefinery.com/llms.txt
---

# Set broadcast tag actions

Replaces a broadcast's complete open/click/reply tag-action set. Read get_broadcast_tag_actions first and resend unrelated rules to preserve them; any omitted rule is removed. `actions` is required, and `[]` clears the entire set. Use account-owned tag UUIDs from get_tags, never numeric tag IDs. An unknown tag UUID rejects the request with `422` and leaves the existing set unchanged. The broadcast must be in a writable state; launched split-test children remain managed by their split test.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Broadcasts",
    "version": "1.2.0",
    "description": "Manage the full broadcast lifecycle -- create (inline message or from a template), set audience, schedule, update message content, cancel, and delete -- plus message templates, broadcast messages, and delivery/engagement statistics. The authenticated API key selects the account; all identifiers are UUIDs."
  },
  "servers": [
    {
      "url": "https://api.campaignrefinery.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Bearer token authentication"
      }
    }
  },
  "security": [],
  "paths": {
    "/rest/broadcasts/set_broadcast_tag_actions": {
      "post": {
        "summary": "Set broadcast tag actions",
        "description": "Replaces a broadcast's complete open/click/reply tag-action set. Read get_broadcast_tag_actions first and resend unrelated rules to preserve them; any omitted rule is removed. `actions` is required, and `[]` clears the entire set. Use account-owned tag UUIDs from get_tags, never numeric tag IDs. An unknown tag UUID rejects the request with `422` and leaves the existing set unchanged. The broadcast must be in a writable state; launched split-test children remain managed by their split test.",
        "operationId": "set-broadcast-tag-actions",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "broadcast_uuid",
                  "actions"
                ],
                "properties": {
                  "broadcast_uuid": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The broadcast UUID."
                  },
                  "actions": {
                    "type": "array",
                    "description": "The complete tag-action set. Read get_broadcast_tag_actions and resend rules to keep. An empty array removes every rule. The field is required.",
                    "items": {
                      "type": "object",
                      "required": [
                        "user_action",
                        "tag_action",
                        "tag_uuids"
                      ],
                      "properties": {
                        "user_action": {
                          "type": "string",
                          "enum": [
                            "open",
                            "click",
                            "reply"
                          ],
                          "description": "`open` = opened the email; `click` = clicked any link or the exact `url`; `reply` = replied to the email. Check reply_tracking in get_broadcast_tag_actions for reply context."
                        },
                        "tag_action": {
                          "type": "string",
                          "enum": [
                            "apply_tag",
                            "remove_tag"
                          ]
                        },
                        "tag_uuids": {
                          "type": "array",
                          "minItems": 1,
                          "description": "Tags to apply or remove for this rule. At least one UUID is required.",
                          "items": {
                            "type": "string",
                            "format": "uuid",
                            "description": "A tag UUID owned by the authenticated account."
                          }
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 1000,
                          "nullable": true,
                          "description": "With `user_action: click`, match this exact link URL, campaign placeholder, or offer placeholder from get_broadcast_tag_actions.message_links. Null or omitted = any link. A placeholder rule fires on clicks of the link it renders to at send time."
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Tag on open and on a specific link": {
                  "summary": "Replace the set with three rules",
                  "value": {
                    "broadcast_uuid": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
                    "actions": [
                      {
                        "user_action": "open",
                        "tag_action": "apply_tag",
                        "tag_uuids": [
                          "cccccccc-cccc-cccc-cccc-cccccccccccc"
                        ],
                        "url": null
                      },
                      {
                        "user_action": "click",
                        "tag_action": "apply_tag",
                        "tag_uuids": [
                          "dddddddd-dddd-dddd-dddd-dddddddddddd"
                        ],
                        "url": "https://acme.com/sale"
                      },
                      {
                        "user_action": "reply",
                        "tag_action": "remove_tag",
                        "tag_uuids": [
                          "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee"
                        ],
                        "url": null
                      }
                    ]
                  }
                },
                "Remove all rules": {
                  "summary": "Clear every tag action",
                  "value": {
                    "broadcast_uuid": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
                    "actions": []
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Broadcast tag actions updated.",
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "message": "Broadcast tag actions updated.",
                  "data": {
                    "broadcast_uuid": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
                    "broadcast_status": "is_new",
                    "broadcast_scheduled_dts": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token."
          },
          "403": {
            "description": "The broadcast is an arm of a split test and is managed through that split test, not on its own.",
            "content": {
              "application/json": {
                "example": {
                  "success": false,
                  "message": "Child broadcasts are managed by their split test.",
                  "data": []
                }
              }
            }
          },
          "404": {
            "description": "No broadcast with the supplied UUID exists in the authenticated account.",
            "content": {
              "application/json": {
                "example": {
                  "success": false,
                  "message": "Broadcast not found",
                  "data": []
                }
              }
            }
          },
          "422": {
            "description": "Validation error. Common causes: `broadcast_uuid` missing or malformed; `actions` absent or not an array; an entry missing `user_action`, `tag_action`, or `tag_uuids`; a `user_action` other than `open`/`click`/`reply`; a `tag_action` other than `apply_tag`/`remove_tag`; an empty `tag_uuids`; `tag_id`/`tag_ids` inside an action; a `url` longer than 1000 characters; a tag UUID outside the authenticated account. Nothing is written when the request is rejected.",
            "content": {
              "application/json": {
                "examples": {
                  "Unknown tag": {
                    "value": {
                      "success": false,
                      "message": "Tag not found: cccccccc-cccc-cccc-cccc-cccccccccccc",
                      "data": []
                    }
                  },
                  "Field omitted": {
                    "value": {
                      "success": false,
                      "message": "Validation failed.",
                      "data": {
                        "errors": {
                          "actions": [
                            "The actions field must be present."
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  }
}
```