Create a topic event
This endpoint sends an event to the specified HTTP request source.
Request schema
Path parameters
source_id
integerrequired
ID of the source to push the event to
topic_id
stringrequired
The id of the topic to push the event to
Header parameters
Authorization
stringrequired
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Request
Http + 1.1
POST
https://app.getcensus.com/api/v1/sources/{source_id}/topics/{topic_id}/events
POST /api/v1/sources/{source_id}/topics/{topic_id}/events HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Content-Type: application/json Host: app.getcensus.com Content-Length: 2 {}
Responses
204
Successfully pushed the event to the topic.
400
Invalid request body
404
Source connection or topic not found.
405
Source specified is not of type HTTP request.
400
status
string
Outcome of the operation.
example:
message
string
Description of what went wrong
example:
404
status
string
Outcome of the operation.
example:
message
string
Description of what went wrong
example:
405
status
string
Outcome of the operation.
example:
message
string
Description of the outcome.
example:
{ "status": "error", "message": "An empty string is not a valid JSON string." }