Content Discard
DELETE {{baseUrl}}/content/v2/discard/{{contentId}}
This API is associated with Discard Content on the Sunbird Platform .
- /Content/ endpoint executes the Discard Content
request based on parameters provided as metadata in the request body.
- The endpoint for Discard Content is /Content/v2/discard
- It points to knowledge-mw-service - /v2/Content/discard
- {...}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.
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. | |Accept
| string | | |
RESPONSES
status: OK
{"id":"api.content.discard","ver":"4.0","ts":"2022-01-06T06:41:51ZZ","params":{"resmsgid":"fc899cd5-958b-40ad-9a5c-6f31b65404b4","status":"successful"},"responseCode":"OK","result":{"identifier":"do_1134467341514588161171","message":"Draft version of the content with id : do_1134467341514588161171 is discarded","node_id":"do_1134467341514588161171"}}