Creates or updates a file in a workspace.
Requirements:
ref_id must be a workspace IDFile content options:
Parameters:
mode - specifies file permissionsmtime - sets the modification timeValidation: Reserved paths containing ‘.diversion’ are rejected.
Returns:
202 Accepted on success204 No Content if no change was madeThis API uses OAuth 2 with the implicit grant flow
The unique id of the client making this request
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.
3 - 128"example_id"
An ID of a workspace, branch or commit.
3 - 128"example_id"
A path to a file inside the repository.
"/path/to/file"
An optional storage type for async upload. One of: 1 - EFS, 2 - S3
1, 2 An optional storage uri to be sent along storage_backend. Coupled with storage_backend, a uri to storage location
"repo_id/2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
The file mode (as Unix mode)
16877, 33188, 33261, 40960 The file's modification time in seconds since epoch
Blob size in bytes
A sha1 hexdigest
Blob binary contents, if the file is a blob and if alternative storage solution was not used.
The body is of type file.
File created or updated