This method is used when you want to remove fast responses from the system. The “Id” value of the quick 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 “GetAllQuickReplies” method, you will not be able to see the record of the quick response you deleted.

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

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

Was this helpful?

0 / 0