Collection Copy
POST {{baseUrl}}/collection/v1/copy/{{collectionId}}
This API is associated with copy Collection on the Sunbird Platform .
- /Collection/ endpoint executes the Copy Collection
request based on parameters provided as metadata in the request body.
- The endpoint for Update Collection is /collection/v1/copy
- It points to knowledge-mw-service - /v1/collection/copy
- {...}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"=>{"collection"=>{"createdBy"=>"Test", "createdFor"=>["Sunbird"], "organisation"=>["Sunbird"], "framework"=>"test", "channel"=>"in.ekstep"}}}
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-Authenticated-User-Token
| string | | (Required) The Registered User ID used to execute the API. | |X-Channel-id
| string | | The unique ID provided to the State to which the user belongs. | |Authorization
| string | | (Required) All content APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API. | |Accept
| string | | |
RESPONSES
status: OK
{"id":"api.collection.copy","ver":"3.0","ts":"2022-01-06T07:27:47ZZ","params":{"resmsgid":"38bc39fd-86ce-4ca0-9509-f11d7f761bf1","status":"successful"},"responseCode":"OK","result":{"node_id":{"do_1134417529722552321144":"do_1134467917040271361183"},"versionKey":"1641454067281"}}