---
title: "PATCH /api/v1/docs-views/{spaceId}/items/{navItemId}"
method: PATCH
path: "/api/v1/docs-views/{spaceId}/items/{navItemId}"
---

# PATCH /api/v1/docs-views/{spaceId}/items/{navItemId}

`PATCH /api/v1/docs-views/{spaceId}/items/{navItemId}`

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

## Path parameters

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

## Headers

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

## Request body

- UpdateDocsViewItemRequest
  - `title` string: A container's title. A page's title is its first heading; change it with PUT /docs/{id}.
  - `fileName` string: Renames the file or directory behind the item in place, such as getting-started.mdx. Its folder stays the same.
  - `kind` 'group' | 'tab' | 'dropdown' | 'anchor' | 'link': How a folder inside a public docs site renders. Requires site management; tab only directly under the site root.
  - `config` DocsContainerEditOptions: Icon and destination; replaces the ones set before.
    - `icon` string
    - `href` string, uri
  - `access` 'public' | 'private', nullable: null clears it so the container inherits again.
  - `hidden` boolean

## Response `200`

Item updated

- DocsViewItemRef
  - `navItemId` integer, required
  - `path` string, nullable, required: The item's file or directory in the Files view, if any.

## 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
- `409`: Something already exists at the new file name

---

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