Upload Content

POST {{baseUrl}}/content/v2/upload/:Content_Id

This API is associated with uploading content on the Sunbird Platform . - The/upload/{content Id} endpoint executes Upload Content request based on parameters provided as metadata in the request body. - The endpoint for Upload Content is /content/v2/upload - It points to knowledge-mw-service - /v2/content/upload - {...}refers to a section of upload endpoint URL path that needs to be replaced by appropriate Id. - You need to provide a valid content Id value in {Content Id} field of API URL. - It is mandatory to provide values for parameters marked with *. - Mandatory fields cannot be null or empty.

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring(Required) The Content Type entity is the media type of the resource.Possible media types can be:-
  • Application/json
  • Multipart/form-data
  • Application/x-www-form-urlencoded | | X-Authenticated-Userid | string | | (Required) The Registered User ID to execute the API. | | 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.upload","ver":"3.0","ts":"2020-12-10T21:00:16ZZ","params":{"resmsgid":"4505a08c-9d0c-447b-8b3f-692e31f841fd","msgid":null,"err":null,"status":"successful","errmsg":null},"responseCode":"OK","result":{"identifier":"do_1131697376667402241315","artifactUrl":"https://ekstep-public-dev.s3-ap-south-1.amazonaws.com/content/do_112547906582659072139/artifact/pdf_1531726896452.pdf","content_url":"https://ekstep-public-dev.s3-ap-south-1.amazonaws.com/content/do_112547906582659072139/artifact/pdf_1531726896452.pdf","node_id":"do_1131697376667402241315","versionKey":"1607634016927"}}