Create or replace an activity item

Create an item on your activity listing, or replace it, by your own ID.

PUT{BASE_URL}/activity/items/:externalId

An activity item is something customers book a slot for: a go-kart session, a bowling lane, a pottery class sold by the session. The first PUT of an externalId creates it as a draft (201); later ones replace it (200). Send the whole item. Requires the REGISTRATION scope; a Technology Provider also needs the Activity module. See Sync your listings.

Body

namestringrequired
1–120 characters.
typestringrequired
One of Localoy's activity types, for example GO_KARTING, BOWLING, ROCK_CLIMBING, POTTERY_WORKSHOPS, MUSEUMS. An unknown value is refused with the full list.
priceintegerrequired
Whole taka, 0–1,000,000.
categorystring | nulloptional
Up to 60 characters.
descriptionstring | nulloptional
Up to 2,000 characters.
imagestring | nulloptional
A URL from POST /media.
pricingUnitstring | nulloptional
What one booking buys: TIME, LAPS, ROUNDS, ENTRY or OTHER. null means per person.
unitAmountinteger | nulloptional
How many — minutes for TIME. Required for TIME, LAPS, ROUNDS and OTHER. 1–10,000.
unitNamestring | nulloptional
OTHER only, and required for it: what is counted, for example games.
minAgeinteger | nulloptional
0–99.
safetyNotestring | nulloptional
Up to 200 characters.
guidesobject[]optional
Up to 20 { type, detail }.
variantsobject[]optional
Up to 10 sections { name, options[] }, each with 2–20 different options.
locationIdsstring[]optional
IDs from GET /locations. Empty means every location.
linkobject | nulloptional
{ url, label }: send customers to your own page instead of booking on Localoy.

An item with bookings cannot be deleted

Deleting an activity item would delete its customers' bookings with it, so DELETE answers 409 listing_has_bookings while it has any. Unpublish it instead.

Errors follow Create or replace a menu item, plus type_invalid, unitAmount_required, unitName_required and 409 activity_not_set_up when you have no activity listing yet.

Status codes#

StatusCodeWhen
201—Created, as a draft.
200—Replaced, or "dryRun": true for a sandbox key.
400unknown_field, <field>_required, <field>_invalid, <field>_too_long, <field>_too_manyA field is missing or wrong. details.field names it. See Errors.
400image_not_importedimage is not a URL from POST /media.
400location_not_found, locationIds_invalidA locationIds entry is not one of your locations, or the list is not an array of at most 50 IDs.
400externalId_invalidThe externalId is not 1–128 letters, digits or . _ ~ : -.
403provider_module_not_allowedA Technology Provider without the Activity module.
409activity_not_set_upYou have no activity listing yet. Set it up in the Partner Portal.
400variants_invalid, variants_name_repeated, variants_option_repeated, variants_too_few_optionsA variant section is wrong, repeated, or has fewer than two options.
409resource_busyAnother request is creating this externalId. Retry in a moment.
409resource_managed_elsewhereA Technology Provider wrote an externalId another integration holds.
cURL
curl -X PUT "$LOCALOY_BASE_URL/activity/items/kart-10" \
  -H "Authorization: Bearer $LOCALOY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Go-kart (10 laps)",
    "type": "GO_KARTING",
    "price": 900,
    "pricingUnit": "LAPS",
    "unitAmount": 10,
    "minAge": 12,
    "guides": [{ "type": "Helmet", "detail": "Provided" }]
  }'
Response · 201
{
  "success": true,
  "message": "Activity item created as a draft — publish it to show it to customers",
  "dryRun": false,
  "created": true,
  "data": {
    "externalId": "kart-10",
    "id": "cm4act1v1ty1t3m00000001",
    "name": "Go-kart (10 laps)",
    "type": "GO_KARTING",
    "category": null,
    "price": 900,
    "description": null,
    "image": null,
    "link": null,
    "guides": [{ "type": "Helmet", "detail": "Provided" }],
    "variants": [],
    "pricingUnit": "LAPS",
    "unitAmount": 10,
    "unitName": null,
    "minAge": 12,
    "safetyNote": null,
    "locationIds": [],
    "published": false,
    "updatedAt": "2026-11-10T10:00:00.000Z"
  }
}