Update location
storerocket_update_locationWRITE: change selected fields of one location with a partial update (PATCH): only the fields you send change, everything else is kept. The change shows on the live locator at once. Use null to clear phone, email, url, socials or cover; hours accepts single days (hours:{mon:'09:00-17:00'}), null for a day clears it, hours:null removes the whole schedule; fields and calls_to_action merge by name (a null value removes that entry); filters REPLACES the list ([] clears it). To take a location off the locator without deleting it, set visible=false. An invalid value saves nothing. Needs the location:update permission. PATCH /projects/{project_id}/locations/{location_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude, -90 to 90. When moving a location, send the new lat and lng together (an address change alone keeps the old pin). | |
| lng | No | Longitude, -180 to 180. | |
| url | No | Website URL. Send null to clear it. | |
| city | No | New city. | |
| name | No | New location name. | |
| yelp | No | yelp profile handle or URL; null clears it (update only). | |
| cover | No | Cover image URL or the project's stored image name; null clears it. | |
| No | Email address. Send null to clear it. | ||
| hours | No | Days to change (mon..sun or full names), each 'HH:MM-HH:MM', 'closed' or null to clear; null removes the schedule; {} keeps it. | |
| phone | No | Phone number. Send null to clear it. | |
| state | No | State or region. Send null to clear it. | |
| fields | No | Custom fields to add or update by name, e.g. {"Manager":"Sam","Old":null}; null clears all. | |
| tiktok | No | tiktok profile handle or URL; null clears it (update only). | |
| country | No | Country. Send null to clear it. | |
| filters | No | REPLACES the filter list; [] or null clears it. | |
| No | twitter profile handle or URL; null clears it (update only). | ||
| visible | No | Show (true) or hide (false) the location on the locator. | |
| youtube | No | youtube profile handle or URL; null clears it (update only). | |
| No | facebook profile handle or URL; null clears it (update only). | ||
| postcode | No | Postal code. Send null to clear it. | |
| timezone | No | Location timezone, e.g. Europe/London. | |
| No | instagram profile handle or URL; null clears it (update only). | ||
| marker_id | No | Id of a marker in the project; null restores the project default. | |
| project_id | Yes | Public project id (from storerocket_list_projects), kept as a string. | |
| location_id | Yes | Public location id (from storerocket_list_locations), kept as a string. | |
| location_type | No | Name of a location type in the project; null restores the project default. | |
| address_line_1 | No | Street address. Send null to clear it. | |
| address_line_2 | No | Additional address information. Send null to clear it. | |
| calls_to_action | No | Calls to action to add or update by name, e.g. {"Book":"https://example.com/book"}; null clears all. |