---
title: "Publish a post now"
method: POST
path: "/posts/{postId}/publish"
tags: ["Posts"]
---

# Publish a post now

`POST /posts/{postId}/publish`

## Request

- Base URL: `https://socialbu.com/api/v1`
- URL: `https://socialbu.com/api/v1/posts/{postId}/publish`
- Auth: HTTP bearer

Converts the post to a non-draft, sets its publish time to now, clears any previous publish result, and triggers publishing immediately or queues it for publishing.

## Path parameters

- `postId` integer, required

## Response `200`

Post publish triggered successfully

- object
  - `success` boolean
  - `post` object
    - `draft` boolean
    - `approved` boolean
    - `publish_at` string
    - `_published` boolean

## Other responses

- `400`: Bad Request
- `404`: Resource not found

---

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