# Bulk publish events API to bulk publish events and has a support for sending invite to selective users Endpoint: POST /v2/events/bulk-publish Version: v2 Security: Bearer ## Request fields (application/json): - `publishEventList` (array, required) List of events to be published. - `publishEventList.id` (string, required) Unique identifier for the event. Example: "56789012" - `publishEventList.sendInvite` (boolean, required) Flag to indicate if an invite should be sent. Example: true - `publishEventList.userIds` (array) List of users receiving the invite. - If provided, invites will be sent only to the specified users. - If empty or not provided, invites will be sent to all users. - `publishEventList.userIds.id` (string, required) - `publishEventList.type` (string) Type of an event Enum: "GENERIC", "PROGRAM", "PROGRAM_SESSION", "PROGRAM_TRIP" ## Response 200 fields (application/json): - `publishEventResponses` (array, required) List of events publish response. - `publishEventResponses.id` (string, required) Unique identifier for the event. Example: "56789012" - `publishEventResponses.status` (string, required) Generic operation/execution status. Enum: "SUCCESS", "FAILED", "PARTIAL_SUCCESS" - `publishEventResponses.message` (string) Details about success or failure reason. Example: "Published successfully" ## Response 400 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error. ## Response 401 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error. ## Response 403 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error.