Apps And Solutions
Solution

Get Solution By Version ID

1min
code examples curl location globoff '/developer/solutions/versions/{solutionversionid}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("/developer/solutions/versions/{solutionversionid}", 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}") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = http request(request) puts response read body import requests import json url = "/developer/solutions/versions/{solutionversionid}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses { "solutionid" "solution\ b31414f1 bc40 42c9 bcc0 ed7a47126441", "versions" \[ { "createdat" "", "createdby" "", "updatedat" "", "updatedby" "", "iscopyrightfree" true, "displayname" "vehicle routing", "longdescription" "this is a solution for vehicle routing used to optimize routes for delivery", "shortdescription" "this is a solution for vehicle routing", "isconsolecompatible" true, "solutionid" "solutionversion\ b31414f1 bc40 42c9 bcc0 ed7a47126441", "solutionversionid" "solutionversion\ b31414f1 bc40 42c9 bcc0 ed7a47126441", "version" "1 0 0", "categories" \[ "" ], "phase" "draft", "images" \[ { "artifactid" "470d7bb7 4136 4fa5 8806 85d5f7ee2548", "filename" "icon png", "filedescription" "", "fileurl" "https //my app com/icon png", "filepath" "myapp/icon png" } ], "icon" \[ { "artifactid" "470d7bb7 4136 4fa5 8806 85d5f7ee2548", "filename" "icon png", "filedescription" "", "fileurl" "https //my app com/icon png", "filepath" "myapp/icon png" } ], "documents" \[ { "category" "draft", "document" {} } ], "configurations" \[ { "category" "solution configuration", "configurationfile" {} } ], "applications" \[ { "appid" "app\ bf17e158 1951 47f9 84f1 e50aeb59fac2", "appversionid" "appversion\ bf17e158 1951 47f9 84f1 e50aeb59fac2", "displayorder" 1, "initsequence" 1, "listingid" "", "semver" "" } ], "solutioninitializationconfiguration" {}, "visibility" {}, "solnurls" \[ { "name" "landingpage", "url" "https //www example com/landing page" } ], "systemappsettings" \[ "" ], "apis" \[ { "apibaseurl" "https //api example com", "apidetails" \[ { "name" "geocoder v1", "relativepath" "geocoder/v1" } ] } ], "listingid" "" } ], "solutiontype" "app", "productfamily" "", "supportedcountries" \[ "" ], "organizationid" "" }// user does not have access to the solution's org { "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 not found based on provided solution version id { "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" {} } }