---
title: "Update Post"
method: PUT
path: "/admin/content/posts/{post_id}"
tags: ["admin-content"]
---

# Update Post

`PUT /admin/content/posts/{post_id}`

## Request

- Base URL: `https://api.thaiprops.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thaiprops.com/admin/content/posts/{post_id}`
- Auth: none declared

## Path parameters

- `post_id` integer, required

## Request body

- ArticlePayload
  - `title` string, required
  - `slug` string, required
  - `content_type` string
  - `status` string
  - `excerpt` string, nullable
  - `tldr` string, nullable
  - `body_json` unknown
  - `body_html` string, nullable
  - `raw_code` string, nullable
  - `category_id` integer, nullable
  - `seo_title` string, nullable
  - `meta_description` string, nullable
  - `canonical_url` string, nullable
  - `og_title` string, nullable
  - `og_description` string, nullable
  - `og_image` string, nullable
  - `schema_type` string
  - `faq_schema` unknown
  - `index_status` string
  - `ai_prompt` string, nullable
  - `ai_notes` string, nullable
  - `language` string
  - `translation_group_id` integer, nullable
  - `author_name` string, nullable
  - `featured_image` string, nullable
  - `published_at` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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