stet
API reference

Update a saved audience

Requires `write` (`audience:manage`). At least one field must be present.

PATCH/api/audiences/{id}
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
name?string
Length1 <= length <= 100
description?string
Lengthlength <= 500
channelIds?array<string>
Items1 <= items <= 1000
color?AudienceColor
Value in"a1" | "a2" | "a3" | "a4" | "a5" | "a6"

Response Body

curl -X PATCH "https://app.stethq.com/api/audiences/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "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"
}