Skip to main content
Version: 8.6

Publish a message

POST 

/messages/publication

Publishes a single message. Messages are published to specific partitions computed from their correlation keys. The endpoint does not wait for a correlation result. Use the message correlation endpoint for such use cases.

Request

Body

required
    name stringrequired

    The name of the message.

    correlationKey stringrequired

    The correlation key of the message.

    timeToLive int64

    Timespan (in ms) to buffer the message on the broker.

    messageId stringnullable

    The unique ID of the message. Only useful to ensure only one message with the given ID will ever be published (during its lifetime).

    variables objectnullable

    The message variables as JSON document.

    property name* anynullable

    Additional properties allowed.

    tenantId stringnullable

    The tenant of the message sender.

Responses

The message was published.

Schema
    messageKey int64

    The key of the message

    tenantId string

    The tenant ID of the message.

Loading...