Create Location

Changed on

Create a new location for a website. This location will be apart of the additional_locations object that is returned from a site's content library.

post/site/{site_name}/content/location

Request

  • Base URL
    https://api-sandbox.duda.co/api/integrationhub/application
  • URL
    https://api-sandbox.duda.co/api/integrationhub/application/site/{site_name}/content/location
  • Auth
    none required

Path parameters

site_namestring required

A valid site name of an existing website

Headers

authorizationstring

Your App Account's username and password, base64'd.

x-duda-access-tokenstring

The specific access token to access this site API.

Response

200

geounknown
labelstring
logo_urlstring
uuidstring

Example response

{
  "address": {
    "city": "Louisville",
    "country": "USA",
    "postalCode": "80027",
    "region": "CO",
    "streetAddress": "197 S 104th St C"
  },
  "business_hours": [
    {
      "close": "18:00",
      "days": [
        "MON"
      ],
      "open": "09:00"
    }
  ],
  "emails": [
    {
      "emailAddress": "colorado@duda.co",
      "label": "Colorado Office Email"
    }
  ],
  "label": "Duda Colorado - Goosetail Labs",
  "logo_url": "https://www.duda.co/developers/REST-API-Reference/images/duda.svg",
  "phones": [
    {
      "label": "Main Phone",
      "phoneNumber": "123-123-4321"
    }
  ],
  "social_accounts": {
    "facebook": "duda",
    "twitter": "dudamobile"
  },
  "uuid": "367163873"
}

Changes