Update the business profile
Change parts of the business profile customers see — description, website, type, opening hours, price range and profile answers.
{BASE_URL}/profileSend 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
httpsURL. businessTypestringoptionalHOTEL,RESTAURANT,TOUR,TRANSPORT,RETAILorOTHER.operatingHoursobject[]optional- The whole week, at most one entry per day.
[]clears it. operatingHours[].dayintegerrequired0= Sunday …6= Saturday.operatingHours[].openstringoptional- 24-hour
HH:MM, zero-padded (09:00, not9:00). Required unlessclosedistrue. operatingHours[].closestringoptional- 24-hour
HH:MM. Earlier thanopenfor a day that runs past midnight. Required unlessclosedistrue. 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(nullclears 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
dryRunbooleanrequiredtruefor a sandbox key: nothing was saved.dataobjectrequired- The profile, in the shape
GET /profilereturns.
Errors#
Every error is 400 with a code and details.field naming the field. Fields inside details are
named details.<field>.
| Code | When |
|---|---|
empty_patch | The body has no fields. |
unknown_field | A field this endpoint does not take. |
field_read_only | name, email, phone, logoUrl or coverImageUrl. |
body_invalid | The body is not a JSON object. |
description_required / description_invalid / description_too_long | Empty, not text, or over 5,000 characters. |
websiteUrl_invalid | Not an https URL. |
businessType_invalid | Not one of the six types. |
operatingHours_day_invalid / operatingHours_day_repeated | A day outside 0–6, or the same day twice. |
operatingHours_time_invalid | Not HH:MM, or opening and closing at the same time on an open day. |
priceRange_invalid / priceRange.min_invalid / priceRange_inverted | Not { min, max }, not a whole number in range, or min above max. |
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"] }
}'{
"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"
}
}{
"success": false,
"message": "phone belongs to the Localoy account and is changed in the Partner Portal",
"code": "field_read_only",
"details": { "field": "phone" }
}