DevHub API Documentation
  • Introduction
  • Authentication
  • Errors
  • Getting started guides
    • Business-focused Sites
    • Location-focused Sites
    • Location pages and store locator with custom theme
    • Site publishing with site builder access
  • Code examples
    • Python
    • PHP
    • Perl
  • Best practices
    • Our unique IDs, versus yours
    • State and country codes
  • Core Resources
    • Sites
    • Businesses
    • Locations
    • Domains
    • Proxies
  • Content Resources
    • Pages
    • Content
    • Images
    • Files
    • Modules
    • Plugins
    • Themes
  • Logging and analytics
    • Analytics
    • Contact Logs
  • Single Sign On (SSO)
    • Introduction
    • Assigning a site's user
  • Live Preview API
    • What is the Live Preview API?
  • Advanced
    • Domain aliases
    • Language codes
    • Projects
    • Site Check
    • Traces
    • Webmail
  • Local Storage API
    • What is the Local Storage API?
  • Headless CMS
    • Locations search
  • Visitor Localization SDK
    • Visitor Localization SDK
Powered by GitBook
On this page
  • Example endpoints that would be hit
  • New business, location and site
  • Existing business, location and site

Was this helpful?

  1. Getting started guides

Business-focused Sites

Example of how to integrate our API for publishing a Site dedicated to a particular Business and their single Location

The basic API flow is:

  1. Create or update a Business

  2. Create or update a Location under that Business

  3. Create or update a Site under that Business/Location

Example endpoints that would be hit

New business, location and site

  • POST /api/v2/business/

  • POST /api/v2/locations/

    • "business_id": 12345 - Passing the business_id from above

  • POST /api/v2/sites/

    • "business_id": 12345 - Passing the business_id from above

    • "locations": [54321] - Passing the location_id from above

Existing business, location and site

  • PUT /api/v2/businesses/:business_id/

  • PUT /api/v2/locations/:location_id/

    • "business_id": 12345 - Passing the business_id from above

  • PUT /api/v2/sites/:site_id/

    • "business_id": 12345 - Passing the business_id from above

    • "locations": [54321] - Passing the location_id from above

PreviousGetting started guidesNextLocation-focused Sites

Last updated 6 years ago

Was this helpful?