---
title: "Update an audience"
method: PUT
path: "/audiences/{audienceKey}"
tags: ["audiences"]
---

# Update an audience

`PUT /audiences/{audienceKey}`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/audiences/{audienceKey}`
- Auth: HTTP bearer

## Path parameters

- `audienceKey` string, required: audience stable key

## Request body

- object
  - `name` string
  - `description` string, nullable
  - `filter` object: Dynamic audiences only

## Response `200`

Updated

- object
  - `success` boolean, required
  - `audience` object, required

## Other responses

- `400`: Invalid parameters
- `401`: Missing or invalid API key
- `404`: Audience not found

---

[API](https://skmtc.dev/mailly/apis/mailly-api.md) · [All operations](https://skmtc.dev/mailly/apis/mailly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailly/apis/mailly-api/revisions/1ceb29637301?raw)
