Admin: Blog Posts

Take a published post back to draft.

post/api/admin/blog_posts/{id}/unpublish

Request

  • The document declares no server URL.
  • Auth: API key in cookie session

Path parameters

idinteger required

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
relatedCourseIdsinteger[] required

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

coverUrlstring nullable required

The cover image, served by the asset store; null for a post without one.

createdAtstring date-time required

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      endpoint added