---
title: "Update Location Hub Setting"
description: "How to call Update Location Hub Setting (PATCH /api/location-hub-settings/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/update_location_hub_setting_beta"
revision: "2026-10-15.pre"
operationId: "update_location_hub_setting_beta"
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/location-hub-settings/{id}"
authentication: "privateKey"
scopes: ["locations:write"]
rateLimits: {"burst":"1/s","steady":"15/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
preRelease: "BETA"
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_location_hub_setting_beta.json"
jsonApi: {"fields":{"location-hub-setting":["id","profile_property_key_name"]}}
related: ["https://developers.klaviyo.com/en/reference/location-hub-beta/llms.txt","https://developers.klaviyo.com/en/reference/get_locations_beta.md","https://developers.klaviyo.com/en/reference/get_location_beta.md","https://developers.klaviyo.com/en/reference/create_location_beta.md","https://developers.klaviyo.com/en/reference/update_location_beta.md","https://developers.klaviyo.com/en/reference/delete_location_beta.md","https://developers.klaviyo.com/en/reference/get_location_hub_setting_beta.md","https://developers.klaviyo.com/en/reference/query_proximity_segment_definition_beta.md","https://developers.klaviyo.com/en/reference/get_segment_ids_for_location_beta.md","https://developers.klaviyo.com/en/reference/add_segments_to_location_beta.md","https://developers.klaviyo.com/en/reference/remove_segments_from_location_beta.md","https://developers.klaviyo.com/en/reference/get_segments_for_location_beta.md"]
---

# Update Location Hub Setting

> This is the Markdown version of https://developers.klaviyo.com/en/reference/update_location_hub_setting_beta

```http
PATCH https://a.klaviyo.com/api/location-hub-settings/{id}
```


> [!WARNING]
> **This endpoint is in beta and subject to change.**
> A beta revision header (2026-10-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md) for more information.


Update Location Hub settings for an account.

The resource id is the account id. Only ``profile_property_key_name`` can be changed today.

- Revision header: `revision: 2026-10-15.pre` (required)
- Scopes: `locations:write`
- Rate limits: Burst: `1/s`, Steady: `15/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_location_hub_setting_beta.json)

## Example request

### curl

```bash
curl --request PATCH \
     --url 'https://a.klaviyo.com/api/location-hub-settings/id' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15.pre' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "location-hub-setting",
    "id": "abCdEf",
    "attributes": {
      "profile_property_key_name": "nearest_location"
    }
  }
}'
```

### CLI

```bash
klaviyo beta location-hub update-location-hub-setting id \
  -d '{
  "data": {
    "type": "location-hub-setting",
    "id": "abCdEf",
    "attributes": {
      "profile_property_key_name": "nearest_location"
    }
  }
}'
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

## Path parameters

- `id` (string, required)

## Query parameters

- `fields[location-hub-setting]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `id`, `profile_property_key_name`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15.pre`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `location-hub-setting`
  - `id` (string, required): The account identifier for these settings. Example: `abCdEf`
  - `attributes` (object, required)
    - `profile_property_key_name` (string, nullable): Profile property key Location Hub writes when linking a profile to a location. Example: `nearest_location`

### Example request body

```json
{
  "data": {
    "type": "location-hub-setting",
    "id": "abCdEf",
    "attributes": {
      "profile_property_key_name": "nearest_location"
    }
  }
}
```

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `location-hub-setting`
  - `id` (string, required): The account identifier for these settings. Example: `abCdEf`
  - `attributes` (object, required)
    - `profile_property_key_name` (string, required): Profile property key Location Hub writes when linking a profile to a location. Example: `nearest_location`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "type": "location-hub-setting",
    "id": "abCdEf",
    "attributes": {
      "profile_property_key_name": "nearest_location"
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
