---
title: "Update JSON document"
method: PUT
path: "/api/json/{ns}/{id}"
tags: ["JSON"]
---

# Update JSON document

`PUT /api/json/{ns}/{id}`

Replaces document content; requires the owner token returned at creation

## Path parameters

- `ns` string, required
- `id` string, required

## Headers

- `X-Owner-Token` string, required

## Request body

- string

## Response `200`

Document updated

## Other responses

- `403` — Missing or wrong owner token
- `404` — Document not found or expired

---

[API](https://skmtc.net/brewpage/apis/brewpage-api.md) · [All operations](https://skmtc.net/brewpage/apis/brewpage-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/brewpage/brewpage-api/revisions/6e0ac03e39e5/schema)
