---
title: "Set the forward socket for a topic"
method: PUT
path: "/api/v1/messages/topics/{topic}/forward"
tags: ["Message", "Topic"]
---

# Set the forward socket for a topic

`PUT /api/v1/messages/topics/{topic}/forward`

Set the socket path where messages for a specific topic should be forwarded to.

## Path parameters

- `topic` string, byte, required

## Request body

- TopicForwardSocketRequest — Request to set a forward socket for a topic
  - `socket_path` string — The socket path where messages should be forwarded to

## Response `204`

Forward socket set successfully

## Other responses

- `400` — Invalid topic format

---

[API](https://skmtc.net/threefoldtech/apis/mycelium-management.md) · [All operations](https://skmtc.net/threefoldtech/apis/mycelium-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/threefoldtech/mycelium-management/revisions/65042c1a7b84/schema)
