httpPUT /projects/{project_reference}/files/{file_path} Create a file or replace its content. Requires project.files.write. Parameters NameInRequiredDescriptionproject_referencepathYesfile_pathpathYesrefquerybranchquerybranch_idquery Request body FieldTypeRequiredDescriptioncontentstringYesReplacement textual content in main or the selected branch, stored as a new immutable version. Source-file MIME type is not writable.expected_checksumstringExpected current checksum when updating an existing file; ignored on creation. Omission disables this guard.expected_version_idstringExpected current version ID when updating an existing file; ignored on creation. Omission disables this guard.metadataobjectOptional durable file-version metadata for source provenance; service-owned visibility keys are rejected.expected_absentbooleanTrue requires absence atomically when creating; an existing file returns 409. False or omission retains upsert behavior. Responses StatusDescription200File updated successfully201File created successfully400Bad request401Unauthorized403Forbidden404Not found409Conflict500Server error