---
title: "location.updateAddress"
method: POST
path: "/location.updateAddress"
tags: ["Location"]
---

# location.updateAddress

`POST /location.updateAddress`

Update an address of a location or location hierarchy.

**Requires the [`organizationWrite`](authentication#permissions-locationupdateaddress) permission.**

## Request body

- LocationUpdateAddressRequest
  - `locationId` string, uuid, required — The id of the location
  - `address` object, nullable — The address for the location
    - `postalAddress` object, required — The postal address for the location
      - `addressCountry` string — The country for the location address
      - `addressRegion` string — The region for the location address
      - `addressLocality` string — The locality for the location address
      - `postalCode` string — The postal code for the location address
      - `streetAddress` string — The street address for the location

## Response `200`

Responses from the location.updateAddress endpoint

- union
  - LocationUpdateAddressSuccessResponse
    - `success` true, required
    - `results` Location, required
      - `id` string, uuid, required — The unique identifier for the location
      - `name` string, required — The name of the location
      - `externalName` string, nullable, required — An alternate candidate-facing name for this location used on job boards and in the API
      - `isArchived` boolean, required — Whether the location is archived
      - `isRemote` boolean, nullable, required — Deprecated. Use workplaceType instead.
      - `address` object, nullable, required — The address for the location
        - `postalAddress` object, required — The postal address for the location
          - `addressCountry` string — The country for the location address
          - `addressRegion` string — The region for the location address
          - `addressLocality` string — The locality for the location address
          - `postalCode` string — The postal code for the location address
          - `streetAddress` string — The street address for the location
      - `parentLocationId` string, uuid, nullable, required — The unique identifier for the parent location hierarchy, if any
      - `type` 'Location' | 'LocationHierarchy', required — The type of the location component
      - `workplaceType` 'OnSite' | 'Hybrid' | 'Remote', nullable, required — The type of workplace
      - `extraData` object, nullable, required — Structured key-value information for your own use and reference. Do not store personally identifiable information in this field.
  - ErrorResponse
    - `success` false, required
    - `errors` ErrorDetail[], required
      - `message` string, required
      - `parameter` string

---

[API](https://skmtc.net/ashbyhq/apis/ashby-api.md) · [All operations](https://skmtc.net/ashbyhq/apis/ashby-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ashbyhq/ashby-api/revisions/778b919dc743/schema)
