Admin: Blog Posts
put/api/admin/blog_posts/{id}

Request

  • The document declares no server URL.
  • Auth: API key in cookie JWT and API key in header X-XSRF-TOKEN

Path parameters

idinteger required

Request body

namestring nullable required
slugstring nullable required
descriptionstring nullable required
state'draft' | 'published' | 'archived' required

Blog post publication state.

richBodystring required

Trusted editor HTML, stored and returned without sanitization.

coverAttachmentIdinteger nullable required

Attachment id from POST /admin/attachments, or null to keep/clear.

Response

The request has succeeded.

idinteger required
namestring nullable required
slugstring nullable required
descriptionstring nullable required
state'draft' | 'published' | 'archived' required

Blog post publication state.

localestring nullable required
richBodyHtmlstring required
readingTimeinteger required
likesCountinteger required
relatedCourseItemsCountinteger required
relatedCourseIdsinteger[] required

Promoted-course ids in display order, so the admin related-courses editor can round-trip the set it writes.

coverThumbVariantstring nullable required
coverListVariantstring nullable required
coverMainVariantstring nullable required
createdAtstring date-time required

Changes