---
title: "Write blob to a remote file"
method: POST
path: "/fs/write"
---

# Write blob to a remote file

`POST /fs/write`

## Request

- Base URL: `http://localhost:21721`
- URL: `http://localhost:21721/fs/write`
- Auth: HTTP bearer

Writes blob data to a file through an active shell session.

## Request body

- FsWriteRequest
  - `store` string, required: The store uuid
  - `blob` string, required: The blob uuid
  - `path` string, required: The target filepath

## Response `200`

The operation was successful. The file was written.

## Other responses

- `400`: Bad request. Please check error message and your parameters.
- `401`: Authorization failed. Please supply a `Bearer` token via the `Authorization` header.
- `403`: Authorization failed. Please supply a valid `Bearer` token via the `Authorization` header.
- `500`: Internal error.

---

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