stet
API reference

Replace the broadcast's one-time channel group

Requires `write` (`broadcast:compose`). The ONLY write surface for a broadcast's ad-hoc one-time channel group — an empty `channelIds` deletes the group. Draft-only — `409` on any other status.

PUT/api/broadcasts/{id}/one-time-channels
AuthorizationBearer <token>

A Stet API key (prefix bk_), created under Settings → API keys. The whole API requires the Growth plan or higher; keys are scoped read or write — composing and sending require write.

In: header

Path Parameters

idstring
channelIdsarray<string>
Itemsitems <= 1000

Response Body

curl -X PUT "https://app.stethq.com/api/broadcasts/string/one-time-channels" \  -H "Content-Type: application/json" \  -d '{    "channelIds": [      "string"    ]  }'
{
  "audience": {
    "id": "string",
    "name": "One-time channels",
    "color": "a1",
    "channelIds": [
      "string"
    ],
    "kind": "one_time"
  },
  "warnings": [
    {
      "code": "bot_not_in_channel",
      "channelIds": [
        "string"
      ],
      "message": "string"
    }
  ]
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}