set_service_enabled
Turn a service on or off.
/v1/services/{serviceId}/enabledOnly when the creator asks you to. Needs a key with the publish option (403 api_scope_required otherwise). enabled true shows the service to travelers at once, who can then request and pay for it; it is refused with invalid_request while the service misses something (missing in get_service lists it). false hides it at once; orders already made carry on. Turning one on means the creator delivers what travelers order: never on your own.
curl -X PUT "https://sceniq.earth/api/v1/services/kq73m5p7r9t1v3x5z7b9d1f3h5k7m9p1/enabled" \
-H "Authorization: Bearer $SCENIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": true
}'Path parameters
- serviceIdstring · services idrequired
Id of the service (
serviceIdfromlist_servicesorcreate_service).
Body parameters
- enabledbooleanrequired
true turns the service on, false off.
Returns
200 OK with this object.
- serviceIdstring · services idrequired
The service's id.
- kindstringrequired
trip_plan: a Personal trip plan;video_call: a Video call.trip_planvideo_call - titlestringrequired
The title travelers see.
- descriptionstringrequired
The short description.
- enabledbooleanrequired
True when the service is on: travelers see it and can request it (
set_service_enabled, with the publish option). - missingarray of stringsrequired
What the service still needs before it can be turned on (cover: a main picture or a thumbnail); empty when ready.
titledescriptioncoverpricedeliveryDayscallMinutescallUrl - currencystringrequired
The creator's currency, which every
priceMinoris in.chfeurusd - priceMinornumberrequired
The price in minor units: a video call's price, a trip plan's lowest price by trip length (0 without).
- tripPricesarray of objects or nullrequired
A trip plan's prices by trip length, shortest first; null on a video call.
Show 3 fieldsHide fields
- daysnumberrequired
The longest trip this price covers, in days.
- priceMinornumberrequired
The price in minor units.
- ownPricesarray of objectsrequired
The creator's own prices for this length in the other currencies ([] without).
Show 2 fieldsHide fields
- currencystringrequired
The currency of this own price.
chfeurusd - priceMinornumberrequired
The creator's own price in that currency, in minor units.
- ownPricesarray of objectsrequired
A video call's own prices in the other currencies ([] without, and on a trip plan).
Show 2 fieldsHide fields
- currencystringrequired
The currency of this own price.
chfeurusd - priceMinornumberrequired
The creator's own price in that currency, in minor units.
- deliveryDaysnumber or nullrequired
A trip plan's delivery time in days; null on a video call.
- callMinutesenum or nullrequired
A video call's length in minutes; null on a trip plan.
3060 - callUrlstring or nullrequired
A video call's standing call link; null without.
- includesarray of stringsrequired
What you get, line by line ([] without).
- countriesarray of stringsrequired
Countries, ISO 3166-1 alpha-2 codes ([] without).
- languagesarray of stringsrequired
Language codes ([] without).
- mainPictureobject or nullrequired
The picture the service's page opens on.
Show 3 fieldsHide fields
- urlstringrequired
The picture's URL.
- widthnumberrequired
Width in pixels.
- heightnumberrequired
Height in pixels.
- thumbnailobject or nullrequired
The picture the service's cards show: the main picture while
thumbnailLinked, else the creator's own thumbnail.Show 3 fieldsHide fields
- urlstringrequired
The picture's URL.
- widthnumberrequired
Width in pixels.
- heightnumberrequired
Height in pixels.
- thumbnailLinkedbooleanrequired
True when the thumbnail follows the main picture (the default);
set_service_covergives it a photo of its own andset_service_thumbnail_linkedlinks it again. - photosarray of objectsrequired
The photos on the service's page, in order.
Show 4 fieldsHide fields
- storageIdstring · stored file idrequired
The photo's file id, for
remove_service_photo. - urlstringrequired
The photo's URL.
- widthnumberrequired
Width in pixels.
- heightnumberrequired
Height in pixels.
- studioUrlstringrequired
The service's form in the studio, where the creator checks it and turns it on.
- createdAtnumberrequired
When the row was created (Unix time in milliseconds).
- updatedAtnumberrequired
When the row last changed (Unix time in milliseconds).
{
"serviceId": "kq73m5p7r9t1v3x5z7b9d1f3h5k7m9p1",
"kind": "trip_plan",
"title": "Your Yellowstone trip, planned",
"description": "Tell me your dates and how you like to travel. I plan your days around the light, the geyser basins and the quiet trails, with where to sleep and where to park.",
"includes": [
"A day by day route for your dates",
"Sunrise and sunset spots with parking",
"Where to sleep, with links to book",
"Free changes until you are happy"
],
"countries": [
"US"
],
"languages": [
"en",
"sv"
],
"enabled": true,
"missing": [],
"currency": "usd",
"priceMinor": 19900,
"tripPrices": [
{
"days": 3,
"priceMinor": 19900,
"ownPrices": []
},
{
"days": 7,
"priceMinor": 34900,
"ownPrices": []
}
],
"ownPrices": [],
"deliveryDays": 5,
"callMinutes": null,
"callUrl": null,
"mainPicture": {
"url": "https://quiet-heron-512.convex.cloud/api/storage/kg2d1f7h3k9n5q1t7w3z9c5f1j7m3q9t",
"width": 2048,
"height": 1365
},
"thumbnail": {
"url": "https://quiet-heron-512.convex.cloud/api/storage/kg2d1f7h3k9n5q1t7w3z9c5f1j7m3q9t",
"width": 2048,
"height": 1365
},
"thumbnailLinked": true,
"photos": [],
"studioUrl": "https://creators.sceniq.earth/services/kq73m5p7r9t1v3x5z7b9d1f3h5k7m9p1",
"createdAt": 1762000000000,
"updatedAt": 1762007200000
}Errors
Every error is { error: { code, message } }. Act on the code.
- 400invalid_argumentA required field is missing, a field is unknown, or a value does not match its type (the Convex validator's path and value are in the message).
- 400invalid_requestA writer refused a value: a map link on a host that is not allowed, a title that is too long, a date that does not exist, too many items in a list. The message is the writer's own sentence.
- 401unauthenticatedThe request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
- 401invalid_api_keyThe key is unknown, revoked or expired.
- 403api_scope_requiredA read-only key called a write operation, or a key without the publish option called publish_changes.
- 403forbiddenThe key belongs to a creator account that is no longer active.
- 404not_foundThe id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.
- 413payload_too_largeA JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.
- 429rate_limitedOver a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
- 500internal_errorAn unexpected failure. The message is hidden on purpose.