/UpdateAPILink

This method is used when you want to update the information of the links in the system. In json format, as in the “InsertAPILink” method, “Url” (Url to Direction), “Description” (Description) and “ImageUrl” (Image Url) parameters should be given in the body. The specified “linkId” parameter must be added.

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

As a result of the request, a message stating that the update has been made is received. When you make a request to the “GetAllLinks” method, you can see the record of the link you have updated.

UpdateAPILink Sample Code (C#)

private static IRestResponse UpdateAPILink()
            {
            RestClient client = new RestClient("https://api.flexxii.com");
            RestRequest request = new RestRequest("api/Links/UpdateAPILink", Method.PUT);
            request.AddHeader("Content-Type", "application/json; charset=utf-8");
            request.AddQueryParameter("linkId", linkId);
            request.AddJsonBody(new {  "Url": "string","Description": "string","ImageUrl": "string" });
            request.AddHeader("Authorization", content_type + " " + access_token);
            IRestResponse response = client.Execute(request);
            return response;
        }

Was this helpful?

0 / 0