---
title: "Set a contact's topic subscription"
method: PUT
path: "/topics/{id}/contacts/{contactId}"
tags: ["Topics"]
---

# Set a contact's topic subscription

`PUT /topics/{id}/contacts/{contactId}`

## Request

- Base URL: `https://api.eusend.dev`
- URL: `https://api.eusend.dev/topics/{id}/contacts/{contactId}`
- Auth: HTTP bearer

Records an explicit preference, overriding the topic default.

## Path parameters

- `id` string, uuid, required
- `contactId` string, uuid, required

## Request body

- TopicSubscriptionRequest
  - `subscribed` boolean, required

## Response `200`

Saved.

- TopicSubscriptionResponse
  - `topicId` string, uuid, required
  - `contactId` string, uuid, required
  - `subscribed` boolean, required

## Other responses

- `400`: The request body or query failed validation (`VALIDATION_ERROR`).
- `401`: Missing, malformed, or revoked API key (`UNAUTHORIZED`).
- `403`: The key exists but may not reach this resource — a `sending_access` key outside the send paths, a test-mode key writing live state, or an account on hold (`FORBIDDEN`, `ACCOUNT_RESTRICTED`).
- `404`: No such resource on this organization (`NOT_FOUND`).
- `429`: Rate limit exceeded (`RATE_LIMITED`).
- `500`: Unexpected server error (`INTERNAL_ERROR`). Carries `request_id`.

---

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