---
title: "Set host port mapping for a container port"
method: POST
path: "/v1/ports/mappings"
tags: ["ports"]
---

# Set host port mapping for a container port

`POST /v1/ports/mappings`

Records a mapping from container port to host port and broadcasts an SSE event

## Request body

- object

## Response `200`

Mapping set

- object

## Other responses

- `400` — Invalid request

---

[API](https://skmtc.net/wandb/apis/catnip-container-api.md) · [All operations](https://skmtc.net/wandb/apis/catnip-container-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/catnip-container-api/revisions/a075b0fa501a/schema)
