LogoLogo
Dashboard
  • 💾Introduction
  • 🚀Getting started
  • 🔌Connections
  • 🔑Authentication and API Keys
  • 🛠️Transformers
  • API Docs
    • append
    • exists
    • list
    • mkdir
    • ping
    • read
    • rmdir
    • unlink
    • stat
    • write
Powered by GitBook
On this page
  1. API Docs

write

Previousstat

Last updated 1 year ago

Write data to a file at the given path.

post

Write data to a file at the given path.

Authorizations
Path parameters
connectionSlugstringRequired
Body
one ofOptional
or
Responses
200
The file was written to
application/json
Responseone of
or
400
The request was malformed
post
POST /{connectionSlug}/write HTTP/1.1
Host: api.sftpoverhttp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 52

{
  "path": "hello.txt",
  "file": {
    "text": "Hello, world!"
  }
}
{
  "write": true
}