Frontu API Sandbox
ClientApi/Task
Get full Task data with works, materials, etc.
1min
code examples curl location 'https //dev1 frontu com//client/api/v2/tasks/full' \\ \ 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 //dev1 frontu com//client/api/v2/tasks/full", 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 //dev1 frontu com//client/api/v2/tasks/full") 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 //dev1 frontu com//client/api/v2/tasks/full" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // returned when successful { "systemid" "", "code" "", "title" "", "clientname" "", "clientemail" "", "rating" 0, "agreement" false, "signaturetype" "", "signaturefile" "", "description" "", "abortmessage" "", "clientnote" "", "clientnotereply" "", "distance" 0, "workprice" 0, "workpricewithvat" 0, "routeprice" 0, "routepricewithvat" 0, "materialprice" 0, "materialpricewithvat" 0, "finalprice" 0, "finalpricewithvat" 0, "vat" 0, "currency" "", "status" 0, "stopstatusmessage" "", "plannedtime" "", "plannedendtime" "", "fetched" false, "time" "", "ended" "", "pastdue" false, "duration" 0, "durationfull" 0, "billdate" "", "billstatus" false, "reassigned" false, "filesexists" false, "user" { "title" "", "guid" "", "systemid" "" }, "formeruser" "", "assignor" "", "approvedby" "", "tasktype" { "title" "", "guid" "", "systemid" "" }, "workspace" { "title" "", "serialnumber" "", "guid" "", "systemid" "" }, "client" { "title" "", "companycode" "", "guid" "", "systemid" "" }, "works" \[ { "title" "", "description" "", "duration" 0, "suggestedduration" 0, "price" 0, "pricewithvat" 0, "user" { "title" "", "guid" "", "systemid" "" }, "standartizedwork" { "title" "", "guid" "", "systemid" "" }, "deleted" false, "worktype" 0, "guid" "", "systemid" "", "created" "", "updated" "", "equipment" { "title" "", "guid" "", "systemid" "", "serialnumber" "" } } ], "materials" \[ { "title" "", "description" "", "serialnumber" "", "amount" 0, "suggestedamount" 0, "price" 0, "pricewithvat" 0, "user" { "title" "", "guid" "", "systemid" "" }, "standartizedmaterial" { "title" "", "guid" "", "systemid" "" }, "deleted" false, "debited" false, "guid" "", "systemid" "", "created" "", "updated" "", "equipment" { "title" "", "guid" "", "systemid" "", "serialnumber" "" } } ], "routehistories" \[ { "distance" 0, "duration" 0, "price" 0, "pricewithvat" 0, "user" { "title" "", "guid" "", "systemid" "" }, "deleted" false, "guid" "", "systemid" "", "created" "", "updated" "" } ], "causes" \[ { "created" "", "cause" "" } ], "taskrequest" "", "createdby" "", "requireobjectcode" false, "requiresignature" false, "tasktypepriority" 0, "guid" "", "created" "", "updated" "", "version" 0, "deleted" false, "receivedbyexternalsystem" false, "helpers" \[ { "title" "", "guid" "", "systemid" "" } ], "tags" \[ {} ] }// entity not found