Desk

Write one text file of a hosted project

Changed on

Creates or replaces the file. With expected_sha256 the write lands only if the file is still the one the writer read (null: still absent), and answers 409 with current_sha256 otherwise. The bytes go into the project owner's store, whoever writes them.

put/api/v0/desk/projects/{project_id}/file

Request

Path parameters

project_idstring uuid required

Request body

pathstring required
contentstring required
expected_sha256string nullable

Response

Successful Response

pathstring required
revisioninteger required
sha256string nullable

Changes