Create location
storerocket_create_locationWRITE: add a location to a project's store locator. name and city are required; supply lat and lng for a precise pin (otherwise StoreRocket geocodes the address, which can be off). It appears on the live locator immediately unless visible is false, so set visible=false for a coming-soon or draft location. Opening hours: omit, or give all seven days. Creating twice makes two locations, so check storerocket_list_locations before retrying after an error. Needs the location:create permission. POST /projects/{project_id}/locations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude, -90 to 90. Supply with lng for an exact pin. | |
| lng | No | Longitude, -180 to 180. Supply with lat for an exact pin. | |
| url | No | Website URL. | |
| city | Yes | City. | |
| name | Yes | Location name. | |
| yelp | No | yelp profile handle or URL; null clears it (update only). | |
| No | Email address. | ||
| hours | No | A FULL week: all seven days (mon..sun), each a range like 09:00-17:00 or closed. Omit for no schedule. | |
| phone | No | Phone number. | |
| state | No | State or region. | |
| fields | No | Custom fields as {"Manager":"Sam"}. | |
| tiktok | No | tiktok profile handle or URL; null clears it (update only). | |
| country | No | Country. | |
| filters | No | Filter names to attach. | |
| No | twitter profile handle or URL; null clears it (update only). | ||
| visible | No | Whether the location shows on the locator. Set false to keep it hidden. | |
| 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. | |
| timezone | No | Location timezone, e.g. Europe/London. | |
| No | instagram profile handle or URL; null clears it (update only). | ||
| project_id | Yes | Public project id (from storerocket_list_projects), kept as a string. | |
| location_type | No | Name of an existing location type in the project. | |
| address_line_1 | No | Street address. | |
| address_line_2 | No | Additional address information. | |
| calls_to_action | No | Calls to action as {"Book":"https://example.com/book"}. |