POST
/
repos
/
{repo_id}
/
files
/
{ref_id}
/
{path}

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Headers

X-DV-Client-ID
string
required

The unique id of the client making this request

Path Parameters

repo_id
string
required

The 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
required

An ID of a workspace, branch or commit.

path
string
required

A 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>
required

The file mode (as Unix mode)

Available options:
16877,
33188,
33261,
40960
mtime
integer
required

The 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.