---
title: "Update a private location"
method: PUT
path: "/v1/private-locations/{id}"
tags: ["Private locations"]
---

# Update a private location

`PUT /v1/private-locations/{id}`

Updates a private location.

## Path parameters

- `id` string, required

## Headers

- `x-checkly-account` string — Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

## Request body

- PrivateLocationUpdate
  - `name` string, required — The name assigned to the private location.
  - `icon` string
  - `proxyUrl` string, nullable — A proxy for outgoing API check HTTP calls from your private location.

## Response `200`

Successful

- CommonPrivateLocationSchemaResponse
  - `id` string, required
  - `name` string, required — The name assigned to the private location.
  - `slugName` string, required — Valid slug name.
  - `icon` string — The private location icon.
  - `created_at` string, date, required
  - `updated_at` string, date, nullable
  - `keys` PrivateLocationKeys[]
    - `id` string, required
    - `rawKey` string, required
    - `maskedKey` string, required — The masked key value.
    - `created_at` string, date, required
    - `updated_at` string, date, nullable
  - `proxyUrl` string, nullable — A proxy for outgoing API check HTTP calls from your private location.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too Many Requests

---

[API](https://skmtc.net/checklyhq/apis/checkly-public-api.md) · [All operations](https://skmtc.net/checklyhq/apis/checkly-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/checklyhq/checkly-public-api/versions/9e903da4f3da/schema)
