BizKitHub
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 · JSON body

Path parameters

· 1
draftIdstringRequired

External ID of the draft.

Exampleexample_draftId

Request body

application/json
visibilitystringOptional

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

mainCategorystringOptional

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

Response schema

1 status code documented

200Success
successbooleanRequired
postIdnumberRequired
postExternalIdstringRequired

Response example

application/json
{
  "success": false,
  "postId": 0,
  "postExternalId": "example_postExternalId"
}

Request example

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"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key