Delete a Logo
DELETE https://restapi.actonsoftware.com/api/1/logo/{id}
This endpoint allows you to delete a logo in the account.
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization | header | false | true | String | Insert your generated access token. ("Bearer {access token}") |
LogoId | path | false | required | string | Specify the ID of the logo. |
Response
{ "status": "success", "message": "Logo i-5 has been deleted" }
Code Examples
cURLPythonJava
curl -X DELETE https://restapi.actonsoftware.com/api/1/logo/i-5 -H "Authorization: Bearer 8fc4376a-e7e8-3df8-b635-ee1762f14095"
import requests url = "https://restapi.actonsoftware.com/api/1/logo/i-5" payload = {} headers = { 'Authorization': 'Bearer b78d2252-8c86-3d8c-bd8e-ff62a6fc057c' } response = requests.request("DELETE", url, headers=headers, data = payload) print(response.text.encode('utf8'))
package content; import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.JsonNode; import com.mashape.unirest.http.Unirest; import com.mashape.unirest.http.exceptions.UnirestException; import org.json.JSONObject; import util.Utility; public class DeleteLogoExample { static String BASE_URL = "https://restapi.actonsoftware.com/api/1/"; public static void main(String[] args) { deleteLogo(); } public static void deleteLogo() { try { String accessToken = Utility.getAccessToken(); String id = "<Provide logo id>"; Unirest.setHttpClient(Utility.makeClient()); Unirest.setDefaultHeader("Authorization", "Bearer " + accessToken); HttpResponse<String> jsonResponse = Unirest.delete(BASE_URL + "logo/"+id) .header("accept", "application/json") .asString(); if(jsonResponse.getCode()==200){ String jsonResponseBody = jsonResponse.getBody(); System.out.println("The response body is : "+jsonResponseBody ); }else { System.out.println("The response is : "+ jsonResponse); } } catch (UnirestException e) { e.printStackTrace(); } } }