---
title: "publish"
method: POST
path: "/v1/event/{topic}/publish"
tags: ["events"]
---

# publish

`POST /v1/event/{topic}/publish`

### Publish an event to a topic

The event provided as the request body will be published on `topic`.
When the operation returns successfully, the event is guaranteed to
eventually be published to the targeted topic.

## Path parameters

- `topic` string, required

## Response `200`

A success message.

## Other responses

- `400` — Response indicating a bad request

## Changes

- **2021-09-23** `9804bcdefbb5` — 3 info
  - added the non-success response with the status `400`
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `500`
- **2020-09-10** `0666a545aa55` — 1 info
  - added the non-success response with the status `404`
- **2020-06-15** `c35e2018be30` — 1 info
  - endpoint added
- **2020-05-01** `d9f9d9f05f2d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ibm/apis/kar/changes/v1/event/:topic/publish/post.md)

---

[API](https://skmtc.dev/ibm/apis/kar.md) · [All operations](https://skmtc.dev/ibm/apis/kar/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ibm/kar/revisions/f288d7bc7700/schema)
