---
title: "Patch a post"
method: PATCH
path: "/posts/{id}"
tags: ["Posts"]
---

# Patch a post

`PATCH /posts/{id}`

## Request

- Base URL: `https://api.savanto.ai`
- URL: `https://api.savanto.ai/posts/{id}`
- Auth: HTTP bearer

Partially update a post (e.g. change indexStatus).

## Path parameters

- `id` string, required

## Request body

- object
  - `indexStatus` 'active' | 'hidden' | 'disabled'

## Response `200`

Updated post

- object
  - `object` 'post', required
  - `requestId` string, required
  - `data` Post, required
    - `id` string, required
    - `title` string, required
    - `content` string
    - `excerpt` string
    - `searchableText` string
    - `postType` string
    - `url` string
    - `status` string
    - `authorId` string
    - `authorName` string
    - `wordCount` number
    - `readingTime` number
    - `categories` string[]
    - `tags` string[]
    - `metaTitle` string
    - `metaDescription` string
    - `featuredImage` string, nullable
    - `createdAt` string
    - `updatedAt` string
    - `publishedAt` string, nullable
    - `attributes` object, nullable
    - `metadata` object
    - `source` string
    - `indexStatus` 'active' | 'hidden' | 'disabled'
    - `score` number
    - `matchingChunks` object[]
      - `chunkText` string, required
      - `order` number, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `413`: Payload too large
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/savanto/apis/savanto-api.md) · [All operations](https://skmtc.dev/savanto/apis/savanto-api/llms.txt) · [OpenAPI document](https://skmtc.dev/savanto/apis/savanto-api/revisions/82437327a878?raw)
