Apps And Solutions
Solution

Delete List of Applications from Solution

1min
code examples curl location globoff request delete '/developer/solutions/versions/{solutionversionid}/apps' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "applications" \[ { "listingid" "" } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "applications" \[ { "listingid" "" } ] }); var requestoptions = { method 'delete', headers myheaders, body raw, redirect 'follow' }; fetch("/developer/solutions/versions/{solutionversionid}/apps", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("/developer/solutions/versions/{solutionversionid}/apps") http = net http new(url host, url port); request = net http delete new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "applications" \[ { "listingid" "" } ] }) response = http request(request) puts response read body import requests import json url = "/developer/solutions/versions/{solutionversionid}/apps" payload = json dumps({ "applications" \[ { "listingid" "" } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("delete", url, headers=headers, data=payload) print(response text) responses {}// something is wrong with the request { "error" { "description" "\[relevant error message here]", "additionalinfo" "\[relevant error message here]", "statuscode" 400, "timestamp" "2023 10 06t16 50 10 387z" }, "request" { "url" "", "method" "", "params" {}, "query" {}, "body" {} } }// user not authorized on the solution's organization { "error" { "description" "\[relevant error message here]", "additionalinfo" "\[relevant error message here]", "statuscode" 403, "timestamp" "2023 10 06t16 50 10 387z" }, "request" { "url" "", "method" "", "params" {}, "query" {}, "body" {} } }// solution version id or app listing id not found { "error" { "description" "\[relevant error message here]", "additionalinfo" "\[relevant error message here]", "statuscode" 404, "timestamp" "2023 10 06t16 50 10 387z" }, "request" { "url" "", "method" "", "params" {}, "query" {}, "body" {} } }