---
title: "Update a location"
method: PUT
path: "/api/locations/{location}"
tags: ["Location"]
---

# Update a location

`PUT /api/locations/{location}`

## Request

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

## Path parameters

- `location` integer, required

## 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 updated

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

## Other responses

- `401`: Unauthenticated
- `404`: Location not found
- `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)
