Update Content
PATCH {{baseUrl}}/content/v2/update/:Content_Id
This API is associated with updating content on the Sunbird Platform .
- /Update/ endpoint executes the Update Content
request based on parameters provided as metadata in the request body.
- The endpoint for Update Content is /content/v2/update
- It points to knowledge-mw-service - /v2/content/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"=>{"content"=>{"versionKey"=>"1607631400608", "description"=>"Updated description"}}}
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.content.update","ver":"4.0","ts":"2020-12-10T20:26:07ZZ","params":{"resmsgid":"80aa9310-b749-411c-a13b-8d9f25af389f","msgid":null,"err":null,"status":"successful","errmsg":null},"responseCode":"OK","result":{"identifier":"do_1131697204035993601314","node_id":"do_1131697204035993601314","versionKey":"1607631967842"}}