Skip to main content
PUT
Overwrite file content completely

Overwrite File Content Completely

Replaces the entire content of an existing file with new content. The file must exist first - this operation cannot create new files.

Use Cases

  • Document revisions - Replace entire documents with new versions
  • Configuration updates - Update entire config files
  • Template replacement - Replace template files with generated content
  • Data refresh - Replace data files with updated datasets

Example Usage

Authorizations

x-api-key
string
header
required

API key for authentication. Get your API key from the console.

Path Parameters

path
string
required

File path (S3-style, no leading slash)

Body

application/json
content
string
required
Maximum string length: 10485760
isBase64
boolean
default:false

Response

Success

success
boolean
required
Example:

true

data
object
required
operation
string
required
Example:

"write_file"

message
string
required
Example:

"File created successfully, version 1"