Update the business profile

Change parts of the business profile customers see — description, website, type, opening hours, price range and profile answers.

PATCH{BASE_URL}/profile

Send only the fields you want to change. Each field replaces that part whole: operatingHours is the whole week, and each key inside details replaces that answer. Requires the UPDATE scope.

The whole body is checked before anything is saved, so one invalid field rejects the request and nothing changes. Sending the same body again leaves the same profile.

A sandbox key never changes your profile

Your profile is what customers see, and there is only one. A sandbox key's request is checked in full and answered with the profile as it would be, with "dryRun": true — nothing is saved. Only a production key changes it. See Sandbox and production.

Body

descriptionstringoptional
1–5,000 characters.
websiteUrlstringoptional
An https URL.
businessTypestringoptional
HOTEL, RESTAURANT, TOUR, TRANSPORT, RETAIL or OTHER.
operatingHoursobject[]optional
The whole week, at most one entry per day. [] clears it.
operatingHours[].dayintegerrequired
0 = Sunday … 6 = Saturday.
operatingHours[].openstringoptional
24-hour HH:MM, zero-padded (09:00, not 9:00). Required unless closed is true.
operatingHours[].closestringoptional
24-hour HH:MM. Earlier than open for a day that runs past midnight. Required unless closed is true.
operatingHours[].closedbooleanoptional
Closed all day. Defaults to false.
priceRangeobjectoptional
{ min, max }, whole taka from 0 to 100,000,000, min ≤ max.
detailsobjectoptional
Any of tags (≤ 10), summaryPoints (≤ 8), cta (null clears it), paymentMethods (Cash, Card, bKash, Nagad, Rocket, Bank transfer), officeAddress, categoryDetails, creatorVideos (≤ 10). The same rules as the Partner Portal's Business Profile.

name, email, phone, logoUrl and coverImageUrl cannot be changed here: sending one answers 400 field_read_only.

Response

dryRunbooleanrequired
true for a sandbox key: nothing was saved.
dataobjectrequired
The profile, in the shape GET /profile returns.

Errors#

Every error is 400 with a code and details.field naming the field. Fields inside details are named details.<field>.

CodeWhen
empty_patchThe body has no fields.
unknown_fieldA field this endpoint does not take.
field_read_onlyname, email, phone, logoUrl or coverImageUrl.
body_invalidThe body is not a JSON object.
description_required / description_invalid / description_too_longEmpty, not text, or over 5,000 characters.
websiteUrl_invalidNot an https URL.
businessType_invalidNot one of the six types.
operatingHours_day_invalid / operatingHours_day_repeatedA day outside 0–6, or the same day twice.
operatingHours_time_invalidNot HH:MM, or opening and closing at the same time on an open day.
priceRange_invalid / priceRange.min_invalid / priceRange_invertedNot { min, max }, not a whole number in range, or min above max.
cURL
curl -X PATCH "$LOCALOY_BASE_URL/profile" \
  -H "Authorization: Bearer $LOCALOY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "Kacchi and borhani since 1952.",
    "operatingHours": [
      { "day": 0, "open": "11:00", "close": "23:00" },
      { "day": 5, "open": "18:00", "close": "02:00" },
      { "day": 6, "closed": true }
    ],
    "priceRange": { "min": 250, "max": 1800 },
    "details": { "tags": ["Kacchi", "Borhani"] }
  }'
Response · 200
{
  "success": true,
  "message": "Profile updated",
  "dryRun": false,
  "data": {
    "business": { "name": "Sultan's Dine", "description": "Kacchi and borhani since 1952.", "…": "…" },
    "operatingHours": [
      { "day": 0, "open": "11:00", "close": "23:00", "closed": false },
      { "day": 5, "open": "18:00", "close": "02:00", "closed": false },
      { "day": 6, "open": "00:00", "close": "00:00", "closed": true }
    ],
    "priceRange": { "min": 250, "max": 1800 },
    "details": { "tags": ["Kacchi", "Borhani"], "…": "…" },
    "updatedAt": "2026-11-10T08:30:00.000Z"
  }
}
Response · 400
{
  "success": false,
  "message": "phone belongs to the Localoy account and is changed in the Partner Portal",
  "code": "field_read_only",
  "details": { "field": "phone" }
}