---
title: Create A Location
slug: create-a-location
icon: {"faIcon":"fa-solid fa-code"}
createdAt: 2023-01-26T14:46:57.000Z
---

Create a location in the current practice scope

## Return

This call returns a location object

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "/V1/dispensary/practice/location",
  "name": "API",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "The Access Token"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "location",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "location_name",
            "type": "string",
            "description": "Human readable form of the location. Used for visual identification in the UI"
          },
          {
            "kind": "optional",
            "name": "address1",
            "type": "string",
            "description": "Line 1 of the street address"
          },
          {
            "kind": "optional",
            "name": "address2",
            "type": "string",
            "description": "Line 2 of the street address"
          },
          {
            "kind": "optional",
            "name": "city",
            "type": "string",
            "description": "Name of the city"
          },
          {
            "kind": "optional",
            "name": "region_id",
            "type": "string",
            "description": "2-letter code for the state"
          },
          {
            "kind": "optional",
            "name": "postcode",
            "type": "string",
            "description": "The postal code / zip"
          },
          {
            "kind": "optional",
            "name": "country_id",
            "type": "string",
            "description": "2-letter code for the country"
          },
          {
            "kind": "optional",
            "name": "telephone",
            "type": "string",
            "description": "The main telephone for the location"
          }
        ],
        "description": ""
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "sT7x5eCla7VJy6tWNaRmD",
        "code": "{\n    \"location_id\": 12345,\n    \"location_name\": \"Main Office\",\n    \"city\": \"Chicago\",\n    \"region_id\": \"IL\",\n    \"country_id\": \"US\",\n    \"address1\": \"\",\n    \"address2\": \"\",\n    \"postcode\": \"\",\n    \"telephone\": \"\",\n    \"doctors\":[]\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "sT7x5eCla7VJy6tWNaRmD"
  },
  "examples": {
    "languages": [
      {
        "id": "LHVvurBLV3O1dJZkyhQCQ",
        "code": "curl --location -g --request POST 'https://{{api_host}}/rest/{{scope}}/V1/practice/location' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Bearer {{access_token}}' \\\n--data-raw '{\n    \"location\": {\n        \"location_name\": \"Main Office\",\n        \"city\": \"Chicago\",\n        \"country_id\": \"US\",\n        \"region_id\": \"IL\"\n    }\n}'",
        "language": "curl",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "LHVvurBLV3O1dJZkyhQCQ"
  },
  "description": "",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "api",
  "legacyHash": "iX0nZCxFb6SCjj5lbCMLq"
}
```
:::

