---
title: "PUT /api/v1/file-views/{spaceId}/content"
method: PUT
path: "/api/v1/file-views/{spaceId}/content"
---

# PUT /api/v1/file-views/{spaceId}/content

`PUT /api/v1/file-views/{spaceId}/content`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/file-views/{spaceId}/content`
- Auth: none declared

## Path parameters

- `spaceId` integer, required: Space id, from GET /spaces.

## Query parameters

- `path` string, required: Path of the file to write.
- `replace` 'true' | 'false': Replace an existing file; without it an existing path answers 409.

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Request body

- UploadSpaceFileRequest
  - `contentBase64` string, required: File bytes, base64 encoded; at most 5 MB decoded. Send raw bytes as application/octet-stream for larger files.

## Response `200`

File replaced

- UploadedSpaceFile
  - `fileNodeId` string, required
  - `path` string, required
  - `kind` string, required

## Other responses

- `201`: File created
- `400`: Bad request, such as a missing parent folder
- `403`: Permission is missing
- `404`: Space not found, or file not found
- `409`: A file already exists at that path
- `411`: Content-Length is required
- `413`: File is too large

---

[API](https://skmtc.dev/falconer/apis/falconer-public-api.md) · [All operations](https://skmtc.dev/falconer/apis/falconer-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/falconer/apis/falconer-public-api/revisions/7b303b7ddf6a?raw)
