Import Content
POST {{baseUrl}}/content/v2/import
This API is associated with importing a content on the Sunbird Platform from different environment.
- The /import/endpoint executes request for impoting content, if content is found appropriate.
- The endpoint for Import Content is /content/v2/import
- It points to content-service - /content/v3/import
- It is mandatory to provide values for parameters marked with *.
- Mandatory fields cannot be null or empty.
Request Body
{"request"=>{"content"=>[{"source"=>"https://vdn.diksha.gov.in/api/content/v2/read/do_4313124780355543040126730", "collection"=>[{"identifier"=>"do_3131112587361648641337", "unitId"=>"do_3131112587369922561425"}]}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | (Required) The Content Type entity is the media type of the resource.Possible media types can be:- |
- Application/json |
|
Authorization
| string | | (Required) All content APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API. | |Accept
| string | | |
RESPONSES
status: OK
{"id":"api.content.import","ver":"3.0","ts":"2020-12-17T16:29:11ZZ","params":{"resmsgid":"7cce8934-0a2f-46bf-a0ee-be5f49874cae","msgid":null,"err":null,"status":"successful","errmsg":null},"responseCode":"OK","result":{"processId":"80a765c7-2202-4b3f-b473-448b5c2cd20e"}}