Accept Flag

POST {{baseUrl}}/content/v2/flag/accept/:Content_Id

This API is associated with setting Accept Flag for content under review process on the Sunbird Platform . - The /flag/accept/endpoint executes request for flagging content under review to Accept flag, if content is found appropriate. - The endpoint for Flag Accept Content is /content/v2/flag/accept - It points to knowledge-mw-service - /v2/content/flag/accept - It is mandatory to provide values for parameters marked with *. - Mandatory fields cannot be null or empty.

Request Body

{"request"=>{"versionKey"=>"1507102327646"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring(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) 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.flag.accept","ver":"1.0","ts":"2020-12-11T11:40:01.464Z","params":{"resmsgid":"9a9e4b80-3ba5-11eb-b0a2-8d5c9f561887","msgid":"9a49e9f0-3ba5-11eb-b0a2-8d5c9f561887","status":"successful","err":null,"errmsg":null},"responseCode":"OK","result":{"identifier":"do_31221753157709004825531","node_id":"do_31221753157709004825531","versionKey":"1607686801161"}}