Asset Copy
POST {{baseUrl}}/asset/v1/copy/{{assetId}}
This API is associated with copying a asset on the Sunbird Platform .
- The /copy/endpoint executes request for copy asset, if asset is found appropriate.
- The endpoint for Copy Asset is /asset/v1/copy
- It points to knowledge-mw-service - /v1/asset/copy
- It is mandatory to provide values for parameters marked with *.
- Mandatory fields cannot be null or empty..
Request Body
{"request"=>{"content"=>{"publisher"=>"API_DOC_PUBLISHER", "lastPublishedBy"=>"API_DOC_PUBLISHER", "publishComment"=>"OK"}}}
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.copy","ver":"4.0","ts":"2021-12-30T11:42:05ZZ","params":{"resmsgid":"ab112c9f-bbb0-4493-a32d-040243b14a09","status":"successful"},"responseCode":"OK","result":{"node_id":{"do_1134418461689282561147":"do_1134419621916180481174"},"versionKey":"1640864525352"}}