---
title: "PATCH /api/v1/checks/{pk}/replace-locations/"
method: PATCH
path: "/api/v1/checks/{pk}/replace-locations/"
tags: ["checks"]
---

# PATCH /api/v1/checks/{pk}/replace-locations/

`PATCH /api/v1/checks/{pk}/replace-locations/`

## Request

- Base URL: `https://uptime.com` (the document declares no server; this is the origin it was published from)
- URL: `https://uptime.com/api/v1/checks/{pk}/replace-locations/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/docs/api/v1/checks/:pk/replace-locations/patch.ts> (a function with typed inputs; its response is checked against the schema)

Replace all locations on a check

**Sample data (application/x-www-form-urlencoded):**

<pre>locations[0]=GBR&locations[1]=AUT</pre>

<br />
**Sample data (JSON):**

    {"locations": ["GBR", "AUT"]}

<br />

## Path parameters

- `pk` string, required

## Request body

- CheckLocations
  - `locations` string[], required: An array of location names to add to this check. Use GET /api/v1/checks/locations/ to list available locations.

## Response `200`

- CheckLocations
  - `locations` string[], required: An array of location names to add to this check. Use GET /api/v1/checks/locations/ to list available locations.

---

[API](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema.md) - [All operations](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/llms.txt) - [OpenAPI document](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/revisions/e1e4a57a60d8?raw)
