Collection Reject

POST {{baseUrl}}/collection/v1/reject/{{collectionId}}

This API is associated with reject Collection on the Sunbird Platform . - /Collection/ endpoint executes the Reject Collection request based on parameters provided as metadata in the request body. - The endpoint for Reject Collection is /collection/v1/reject - It points to knowledge-mw-service - /v1/collection/reject - {...}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"=>{"rejectComment"=>"Collection rejected", "channel"=>"in.ekstep"}}}

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 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.review.reject","ver":"4.0","ts":"2022-01-06T07:04:33ZZ","params":{"resmsgid":"1fdef75e-9854-4dbb-a829-efb03debde84","status":"successful"},"responseCode":"OK","result":{"identifier":"do_11334223976733900811","node_id":"do_11334223976733900811"}}