Admin: Reviews

Publish a draft or archived review. A state is not an update: each change of Publication State is its own operation with its own Permission. An illegal move, or repeating the current state, is a 409 with a localized detail.

post/api/admin/reviews/{id}/publish

Request

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

Path parameters

idinteger required

Response

The request has succeeded.

idinteger required
userIdinteger required
courseIdinteger required
bodystring nullable required
firstNamestring nullable required
lastNamestring nullable required
fullNamestring nullable required
state'draft' | 'published' | 'archived' required

Review publication state.

locale'ru' | 'en' required

Reviews only target ru/en today (legacy ReviewLocale).

pinnedboolean nullable required

Stored for the admin edit form to round-trip; it does not affect the public list, which legacy ordered newest first only.

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