---
title: "Create or replace a guidance file"
method: PUT
path: "/v1/workspaces/{workspaceId}/context/{name}"
tags: ["Workspaces"]
---

# Create or replace a guidance file

`PUT /v1/workspaces/{workspaceId}/context/{name}`

## Request

- Base URL: `https://shareout.site`
- URL: `https://shareout.site/v1/workspaces/{workspaceId}/context/{name}`
- Auth: HTTP bearer

Owner/admin. Also accepts POST. Raw markdown body or JSON `{ "content": "..." }`; max 64KB, 100 files.

## Request body

- object
  - `content` string, required

## Response `200`

`{ name, size, updated: true }`

## Other responses

- `400`: Invalid request
- `403`: Access denied

## Changes

- **2026-10-13** `ed6fa61bd690`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shareout/apis/shareout-rest-api/changes/v1/workspaces/:workspaceId/context/:name/put.md)

---

[API](https://skmtc.dev/shareout/apis/shareout-rest-api.md) - [All operations](https://skmtc.dev/shareout/apis/shareout-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shareout/apis/shareout-rest-api/revisions/1e3f7fd34f6d?raw)
