---
title: "Replace a status page's public URL; the old URL returns 404 immediately"
method: POST
path: "/status-pages/{status_page_id}/rotate-url"
tags: ["Status Page"]
---

# Replace a status page's public URL; the old URL returns 404 immediately

`POST /status-pages/{status_page_id}/rotate-url`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/status-pages/{status_page_id}/rotate-url`
- Auth: HTTP bearer

## Path parameters

- `status_page_id` integer, required

## Response `200`

Public URL replaced

- StatusPageResponse
  - `appearance` StatusPageAppearance, required: How a public page looks, as stored.
    - `accent_color` string, nullable
    - `logo_url` string, nullable
    - `show_response_times` boolean, required
    - `show_uptime_percentage` boolean, required
    - `theme` 'auto' | 'light' | 'dark', required: Color scheme of a public page.
    - `website_url` string, nullable
  - `created_at` string, date-time, required
  - `description` string, nullable
  - `has_password` boolean, required: Visitors need a password to read the page (ADR 108 D2). The password itself is never returned.
  - `id` integer, required
  - `is_published` boolean, required
  - `monitors` StatusPageMonitorResponse[], required
    - `display_name` string, required: The name shown on the public page.
    - `environment_id` integer, nullable: Environment the monitor checks, `None` for a project-level monitor.
    - `environment_name` string, nullable
    - `group_name` string, nullable: Group the component is shown in, `None` when on its own.
    - `monitor_id` integer, required
    - `monitor_name` string, required: The monitor's internal name. Shown to project members only; never published.
    - `position` integer, required
    - `project_id` integer, required: Project the monitor belongs to.
    - `project_name` string, required
  - `projects` StatusPageProject[], required: Projects the page's components belong to, by name. Managing the page needs the matching permission on every one of them.
    - `id` integer, required
    - `name` string, required
    - `slug` string, required
  - `public_feed_url` string, nullable: Atom feed of the page's public updates. `None` when `public_url` is, or while the page is password-protected (it has no feed then).
  - `public_json_path` string, required: Path of the machine-readable form (`/api/status/{slug}/summary.json`); always present, like `public_path`.
  - `public_json_url` string, nullable: Machine-readable form of the public page. `None` exactly when `public_url` is.
  - `public_path` string, required: Path of the public HTML page (`/api/status/{slug}`), on any address this install's public listener is reachable at. Always present, so a client can build the link itself when `public_url` is `None` because no public URL is configured.
  - `public_url` string, nullable: Public HTML page. Serves 404 while the page is unpublished. `None` when this install has no public address to build it from; see `public_url_status` for why and where to fix it. Temps never invents a host for it.
  - `public_url_status` PublicUrlStatus, required: Whether `public_url` exists, and if not (or if it will not open from outside this network) what to do about it.
    - `configured` boolean, required: `true` when `public_url` is present on the page.
    - `reason` string, nullable: Why there is no public URL, or why the one there will not open from outside this network (for example a loopback address). `None` when nothing is known to be wrong.
    - `setup_path` string, nullable: Console path where the operator sets it. Present whenever `reason` is.
  - `published_at` string, date-time, nullable
  - `slug` string, required: Unguessable token in the public URL.
  - `title` string, required
  - `updated_at` string, date-time, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Status page not found
- `500`: Internal server error

## Changes

- **2026-11-25** `cd6cbc9c9868`: 2 info
  - added the required property `public_json_path` to the response with the `200` status
  - added the required property `public_path` to the response with the `200` status
- **2026-11-21** `d57a37c13a27`: 2 info
  - added the optional property `public_feed_url` to the response with the `200` status
  - added the required property `has_password` to the response with the `200` status
- **2026-10-30** `f6acc7f7403e`: 1 breaking, 7 info
  - removed the required property `project_id` from the response with the `200` status
  - added the optional property `monitors/items/environment_id` to the response with the `200` status
  - added the optional property `monitors/items/environment_name` to the response with the `200` status
  - added the optional property `monitors/items/group_name` to the response with the `200` status
  - …4 more
- **2026-10-13** `dd766bfd1f06`: 4 breaking, 1 info
  - the response property `public_json_url` became nullable for the status `200`
  - the response property `public_url` became nullable for the status `200`
  - the response property `public_json_url` became optional for the status `200`
  - the response property `public_url` became optional for the status `200`
  - …1 more
- **2026-10-12** `f8faeee79d2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/status-pages/:status_page_id/rotate-url/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
