XPipe LogoXPipe Documentation

Write a blob to a remote file

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

POST
/fs/write

Authorization

AuthorizationRequiredBearer <token>

The bearer token used is the session token that you receive from the handshake exchange.

In: header

Request Body

application/jsonRequired
connectionRequiredstring

The connection uuid

blobRequiredstring

The blob uuid

pathRequiredstring

The target filepath

curl -X POST "http://localhost:21721/fs/write" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "connection": "f0ec68aa-63f5-405c-b178-9a4454556d6b",
    "blob": "854afc45-eadc-49a0-a45d-9fb76a484304",
    "path": "/home/user/myfile.txt"
  }'

The operation was successful. The file was written.