DocsAPI ReferenceNewsroom/bff/newsroom/draft/{draftId}/publish-as-post
postNewsroomAdmin BFF

/bff/newsroom/draft/{draftId}/publish-as-post

Materialises a ready draft into a content__post record using the standard addPost flow. By default the post is created as "unlisted" so the editor can review before going public.

NewsroompostBffNewsroomDraftByDraftIdPublish-as-post

Parameters

1 path · 2 body

3 total
Path · 1
draftIdstringRequired

External ID of the draft.

Body · 2
visibilitystring

public | private | unlisted | subscribe (default unlisted).

mainCategorystring

External ID of the post category (defaults to first active).

Request

POST /bff/newsroom/draft/{draftId}/publish-as-post

post
curl -X POST "https://api.bizkithub.com/bff/newsroom/draft/example_draftId/publish-as-post" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "visibility": "example_visibility",
  "mainCategory": "example_mainCategory"
}'

Response

JSON payload

{
  "success": false,
  "postId": 0,
  "postExternalId": "example_postExternalId"
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key