Webhooks
Post updated asset availabilities
Post availability events for assets. This provides a single endpoint
to which you can post an event stream.
Note that you can also use callbacks on individual assets to update
their availability.
POST
/
entities
/
webhooks
/
firehose
/
availability
Authorization
Body
curl --request POST \
--url http://localhost:8001/entities/webhooks/firehose/availability \
--header 'Content-Type: application/json' \
--data '{
"asset_id": "<string>",
"availability": {
"periods": []
},
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_timestamp": "2023-11-07T05:31:56Z",
"issued_timestamp": "2023-11-07T05:31:56Z"
}'
"<any>"
Body
application/json
asset_id
string
requiredAsset or aggregate to which this event pertains
availability
object
requiredevent_id
string
requiredUID of this event
event_timestamp
string
When the event occurred, if different from publication (UTC)
issued_timestamp
string
requiredWhen the event was published (UTC)
Response
200 - application/json
The response is of type any
.
curl --request POST \
--url http://localhost:8001/entities/webhooks/firehose/availability \
--header 'Content-Type: application/json' \
--data '{
"asset_id": "<string>",
"availability": {
"periods": []
},
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_timestamp": "2023-11-07T05:31:56Z",
"issued_timestamp": "2023-11-07T05:31:56Z"
}'
"<any>"