---
title: "Replace a post"
method: PUT
path: "/api/v1/posts/{id}"
tags: ["Posts"]
---

# Replace a post

`PUT /api/v1/posts/{id}`

## Request

- Base URL: `https://getscaleforge.com`
- URL: `https://getscaleforge.com/api/v1/posts/{id}`
- Auth: HTTP bearer

## Request body

- object
  - `meta_page_id` string, required
  - `message` string, required
  - `content_type` 'text' | 'image' | 'link' | 'video'
  - `link_url` string, uri, nullable

## Response `200`

Updated

- object
  - `data` object
    - `id` integer
    - `meta_page_id` string
    - `page_name` string, nullable
    - `message` string
    - `content_type` 'text' | 'image' | 'link' | 'video'
    - `status` 'draft' | 'queued' | 'published' | 'failed'
    - `meta_post_id` string, nullable
    - `published_at` string, date-time, nullable
    - `created_at` string, date-time

---

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