Create or replace an activity item
Create an item on your activity listing, or replace it, by your own ID.
{BASE_URL}/activity/items/:externalIdAn 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,ENTRYorOTHER.nullmeans per person. unitAmountinteger | nulloptional- How many — minutes for
TIME. Required forTIME,LAPS,ROUNDSandOTHER. 1–10,000. unitNamestring | nulloptionalOTHERonly, and required for it: what is counted, for examplegames.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#
| 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 | image_not_imported | image is not a URL from POST /media. |
400 | location_not_found, locationIds_invalid | A locationIds entry is not one of your locations, or the list is not an array of at most 50 IDs. |
400 | externalId_invalid | The externalId is not 1–128 letters, digits or . _ ~ : -. |
403 | provider_module_not_allowed | A Technology Provider without the Activity module. |
409 | activity_not_set_up | You have no activity listing yet. Set it up in the Partner Portal. |
400 | variants_invalid, variants_name_repeated, variants_option_repeated, variants_too_few_options | A variant section is wrong, repeated, or has fewer than two options. |
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/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" }]
}'{
"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"
}
}