Publish Content
POST {{baseUrl}}/content/v2/publish/:Content_Id
This API is associated with publishing content on the Sunbird Platform .
- /publish/ endpoint executes the Publish Content
request based on parameters provided as metadata in the request body.
- The endpoint for Publish Content is /content/v1/publish
- It points to knowledge-mw-service - /v2/content/publish
- {...}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"=>{"lastPublishedBy"=>"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
- Multipart/form-data
- Application/x-www-form-urlencoded |
|
X-Authenticated-User-token
| string | | (Required) User Registered ID , which is used for logging In | |Authorization
| string | | (Required) Authorizing user in order to grant access. | |Accept
| string | | |
RESPONSES
status: OK
{"id":"api.v3.publish","ver":"1.0","ts":"2020-12-10T21:41:23.491Z","params":{"resmsgid":"72c4ef30-3b30-11eb-b0a2-8d5c9f561887","msgid":"72979da0-3b30-11eb-b0a2-8d5c9f561887","status":"successful","err":null,"errmsg":null},"responseCode":"OK","result":{"content_id":"do_21316975736724684813479","publishStatus":"Publish Operation for Content Id 'do_21316975736724684813479' Started Successfully!"}}