Skip to main content
PUT
Upsert Project File

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project slug, UUID, or domain

file_path
string
required

File path (URL-encoded, e.g., pages%2Findex.mdx)

Query Parameters

branch_id
string<uuid>

Branch ID (null for main branch)

Body

application/json
content
string
required

File content

content_type
string

MIME type (default: text/plain)

expected_checksum
string

Expected current file checksum for optimistic concurrency

expected_version_id
string

Expected current file version ID for optimistic concurrency

Response

File updated successfully

id
string
required
path
string
required
content
string
required
size
number
required
updated_at
string
required