Planning App APIs
Plan Metrics
Get plan metrics
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/planning/plan metrics' \\ \ 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("https //{tenantsubdomain}/tms/api/v1/planning/plan metrics", 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("https //{tenantsubdomain}/tms/api/v1/planning/plan metrics") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //{tenantsubdomain}/tms/api/v1/planning/plan metrics" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // plan metrics data { "data" { "lastrunat" { "id" "plans02\ f043fbf2 5cfe 5356 88bb 23ab547f7679", "uniquecode" "pxaryy", "owner" "os1devs", "createdat" 1754559546935, "createdby" { "id" "52df5ffd f9d5 44e3 84bf 775dae562395", "name" "aakash maheswari" }, "updatedat" 1754564562713, "updatedby" { "id" "3ca6d178 ce3b 4b5c 838a f5641ef085a1", "name" "reddi devi varaprasad" }, "entityname" "plans02", "tenantid" "os1devs", "appid" "app\ e963cd2a dd75 53c3 8a13 c8b305ff552e", "name" "planentity", "state" "pending\ pending", "status" "reviewed", "starttime" 1754559546648, "plansettings" { "ordersplit" true, "customersplit" true, "minweightutilization" 1, "minvolumeutilization" 1, "movementtype" \[ "" ], "planltl" false, "consolidateltl" false, "replanexistingload" true, "maxstops" 1, "stacking" false }, "facilitylist" \[ "" ], "autoconfirmloads" true }, "nextrunat" { "id" "spsettings01\ ceb4a8b6 8a21 5c29 951b 3dedc7595f48", "uniquecode" "rluay", "owner" "os1devs", "createdat" 1734421484615, "createdby" { "id" "3a6306d1 1b40 4cab 9337 c68c79949a03", "name" "rahul mehndirattamain" }, "updatedat" 1734421484615, "updatedby" { "id" "3a6306d1 1b40 4cab 9337 c68c79949a03", "name" "rahul mehndirattamain" }, "entityname" "spsettings01", "tenantid" "os1devs", "appid" "app\ e963cd2a dd75 53c3 8a13 c8b305ff552e", "facilitycode" "ggn", "plantime" 66840, "dispatchtime" 67020, "autoconfirmloads" true, "isdeleted" false, "facilitycodename" "agartala 799002" } }, "success" true }// internal server error
