events

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.

post/event/{topic}/publish

Path parameters

topicstring required

The topic name

Request body

dataobject

The event payload

datacontenttypestring

RFC-2046 encoding of data type

dataschemastring uri

URI identifying the schema that data adheres to

idstring required

An event identifier

sourcestring uri required

A URI identifying the event source

specversionstring required

The version of the CloudEvent spec being used.

subjectstring

Describes the subject of the event in the context of the event producer

timestring date-time

Time when the event occurred

typestring required

The type of the event

Example request

{
  "datacontenttype": "application/json",
  "specversion": "1.0",
  "type": "com.github.pull.create"
}

Response

A success message.

Changes