Asset Update
PATCH {{baseUrl}}/asset/v1/update/{{assetId}}
This API is associated with updating Asset on the Sunbird Platform .
- /Update/ endpoint executes the Update Asset
request based on parameters provided as metadata in the request body.
- The endpoint for Update Asset is /asset/v1/update
- It points to knowledge-mw-service - /v1/asset/update
- {...}refers to a section of review endpoint URL path that needs to be replaced by appropriate Id.
- It is mandatory to provide values for parameters marked with *.
- Mandatory fields cannot be null or empty.
Request Body
{"request"=>{"asset"=>{"name"=>"explanation content latests", "versionKey"=>"{{assetVersionKey}}"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
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.update","ver":"4.0","ts":"2021-12-29T09:24:27ZZ","params":{"resmsgid":"7302823d-669f-449e-a903-d03b5e3c307d","status":"successful"},"responseCode":"OK","result":{"identifier":"do_113441184591495168151","node_id":"do_113441184591495168151","versionKey":"1640769867533"}}