Asset Read

GET {{baseUrl}}/asset/v1/read/{{assetId}}

This API is associated with viewing and reading out the asset on the Sunbird Platform . - The /read/{asset Id} endpoint executes request for fetching the asset to be viewed and read. - The endpoint for Read Asset is /asset/v1/read - It points to knowledge-mw-service - /v1/asset/read - {...}refers to a section of reject endpoint URL path that needs to be replaced by appropriate Id. - You need to provide a valid asset Id value in {Asset Id} field of API URL. - It is mandatory to provide values for parameters marked with *. - Mandatory fields cannot be null or empty.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring(Required) To make use of the API, you require authorization. Raise a request to the administrator for the use of the API. You will receive the authorization key. Specify the key received, here.
Content-TypestringThe Content Type entity is the media type of the resource.Possible
x-authenticated-user-tokenstring(Required) Represents the authorized User ID to execute the API
X-Channel-IDstring(Required) Represents a physical location (e.g: state) uniquely to which the user belongs
Acceptstring

RESPONSES

status: OK

{"id":"api.asset.read","ver":"4.0","ts":"2021-12-29T10:22:50ZZ","params":{"resmsgid":"30114c34-e044-4e49-ad5e-89075ae503ce","status":"successful"},"responseCode":"OK","result":{"content":{"ownershipType":["createdBy"],"code":"f2f41233-1c34-cf28-7bf8-0987a1eee420","keywords":"","channel":1309282781705830400,"downloadUrl":"https://sunbirddev.blob.core.windows.net/sunbird-content-dev/content/assets/do_113441146415767552142/file_example_mp4_640_3mg.mp4","language":["English"],"mimeType":"video/mp4","idealScreenSize":"normal","createdOn":"2021-12-29T08:02:23.340+0000","objectType":"Asset","primaryCategory":"asset","contentDisposition":"inline","lastUpdatedOn":"2021-12-29T08:02:24.755+0000","contentEncoding":"identity","artifactUrl":"https://sunbirddev.blob.core.windows.net/sunbird-content-dev/content/assets/do_113441146415767552142/file_example_mp4_640_3mg.mp4","contentType":"Resource","dialcodeRequired":false,"identifier":"do_113441146415767552142","lastStatusChangedOn":"2021-12-29T08:02:23.340+0000","audience":["Student"],"creator":"N11","os":["All"],"visibility":"Default","consumerId":"bfe5883f-ac66-4744-a064-3ed88d986eba","mediaType":"video","osId":"org.ekstep.quiz.app","languageCode":["en"],"version":2,"versionKey":"1640764944755","license":"CC BY 4.0","idealScreenDensity":"hdpi","framework":"NCF","size":3114374,"createdBy":"5a587cc1-e018-4859-a0a8-e842650b9d64","compatibilityLevel":1,"name":"file_example_MP4_640_3MG","status":"Processing"}}}