---
title: "Update an existing page"
method: PUT
path: "/api/pages/{id}"
tags: ["Pages"]
---

# Update an existing page

`PUT /api/pages/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `key` string — Non-unique asset directory namespace (for example shared/ or personal/<user-id>/drafts/). Runtime write boundaries normalize and validate the canonical form.
  - `title` string
  - `description` string, nullable
  - `contentType` 'text/html' | 'application/json'
  - `authMode` 'public' | 'authed' | 'password'
  - `password` string, nullable
  - `body` string
  - `needsCredentials` string[], nullable

## Response `200`

Page updated

- object
  - `id` string, required
  - `key` string, required — Non-unique asset directory namespace (for example shared/ or personal/<user-id>/drafts/). Runtime write boundaries normalize and validate the canonical form.
  - `version` integer, required

## Other responses

- `404` — Page not found
- `413` — Payload too large

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/0375890be8c4/schema)
