---
title: "Repo Write Blob"
method: PUT
path: "/v1/teams/{team_id}/repo/blob"
tags: ["team repo"]
---

# Repo Write Blob

`PUT /v1/teams/{team_id}/repo/blob`

## Request

- Base URL: `https://api.stormy.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stormy.ai/v1/teams/{team_id}/repo/blob`
- Auth: none declared

Replace one file's whole text, as a real commit.

The frontmatter endpoint edits a single property, which is the safe 90% —
but a lesson whose WORDING is wrong cannot be fixed by setting a key, and
"read-only except one property" makes the files view something you look at
rather than something you use.

Markdown only, inside the tree, and the runtime is a live writer of the
same files: `expected_commit` makes a concurrent write lose visibly rather
than silently overwrite a teaching that landed mid-edit.

## Path parameters

- `team_id` string, uuid, required

## Headers

- `authorization` string, nullable
- `x-darwin-token` string, nullable

## Request body

- BlobWrite
  - `path` string, required
  - `text` string, required
  - `expected_commit` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stormy/apis/stormy-control-plane.md) · [All operations](https://skmtc.dev/stormy/apis/stormy-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/stormy/apis/stormy-control-plane/revisions/4d811ab18158?raw)
