Add subscription to subscriber
POST/subscriber/:subscriber_id/:event_type
Add a specific subscription to a subscriber.
Request​
Path Parameters
The identifier of the subscriber
The action event type.
Query Parameters
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.
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​
- 200
The subscriber
- application/json
- Schema
- Example (from schema)
Schema
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
The name of the action to listen to
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.
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.
{
"id": "string",
"subscriptions": {}
}