Location-focused Sites
Example of how to integrate our API for publishing a Site dedicated to a particular Business and one of their many Locations
The basic API flow is:
Create or update a Location under a Business
Create or update a Site under that Business/Location
Example endpoints that would be hit
New location and site
POST /api/v2/locations/
"business_id": 12345
- Passing the sharedbusiness_id
associated with all locations
POST /api/v2/sites/
"business_id": 12345
- Passing thebusiness_id
from above"locations": [54321]
- Passing thelocation_id
from above
Existing location and site
PUT /api/v2/locations/:location_id/
"business_id": 12345
- Passing the sharedbusiness_id
associated with all locations
PUT /api/v2/sites/:site_id/
"business_id": 12345
- Passing thebusiness_id
from above"locations": [54321]
- Passing thelocation_id
from above
Last updated