Admin: Blog Posts

Set the related/promoted courses for a post by hand.

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

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

courseIdsinteger[] 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
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