1. Create a project file
Create a file withPUT /projects/{project_reference}/files/{file_path}:
create-file.sh
2. Read and update the file
Read it withGET /projects/{project_reference}/files/{file_path}:
read-file.sh
version_id as expected_version_id, or use the returned checksum as expected_checksum. A 409 response means the precondition no longer matches. Read the latest content before retrying.
Verify the result
Confirm that the returnedpath and content match the file you wrote. For branch work, use the same branch selector for the read and write operations.
Upload an asset
The upload endpoint returns a signedfile_upload_url and required_headers. Send the file bytes to that URL with all returned headers. Creating the URL alone does not upload the file.
Provide the actual byte length in the upload request’s size field. See the upload operation below for its complete request and response.