Copy Content

POST {{baseUrl}}/content/v2/copy/:Content_Id

This API is associated with copying a content on the Sunbird Platform . - The /copy/endpoint executes request for copy content, if content is found appropriate. - The endpoint for Copy Content is /content/v2/copy - It points to knowledge-mw-service - /v2/content/copy - It is mandatory to provide values for parameters marked with *. - Mandatory fields cannot be null or empty.

Request Body

{"request"=>{"content"=>{"createdBy"=>"user1", "createdFor"=>["user2"], "organisation"=>["sunbird"], "framework"=>"NCF"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring(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 to execute the API. | | 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.content.copy","ver":"1.0","ts":"2020-12-11T23:28:25.343Z","params":{"resmsgid":"90e788f0-3c08-11eb-b0a2-8d5c9f561887","msgid":"90b3f5d0-3c08-11eb-b0a2-8d5c9f561887","status":"successful","err":null,"errmsg":null},"responseCode":"OK","result":{"node_id":{"do_21316884557433241613378":"do_21317051846683852813814"},"versionKey":"1607729305036"}}