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

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

`POST /api/v1/docs-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/docs-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

- MoveDocsViewItemsRequest
  - `navItemIds` integer[], required: Items to move, in the order they should land.
  - `parentNavItemId` integer: Container or page to place it under; the top level by default.
  - `beforeNavItemId` integer
  - `afterNavItemId` integer

## Response `200`

Each item is moved on its own, with its file; a failure does not undo the moves before it

- MovedDocsViewItems
  - `data` union[], required
    - union
      - object
        - `navItemId` integer, required
        - `status` 'moved', required
        - `path` string, nullable, required: Where its file or directory is now.
      - object
        - `navItemId` integer, required
        - `status` 'failed', required
        - `message` string, required
        - `code` string, required

## Other responses

- `400`: Bad request
- `403`: Permission is missing
- `404`: Space or item not found, or the Space has neither a docs site nor two-way sync

---

[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)
