This method is used when you want to remove the smart answers in the system. The “Id” value of the smart reply to be deleted must be given in the “id” parameter.

Authorization header should be entered as “token_type” value returned as a result of token request, space character, “Access_token” value.

As a result of the request, a message that the deletion has been done is received. When you make a request to the ” GetAllSmartReplies” method, you will not be able to see the record of the smart reply you deleted.

private static IRestResponse DeleteAPISmartReplyByID()
     RestClient client = new RestClient("https://api.flexxii.com/");
     RestRequest request = new RestRequest("api/SmartReplies/DeleteAPISmartReplyByID", Method.DELETE);
     request.AddHeader("Content-Type", "application/json; charset=utf-8");
     request.AddParameter("id", smartReplyId);
     request.AddHeader("Authorization", content_type + " " + access_token);

     IRestResponse response = client.Execute(request);
     return response;

Was this helpful?

0 / 0