---
title: "Bulk publish events"
method: POST
path: "/v2/events/bulk-publish"
tags: ["Events"]
---

# Bulk publish events

`POST /v2/events/bulk-publish`

API to bulk publish events and has a support for sending invite to selective users

## Request body

- BulkPublishEventRequest — Request payload for bulk event publishing.
  - `publishEventList` PublishEventRequest[], required — List of events to be published.
    - `id` string, required — Unique identifier for the event.
    - `sendInvite` boolean, required — Flag to indicate if an invite should be sent.
    - `userIds` UserId[] — 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.
      - `id` string, uuid, required
    - `type` 'GENERIC' | 'PROGRAM' | 'PROGRAM_SESSION' | 'PROGRAM_TRIP' — Type of an event

## Response `200`

Bulk publish response with event statuses

- BulkPublishResponse — Response payload for the bulk event publishing.
  - `publishEventResponses` PublishEventResponse[], required — List of events publish response.
    - `id` string, required — Unique identifier for the event.
    - `status` 'SUCCESS' | 'FAILED' | 'PARTIAL_SUCCESS', required — Generic operation/execution status.
    - `message` string — Details about success or failure reason.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/spotnana/apis/event-api.md) · [All operations](https://skmtc.net/spotnana/apis/event-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotnana/event-api/revisions/9f7a7c91278c/schema)
