Learning Resources

✨ Unpublish a learning resource

Changed on
<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> Unpublish a learning resource to hide it from learners.
post/api/learning-resources/{id}/unpublish/

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/api/learning-resources/{id}/unpublish/
  • Auth
    API key in header Authorization

Path parameters

idinteger required

A unique integer value identifying this learning resource.

Request body

allow_standaloneboolean
colorstring nullable
cover_image_urlstring
default_allow_manual_accessboolean
default_gate_annotator_data_managerboolean nullable
default_gate_annotator_label_streamboolean nullable
default_gate_reviewer_data_managerboolean nullable
default_gate_reviewer_label_streamboolean nullable
default_gate_reviewer_review_streamboolean nullable
estimated_duration_unit'minutes' | 'hours' | 'days' | 'weeks'
  • minutes - Minutes
  • hours - Hours
  • days - Days
  • weeks - Weeks
estimated_duration_valueinteger nullable
generate_certificate_on_completionboolean
hide_completed_quizzesboolean
single_page_reviewboolean nullable
summarystring
titlestring
workspaceinteger nullable

Response

allow_standaloneboolean
colorstring nullable
contentobject required
content_versioninteger required
cover_image_urlstring
created_atstring date-time required
default_allow_manual_accessboolean
default_gate_annotator_data_managerboolean nullable
default_gate_annotator_label_streamboolean nullable
default_gate_reviewer_data_managerboolean nullable
default_gate_reviewer_label_streamboolean nullable
default_gate_reviewer_review_streamboolean nullable
estimated_duration_unit'minutes' | 'hours' | 'days' | 'weeks'
  • minutes - Minutes
  • hours - Hours
  • days - Days
  • weeks - Weeks
estimated_duration_valueinteger nullable
generate_certificate_on_completionboolean
has_unpublished_changesboolean nullable required
hide_completed_quizzesboolean
idinteger required
is_publishedboolean required
learner_countinteger required
learners_completed_countinteger required
learners_started_countinteger required
module_countinteger required
organizationinteger required
page_countinteger required
project_countinteger required
single_page_reviewboolean nullable
structure_versioninteger required
summarystring
titlestring
updated_atstring date-time required
workspaceinteger nullable

Changes

    • info

      added the new optional request property (media type: application/json)

    • info

      added the new optional request property (media type: application/x-www-form-urlencoded)

    • info

      added the new optional request property (media type: multipart/form-data)

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status