resources

Approve or reject a community submission (editors + admins).

Changed on
patch/api/admin/resource-submissions/{id}

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

id, string required

Submission (resource) ID

Request body

ReviewSubmissionRequest required

An editor's verdict on a submission. status must be approved or rejected; review_note is an optional message (e.g. a rejection reason).

review_note, string nullable
status, 'pending' | 'approved' | 'rejected' required

Review state of a resource that entered via community submission.

Response

Submission reviewed

ResourceSubmissionResponse required

One entry in the editor review queue: the proposed resource plus the context an editor needs to judge it (where it anchors, who suggested it).

book_slug, string required
book_title, string required
resource, ResourceResponse required

The proposed resource, in the same shape the reader renders. review_status on this object carries the submission's current state.

review_note, string nullable
reviewed_at, string nullable
submitter, ResourceSubmitter nullable

Changes

    • info

      added the optional property resource/source/oneOf[#/components/schemas/SourceResponse]/original_year_circa to the response with the status

    • breaking

      added subschema #1 to the resource/verbatim_kind response property oneOf list for the response status

    • breaking

      the resource/verbatim_kind response's property type changed from string null to no type for status

    30 more changes in this revision