---
title: "POST /api/v1/file-views/{spaceId}/move"
method: POST
path: "/api/v1/file-views/{spaceId}/move"
---

# POST /api/v1/file-views/{spaceId}/move

`POST /api/v1/file-views/{spaceId}/move`

## 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}/move`
- Auth: none declared

## Path parameters

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

## Headers

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

## Request body

- MoveSpaceFileRequest
  - `path` string: Path relative to the Space root, such as guides/setup.mdx.
  - `fileNodeId` string
  - `toPath` string, required: Full destination path, which may rename the file.

## Response `200`

Moved

- MovedSpaceFile
  - `fileNodeId` string, required
  - `path` string, required
  - `descendantPaths` string[], required

## Other responses

- `400`: Bad request, such as a missing parent folder
- `403`: Permission is missing
- `404`: Space not found, or file not found
- `409`: Something already exists at the destination

---

[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/c00420511526?raw)
