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

DeleteAPILinkByID Sample Code (C#)
private static IRestResponse DeleteAPILinkByID()
{
RestClient client = new RestClient("https://api.flexxii.com");
RestRequest request = new RestRequest("api/Links/DeleteAPILinkByID", Method.DELETE);
request.AddHeader("Content-Type", "application/json; charset=utf-8");
request.AddParameter("id", linkId);
request.AddHeader("Authorization", content_type + " " + access_token);
IRestResponse response = client.Execute(request);
return response;
}
Was this helpful?
0 / 0