Create Collection

POST {{baseUrl}}/collection/v1/create

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

Request Body

{"request"=>{"collection"=>{"code"=>"en", "channel"=>"in.ekstep", "createdBy"=>"ea dolor veni", "createdFor"=>["irure sunt dolor ut", "nos"], "creator"=>"reprehenderit dolore labore tempor", "description"=>"in aute dolore laborum e", "framework"=>"laborum ex culpa voluptate", "mimeType"=>"application/vnd.ekstep.content-collection", "name"=>"commodo", "organisation"=>["sunt voluptate eiusmod Excepteur dolore", "nulla"], "primaryCategory"=>"explanation-content-latests", "resourceType"=>"Test"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-TypestringThe Asset 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.content.create","ver":"1.0","ts":"2022-01-03T09:05:31.875Z","params":{"resmsgid":"4dca4330-6c74-11ec-b3c3-d9afeab1a49c","msgid":"0340ddc8-1b95-30c5-4a1d-b5181ba88c5e","status":"successful"},"responseCode":"OK","result":{"content_id":"do_113444716395110400184","versionKey":"1641200731833"}}