Skip to main content
PUT
Write a file
Creates a new file or fully rewrites an existing one. For surgical changes to an existing file, use Edit a file instead.

Authorizations

Authorization
string
header
required

Enter your Zite API key. Format: Bearer <api_key>

Path Parameters

sessionId
string
required

The build session ID from Open a session.

Body

application/json
path
string
required

Path relative to the workspace root.

Example:

"apps/agent-console/src/api/listTickets.ts"

content
string
required

Full file contents to write.

Response

The written file

path
string
bytes
integer