---
title: "PATCH /api/v1/statuspages/{statuspage_id}/metrics/{pk}/"
method: PATCH
path: "/api/v1/statuspages/{statuspage_id}/metrics/{pk}/"
tags: ["statuspages"]
---

# PATCH /api/v1/statuspages/{statuspage_id}/metrics/{pk}/

`PATCH /api/v1/statuspages/{statuspage_id}/metrics/{pk}/`

## 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/statuspages/{statuspage_id}/metrics/{pk}/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/docs/api/v1/statuspages/:statuspage_id/metrics/:pk/patch.ts> (a function with typed inputs; its response is checked against the schema)

Partially update a status page metric

## Path parameters

- `statuspage_id` string, required
- `pk` string, required

## Request body

- Metric
  - `pk` integer
  - `name` string, required
  - `service_type` string
  - `service_name` string
  - `service_id` integer, required
  - `service_url` string
  - `url` string
  - `is_visible` boolean

## Response `200`

- Metric
  - `pk` integer
  - `name` string, required
  - `service_type` string
  - `service_name` string
  - `service_id` integer, required
  - `service_url` string
  - `url` string
  - `is_visible` boolean

---

[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)
