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

# Repo Write Frontmatter

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

## 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/frontmatter`
- Auth: none declared

Set ONE flat frontmatter key on one file, as a real commit.

hash-object → temp-index write-tree → commit-tree → CAS update-ref, then
the same mirror hook receive-pack fires. A concurrent push loses no work:
the CAS fails and the editor retries against the new head.

## Path parameters

- `team_id` string, uuid, required

## Headers

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

## Request body

- FrontmatterWrite
  - `path` string, required
  - `key` string
  - `value` string
  - `fields` object, nullable
  - `expected_value` string, nullable
  - `expected` object, nullable
  - `via_view` 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)
