Skip to main content
Version: 4.2.0

Add subscription to subscriber

POST 

/subscriber/:subscriber_id/:event_type

Add a specific subscription to a subscriber.

Request​

Path Parameters

    subscriber_id stringrequired

    The identifier of the subscriber

    event_type stringrequired

    The action event type.

Query Parameters

    timeout number

    Default value: 60

    This is the duration in seconds this subscriber has time to execute the action. After this time the sender assumes a failure and rejects the result of this actor.

    wait_for_completion boolean

    Default value: true

    If an action is sent to this subscriber, the event sender should wait until this subscriber has processed the message and send a done message. This is the expected behaviour of every actor and defaults to true.

Responses​

The subscriber

Schema

    id string

    The identifier of this subscriber

    subscriptions

    object

    The dictionary of subscriptions, where the key is the message type

    property name*

    Subscription

    The definition of an action subscription

    message_type string

    The name of the action to listen to

    wait_for_completion boolean

    Default value: true

    If an action is sent to this subscriber, the event sender should wait until this subscriber has processed the message and send a done message. This is the expected behaviour of every actor and defaults to true.

    timeout number

    Default value: 60

    This is the duration in seconds this subscriber has time to execute the action. After this time the sender assumes a failure and rejects the result of this actor.

Loading...