Asset Create
POST {{baseUrl}}/asset/v1/create
This API is associated with creating asset on the Sunbird Platform.
- The endpoint for Create Asset is /asset/v1/create
- It points to knowledge-mw-service - /v1/asset/create
- It is mandatory to provide values for parameters marked with *
- Mandatory fields cannot be null or empty.
Request Body
{"request"=>{"asset"=>{"channel"=>"sunbird", "code"=>"tempor nostrud esse", "createdBy"=>"conseq", "creator"=>"unkown", "keywords"=>["hi, hello, neer"], "language"=>["English", "Telugu"], "mediaType"=>"image", "mimeType"=>"image/png", "name"=>"test image", "primaryCategory"=>"asset"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
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. | |
Content-Type | string | The Content Type entity is the media type of the resource.Possible | |
x-authenticated-user-token | string | (Required) Represents the authorized User ID to execute the API | |
X-Channel-ID | string | (Required) Represents a physical location (e.g: state) uniquely to which the user belongs | |
Accept | string |
RESPONSES
status: OK
{"id":"api.asset.create","ver":"4.0","ts":"2021-12-29T09:20:03ZZ","params":{"resmsgid":"bc3f02f5-d550-42b0-904e-38eb671248ef","status":"successful"},"responseCode":"OK","result":{"identifier":"do_113441184591495168151","node_id":"do_113441184591495168151","versionKey":"1640769603462"}}