Opencast

Local Distribution Service REST Documentation

/distribution/download
This service distributes media packages to the Opencast feed and engage services.

General Notes

Table of Contents

Write methods

Method / Path: POST /
Description: Distribute a media package element to this distribution channel
Path params: NONE
Required (form) params: mediapackage: The mediapackage
channelId: The publication channel ID
elementId: The element to distribute. The Id or multiple Ids as JSON Array ( ['IdOne','IdTwo'] )
Optional (form) params: NONE
Response formats: text/xml
Status codes: 200: OK, An XML representation of the distribution job
Notes:
  • Return value description: The job that can be used to track the distribution
Testing:
Sample: /
Testing form (click to reveal)
Method / Path: POST /distributesync
Description: Synchronously distribute a media package element to this distribution channel
Path params: NONE
Required (form) params: mediapackage: The mediapackage
channelId: The publication channel ID
elementId: The element to distribute. The Id or multiple Ids as JSON Array ( ['IdOne','IdTwo'] )
Optional (form) params: NONE
Response formats: text/xml
Status codes: 200: OK, An XML representation of the distribution
Notes:
  • Return value description: The distribution
Testing:
Sample: /distributesync
Testing form (click to reveal)
Method / Path: POST /retract
Description: Retract a media package element from this distribution channel
Path params: NONE
Required (form) params: mediapackage: The mediapackage
channelId: The publication channel ID
elementId: The element to retract. The Id or multiple Ids as JSON Array ( ['IdOne','IdTwo'] )
Optional (form) params: NONE
Response formats: text/xml
Status codes: 200: OK, An XML representation of the retraction job
Notes:
  • Return value description: The job that can be used to track the retraction
Testing:
Sample: /retract
Testing form (click to reveal)
Method / Path: POST /retractsync
Description: Synchronously retract a media package element from this distribution channel
Path params: NONE
Required (form) params: mediapackage: The mediapackage
channelId: The publication channel ID
elementId: The element to retract. The Id or multiple Ids as JSON Array ( ['IdOne','IdTwo'] )
Optional (form) params: NONE
Response formats: text/xml
Status codes: 200: OK, An XML representation of the retraction
Notes:
  • Return value description: The retraction
Testing:
Sample: /retractsync
Testing form (click to reveal)