File Mutation
Upload file to a new or existing path
POST
/
repos
/
{repo_id}
/
files
/
{ref_id}
/
{path}
Authorizations
Authorization
string
headerrequiredThis API uses OAuth 2 with the implicit grant flow
Headers
X-DV-Client-ID
string
requiredThe unique id of the client making this request
Path Parameters
repo_id
string
requiredThe repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.
ref_id
string
requiredAn ID of a workspace, branch or commit.
path
string
requiredA path to a file inside the repository.
Query Parameters
storage_backend
enum<integer>
An optional storage type for async upload.
Available options:
1
, 2
storage_uri
string
An optional storage uri to be sent along storage_backend.
mode
enum<integer>
requiredThe file mode (as Unix mode)
Available options:
16877
, 33188
, 33261
, 40960
mtime
integer
requiredThe file's modification time in seconds since epoch
size
integer
Blob size in bytes
sha1
string
A sha1 hexdigest
Body
application/octet-stream ยท file
The body is of type file
.