content-draft

Get a content draft rendered for preview

get/api/v1/content-draft/{draftId}

Path parameters

draftIdstring uuid required

The unique identifier for the draft

Response

canRedoboolean required

Whether an undone version is still ahead of the cursor

canUndoboolean required

Whether an earlier version is still retained to step back to

cursorVersionnumber required

The version whose content the draft is showing. Equal to version unless something has been undone.

difficulty'easy' | 'medium' | 'hard'
draftIdstring required

The unique identifier for the draft

hide_examplesboolean required
hide_scorecardboolean required
languagestring

Language the draft is authored in

titlestring

Title of the mission being authored

updatedAtstring required

When the draft last changed

versionnumber required

Incremented by the store on every change. The preview polls and re-renders when this moves.

Changes

Changed in 2 of the 12 revisions of this API.35

    • added the new easy enum value to the response property for the response status

      response-property-enum-value-added

    • added the new hard enum value to the response property for the response status

      response-property-enum-value-added

    • added the new medium enum value to the response property for the response status

      response-property-enum-value-added

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added