Update a store and its paired location-account record together (name, storeid, client_location_id, address, zip, city, site_url, phone, company_phone). Self-heals by backfilling any missing store_review_site rows for the store (safe to repeat) and reports how many were created. Rejects duplicates (same name+address+zip+city under another bundle_id=2 row). Cannot move a store between accounts.
Auth: Partner — authentication, under the partner/ group. The endpoint enforces ownership inside the controller (not the form request): it walks and canManageStore confirms the caller's partner matches (super admin bypasses); otherwise 403. Carries no ownership rule — only field validation.
Rate limit: No rate limit.
Request
- Body:
| Field | Type | Required | Notes |
|---|---|---|---|
| name | string | required | max 255; NameNoAngleBrackets |
| storeid | string | optional | max 100; NameNoAngleBrackets |
| client_location_id | string | optional | max 100; NameNoAngleBrackets (defaults to '' if null) |
| address | string | required | max 255; NameNoAngleBrackets |
| city_id | int | required | must exist:city,id |
| postal_code | string | required | min 3, max 12; NameNoAngleBrackets (saved to location zip) |
| site_url | string | optional | must be a valid URL |
| phone | string | optional | min 9, max 15 digits — secondary line |
| company_phone | string | optional | min 9, max 15 digits — primary business phone |
Response — { data. } envelope.
status(string) —success.message(string) —Location has been updated successfully!.storeId(integer) — the updated store id.review_sites_backfilled(integer) — count ofstore_review_siterows created by the self-heal (often 0).
Path params
| Parameter | Type | Required | Notes |
|---|---|---|---|
storeId | integer | Required | Digits only. |
Errors: 422 on validation failure.
Errors: 403 when you do not have access to the store; 404 when the store id does not exist or its data is incomplete.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
