Skip to main content
PUT
Write file content

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Query Parameters

path
string
required

File path.

includeFileId
boolean
default:true

Set to false when you do not need the stable file ID.

Body

application/json
content
string
required

File contents.

encoding
enum<string>

How content is encoded. Defaults to utf-8.

Available options:
utf-8,
base64
baseRevision
string

Revision the write is based on. Rejected if the file has moved on.

createOnly
boolean

Fail instead of overwriting when the file already exists.

Response

Successful response

The response is of type object.