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"=>"H5P Content", "code"=>"h5pcontent", "mimeType"=>"application/vnd.ekstep.h5p-archive", "primaryCategory"=>"Resource", "createdBy"=>"874ed8a5-782e-4f6c-8f36-e0288455901e"}}}
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 |
|
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. | |Authorization
| string | | (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. | |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"}}