---
title: "Fleet Propagate"
method: POST
path: "/api/fleet/propagate"
tags: ["fleet"]
---

# Fleet Propagate

`POST /api/fleet/propagate`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/fleet/propagate`
- Auth: HTTP bearer

Write one file into many of the caller's agents; optionally restart them.

Reuses the single-agent file-write route per target, so the /data scope
guard, ownership check, wake-on-write, and size cap all apply unchanged.
Restarts are queued to a background task (a container restart takes
seconds each, and 50 of them can't run inside one request).

## Request body

- FleetPropagateRequest
  - `path` string, required
  - `content` string, required
  - `agentIds` string[], required
  - `restart` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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