/DeleteAPITagByID

This method is used when you want to remove the tags in the system. The “Id” value of the tag 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 “GetAllTags” method, you will not be able to see the record for the tag you deleted.

private static IRestResponse DeleteAPITagByID()
        {
            RestClient client = new RestClient("http://api.flexxii.com/");
            RestRequest request = new RestRequest("api/Tags/DeleteAPITagByID", 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