Create Content

POST {{baseUrl}}/content/v2/create

This API is associated with creating content on the Sunbird Platform. - The endpoint for Create Content is /content/v2/create - It points to knowledge-mw-service - /v2/content/create - It is mandatory to provide values for parameters marked with *. - Mandatory fields cannot be null or empty.

Request Body

{"request"=>{"content"=>{"name"=>"pdf content", "code"=>"pdf content", "mimeType"=>"application/pdf", "primaryCategory"=>"Learning Resource", "createdBy"=>"874ed8a5-782e-4f6c-8f36-e0288455901e", "channel"=>"sunbird"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring(Required) The Content Type entity is the media type of the resource.Possible media types can be:-
  • Application/json | | x-channel-id | string | | (Required) Represents a physical location (e.g: state) uniquely to which the user belongs. | | X-Authenticated-User-Token | string | | (Required) Represents the authorized User ID to execute the API. | | Accept | string | | |

RESPONSES

status: OK

{"id":"api.content.create","ver":"3.0","ts":"2020-12-10T20:24:45ZZ","params":{"resmsgid":"3be02c4b-3324-41a3-afd8-60f6be0584d2","msgid":null,"err":null,"status":"successful","errmsg":null},"responseCode":"OK","result":{"identifier":"do_1131697204035993601314","node_id":"do_1131697204035993601314","versionKey":"1607631885207"}}