---
title: "Write blob to a shell script"
method: POST
path: "/fs/script"
---

# Write blob to a shell script

`POST /fs/script`

## Request

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

Creates a shell script in the temporary directory of the file system that is access through the shell connection.

This can be used to run more complex commands on remote systems.

## Request body

- FsScriptRequest
  - `store` string, required: The store uuid
  - `blob` string, required: The blob uuid

## Response `200`

The operation was successful. The script file was created.

- FsScriptResponse
  - `path` string, required: The generated script file path

## 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)
