Create or replace an event
Create an event with its dates, schedule, gallery and ticket tiers, or replace it, by your own ID.
{BASE_URL}/events/:externalIdThe first PUT of an externalId creates the event as a draft (201); later ones replace it
(200) and keep whether it is published. Requires the REGISTRATION scope; a Technology Provider also
needs the Events module. See Sync your listings.
What the API manages: the event's details, dates, schedule, gallery and ticket tiers. What stays in the Partner Portal: RSVP setup, ticketing (payment methods, selling windows, cancellation), performers, sponsors and buttons. The API never changes those.
Body
titlestringrequired- 1–120 characters.
typestringrequired- One of Localoy's event types, for example
CONCERTS_LIVE_MUSIC,STANDUP_COMEDY,WORKSHOP,FOOD_BEVERAGE_FESTS. An unknown value is refused with the full list. venuestringrequired- 1–200 characters.
datesobject[]required- 1–60
{ startAt, endAt }, each an ISO 8601 date-time with its offset, for example2026-12-20T18:00:00+06:00. descriptionstring | nulloptional- Up to 5,000 characters.
tagsstring[]optional- Up to 10.
thumbnailstring | nulloptional- A URL from
POST /media. trailerUrlstring | nulloptional- An
httpslink to a video. colorAccentstringoptional#RRGGBB. Left out, a new event gets Localoy purple and an existing one keeps its colour.scheduleobject[]optional- Up to 100
{ day?, time, title }.daydefaults toDay 1. galleryobject[]optional- Up to 30
{ image, caption?, collection? },imagefromPOST /media. ticketsobjectoptional- Leave out to keep the tiers as they are. Otherwise
{ structure, tiers }, replacing them — see below.
tickets
structurestringrequiredFREE_EVENT(one tier, no price),SINGLE_TICKET(one tier) orMULTIPLE_TICKET(1–20 named tiers). RSVP events are set up in the Partner Portal.tiers[].externalIdstringrequired- Your own ID for the tier, unique within the event.
tiers[].namestringoptional- Up to 80 characters. Required with
MULTIPLE_TICKET; names must differ. tiers[].priceintegeroptional- Whole taka, 0–10,000,000. Not for
FREE_EVENT. tiers[].seatsinteger | nulloptional- How many there are, 1–1,000,000. For
FREE_EVENT, the event's capacity. tiers[].perksstring | nulloptional- What the ticket includes. Up to 1,000 characters.
tiers[].instructionsstring | nulloptionalFREE_EVENTonly: how to attend.tiers[].ticketUrlstring | nulloptional- An
httpslink to buy it elsewhere.
Tiers keep their identity
Localoy matches each tier by its externalId and updates it in place, so its id never changes across
syncs. A catalogue item linked to a tier for inventory checks keeps working when you
reorder tiers or change a price. Tickets already sold keep the name and price they were bought at.
An event can be published once it has a venue, a date and at least one ticket tier (or RSVP set up in
the portal). An event whose ticketing takes manual payment also needs a receiving account in the
portal. Until then publish answers 409 event_not_ready or 409 payment_options_required.
An event with orders or registrations cannot be deleted (409 listing_has_bookings). Unpublish it
instead.
Status codes#
| Status | Code | When |
|---|---|---|
201 | — | Created, as a draft. |
200 | — | Replaced, or "dryRun": true for a sandbox key. |
400 | unknown_field, <field>_required, <field>_invalid, <field>_too_long, <field>_too_many | A field is missing or wrong. details.field names it. See Errors. |
400 | dates_required, dates_invalid, dates_range_invalid, schedule_invalid | The dates or the schedule are missing or wrong, or a date range ends before it starts. |
400 | tickets_invalid, tickets.structure_invalid, tickets.tiers_invalid, tickets.tiers_count, tickets.price_on_free_event | tickets does not match its type: the wrong number of tiers, or a price on a free event. |
400 | tickets.tiers.externalId_required, tickets.tiers.externalId_invalid, tickets.tiers_externalId_repeated, tickets.tiers_name_repeated | A tier has no usable externalId, or two tiers share an externalId or a name. |
400 | image_not_imported | thumbnail or a gallery image is not a URL from POST /media. |
400 | externalId_invalid | The externalId is not 1–128 letters, digits or . _ ~ : -. |
403 | provider_module_not_allowed | A Technology Provider without the Event module. |
409 | resource_busy | Another request is creating this externalId. Retry in a moment. |
409 | resource_managed_elsewhere | A Technology Provider wrote an externalId another integration holds. |
curl -X PUT "$LOCALOY_BASE_URL/events/jazz-night-2026" \
-H "Authorization: Bearer $LOCALOY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Jazz Night",
"type": "CONCERTS_LIVE_MUSIC",
"venue": "Bangladesh Shilpakala Academy",
"dates": [
{ "startAt": "2026-12-20T18:00:00+06:00", "endAt": "2026-12-20T22:00:00+06:00" }
],
"schedule": [
{ "time": "18:00", "title": "Doors open" },
{ "time": "19:00", "title": "Main set" }
],
"tickets": {
"structure": "MULTIPLE_TICKET",
"tiers": [
{ "externalId": "vip", "name": "VIP", "price": 3000, "seats": 50, "perks": "Front row" },
{ "externalId": "ga", "name": "General", "price": 800, "seats": 400 }
]
}
}'{
"success": true,
"message": "Event created as a draft — publish it to show it to customers",
"dryRun": false,
"created": true,
"data": {
"externalId": "jazz-night-2026",
"id": "cm4ev3nt000000000000001",
"title": "Jazz Night",
"type": "CONCERTS_LIVE_MUSIC",
"venue": "Bangladesh Shilpakala Academy",
"dates": [{ "startAt": "2026-12-20T12:00:00.000Z", "endAt": "2026-12-20T16:00:00.000Z" }],
"schedule": [
{ "day": "Day 1", "time": "18:00", "title": "Doors open" },
{ "day": "Day 1", "time": "19:00", "title": "Main set" }
],
"tickets": {
"structure": "MULTIPLE_TICKET",
"managedInPortal": false,
"tiers": [
{ "externalId": "vip", "id": "cm4t1ck3t0pt10n00000001", "name": "VIP", "price": 3000, "seats": 50, "perks": "Front row", "instructions": null, "ticketUrl": null },
{ "externalId": "ga", "id": "cm4t1ck3t0pt10n00000002", "name": "General", "price": 800, "seats": 400, "perks": null, "instructions": null, "ticketUrl": null }
]
},
"published": false,
"readyToPublish": true,
"…": "…"
}
}