Write file
Files
Write file
Create a new file or new version of existing file
POST
Write file
Authorizations
API key for authentication. Get your API key from the console.
Body
application/json
Minimum string length:
1Example:
"src/app.py"
Maximum string length:
10485760Example:
"print('Hello World')"
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"