write

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
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
}

Last updated