POST
/
territories
curl --request POST \
  --url https://api.axlehealth.com/api/v2-stable/territories \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "TX -- Austin",
  "zip_codes": [
    [
      "78701",
      "78702",
      "78703"
    ]
  ],
  "metadata": {
    "region": "South",
    "population": "978,908",
    "area_sqm": "322.5"
  }
}'
{
  "territory_id": "9a0b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4"
}

Body

application/json

Response

201
application/json

Territory created successfully

The response is of type object.