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

# POST /api/v1/statuspages/{statuspage_id}/metrics/

`POST /api/v1/statuspages/{statuspage_id}/metrics/`

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

Create a new status page metric

## Path parameters

- `statuspage_id` 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)
