---
title: "Update details of an existing location"
method: POST
path: "/public/company/v1/update-location"
tags: ["Company"]
---

# Update details of an existing location

`POST /public/company/v1/update-location`

## Request

- Base URL: `https://api.maqqie.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maqqie.app/public/company/v1/update-location`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://maqqie.app/auth/realms/maqqie/protocol/openid-connect/token`
- TypeScript: <https://skmtc.dev/maqqie/apis/maqqie-public-api/docs/public/company/v1/update-location/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- LocationUpdateRequestV1
  - `name` string, required
  - `address` AddressDetailsV1, required: Address details.
    - `street` string, required: The street name of the address.
    - `houseNumber` integer, required: The house number of the address, excluding suffix. For a house number 123A, this would be 123.
    - `houseNumberAddition` string: House number suffix (if any). For a house number 123A, this would be 'A'.
    - `zipCode` string, required: The postal code of the address. Must be a post code that actually exists in the Netherlands.
    - `city` string, required: The city of the address.
    - `countryCode` string, required: The country code in ISO 3166-1 alpha-2 format.
  - `phoneNumber` string, required
  - `locationId` string, uuid, required

## Response `200`

Successfully updated the location

- LocationResponseV1
  - `name` string, required
  - `address` AddressDetailsV1, required: Address details.
    - `street` string, required: The street name of the address.
    - `houseNumber` integer, required: The house number of the address, excluding suffix. For a house number 123A, this would be 123.
    - `houseNumberAddition` string: House number suffix (if any). For a house number 123A, this would be 'A'.
    - `zipCode` string, required: The postal code of the address. Must be a post code that actually exists in the Netherlands.
    - `city` string, required: The city of the address.
    - `countryCode` string, required: The country code in ISO 3166-1 alpha-2 format.
  - `phoneNumber` string, required
  - `locationId` string, uuid, required

## Other responses

- `400`: The request could not be processed. This could be due to a number of reasons: * The request does not have all required data. * Data in the request is invalid. * Data in the request is inconsistent. * The operation is not allowed given the current state of the data.
- `401`: The request did not contain credentials identifying the caller, or the provided credentials were invalid.
- `403`: The data that the request referred to is inaccessible to the caller.

## Changes

- **2026-09-29** `f9510f3f4b22`: 2 breaking, 1 info
  - added `#/components/schemas/LocationDetailsV1, subschema #2` to the request body `allOf` list
  - the response's body type changed from no type to `string` for status `400`
  - added `#/components/schemas/LocationDetailsV1, subschema #2` to the response body `allOf` list for the response status `200`
- **2026-09-29** `3352b56bb8fe`: 1 breaking, 1 warning, 8 info
  - the response's body type changed from `string` to no type for status `400`
  - removed `#/components/schemas/LocationDetailsV1, subschema #2` from the request body `allOf` list
  - removed `#/components/schemas/LocationDetailsV1, subschema #2` from the response body `allOf` list for the response status `200`
  - response schema `application/json` enum value removed `ADDRESS_DOES_NOT_EXIST`
  - …6 more
- **2026-09-16** `ccf9834e5006`: 2 breaking, 1 info
  - added `#/components/schemas/LocationDetailsV1, subschema #2` to the request body `allOf` list
  - the response's body type changed from no type to `string` for status `400`
  - added `#/components/schemas/LocationDetailsV1, subschema #2` to the response body `allOf` list for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/maqqie/apis/maqqie-public-api/changes/public/company/v1/update-location/post.md)

---

[API](https://skmtc.dev/maqqie/apis/maqqie-public-api.md) - [All operations](https://skmtc.dev/maqqie/apis/maqqie-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maqqie/apis/maqqie-public-api/revisions/13ed331da2b2?raw)
