Publish multiple messages to a topic
POST/v1.0-alpha1/publish/bulk/:pubsubName/:topic
This endpoint lets you publish multiple messages to consumers who are listening on a topic.
Request
Path Parameters
pubsubName stringrequired
Possible values: Value must match regular expression ^[a-zA-Z0-9_-]+$
topic stringrequired
Possible values: Value must match regular expression ^[a-zA-Z0-9_-]+$
Query Parameters
metadata object
Query parameters for metadata as described below.
- application/json
Body
array
required
Array [
]
entryId string
event object
contentType string
Possible values: [application/json
]
Responses
- 204
- 400
- 403
- 500
All messages delivered.
Pub/sub does not exist.
Forbidden by access controls.
At least one message failed to be delivered.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
failedEntries
object[]
entryId string
error string
errorCode string
{
"failedEntries": [
{
"entryId": "string",
"error": "string"
}
],
"errorCode": "string"
}
Loading...