Skip to main content
POST
Write file

Authorizations

x-api-key
string
header
required

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

Body

application/json
path
string
required
Minimum string length: 1
Example:

"src/app.py"

content
string
required
Maximum string length: 10485760
Example:

"print('Hello World')"

contentType
enum<string>

MIME type of the file content. Must be one of the supported types.

Available options:
text/markdown,
text/plain,
text/javascript,
text/typescript,
application/json,
text/html,
text/css,
text/x-python,
text/x-java-source,
text/x-c++src,
text/x-csrc,
application/xml,
application/yaml,
text/csv,
image/jpeg,
image/png,
image/gif,
image/webp,
image/bmp,
image/svg+xml,
application/pdf,
application/zip,
audio/mpeg,
video/mp4,
video/x-msvideo,
video/quicktime,
application/octet-stream
Example:

"text/x-python"

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"