---
title: "Create a location"
method: POST
path: "/api/locations"
tags: ["Location"]
---

# Create a location

`POST /api/locations`

## Request

- Base URL: `https://api.chipprofessionals.com`
- URL: `https://api.chipprofessionals.com/api/locations`
- Auth: HTTP bearer

## Request body

- Location
  - `name` string, nullable
  - `address` string, required
  - `location` string, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Response `200`

Location saved

- SuccessResponse: Standard success response format
  - `success` boolean
  - `message` string
  - `data` unknown

## Other responses

- `401`: Unauthenticated
- `422`: Validation failed

---

[API](https://skmtc.dev/chipprofessionals/apis/chip-api-documentation.md) - [All operations](https://skmtc.dev/chipprofessionals/apis/chip-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/chipprofessionals/apis/chip-api-documentation/revisions/05e58f424c25?raw)
