Developer Docs
...
API Reference
Network Source
Bulk add / update network source(s)
code examples curl location 'https //data onxecta com/api/production/network/source' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "sourcenetworkid" "", "sourceid" "", "date" "", "downstreamsourceid" "", "enabled" "", "fluidgravityapi" "", "fluidgravitygas" "", "fluidsalinitywater" "", "rsi" "", "fluidmolarfracn2" "", "fluidmolarfracco2" "", "fluidmolarfrach2s" "", "condensategasratio" "", "watergasratio" "" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "sourcenetworkid" "", "sourceid" "", "date" "", "downstreamsourceid" "", "enabled" "", "fluidgravityapi" "", "fluidgravitygas" "", "fluidsalinitywater" "", "rsi" "", "fluidmolarfracn2" "", "fluidmolarfracco2" "", "fluidmolarfrach2s" "", "condensategasratio" "", "watergasratio" "" }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //data onxecta com/api/production/network/source", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));import requests import json url = "https //data onxecta com/api/production/network/source" payload = json dumps({ "sourcenetworkid" "", "sourceid" "", "date" "", "downstreamsourceid" "", "enabled" "", "fluidgravityapi" "", "fluidgravitygas" "", "fluidsalinitywater" "", "rsi" "", "fluidmolarfracn2" "", "fluidmolarfracco2" "", "fluidmolarfrach2s" "", "condensategasratio" "", "watergasratio" "" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) var options = new restclientoptions("https //data onxecta com") { maxtimeout = 1, }; var client = new restclient(options); var request = new restrequest("/api/production/network/source", method post); request addheader("accept", "application/json"); request addheader("content type", "application/json"); var body = @"{" + "\n" + @" ""sourcenetworkid"" """"," + "\n" + @" ""sourceid"" """"," + "\n" + @" ""date"" """"," + "\n" + @" ""downstreamsourceid"" """"," + "\n" + @" ""enabled"" """"," + "\n" + @" ""fluidgravityapi"" """"," + "\n" + @" ""fluidgravitygas"" """"," + "\n" + @" ""fluidsalinitywater"" """"," + "\n" + @" ""rsi"" """"," + "\n" + @" ""fluidmolarfracn2"" """"," + "\n" + @" ""fluidmolarfracco2"" """"," + "\n" + @" ""fluidmolarfrach2s"" """"," + "\n" + @" ""condensategasratio"" """"," + "\n" + @" ""watergasratio"" """"" + "\n" + @"}"; request addstringbody(body, dataformat json); restresponse response = await client executeasync(request); console writeline(response content);okhttpclient client = new okhttpclient() newbuilder() build(); mediatype mediatype = mediatype parse("application/json"); requestbody body = requestbody create(mediatype, "{\n \\"sourcenetworkid\\" \\"\\",\n \\"sourceid\\" \\"\\",\n \\"date\\" \\"\\",\n \\"downstreamsourceid\\" \\"\\",\n \\"enabled\\" \\"\\",\n \\"fluidgravityapi\\" \\"\\",\n \\"fluidgravitygas\\" \\"\\",\n \\"fluidsalinitywater\\" \\"\\",\n \\"rsi\\" \\"\\",\n \\"fluidmolarfracn2\\" \\"\\",\n \\"fluidmolarfracco2\\" \\"\\",\n \\"fluidmolarfrach2s\\" \\"\\",\n \\"condensategasratio\\" \\"\\",\n \\"watergasratio\\" \\"\\"\n}"); request request = new request builder() url("https //data onxecta com/api/production/network/source") method("post", body) addheader("accept", "application/json") addheader("content type", "application/json") build(); response response = client newcall(request) execute(); responses // ok \[ { "xid" "", "networkxid" "", "sourcenetworkid" "", "sourceid" "", "date" "", "downstreamsourceid" "", "enabled" false, "fluidgravityapi" "", "fluidgravitygas" "", "fluidsalinitywater" "", "rsi" "", "fluidmolarfracn2" "", "fluidmolarfracco2" "", "fluidmolarfrach2s" "", "condensategasratio" "", "watergasratio" "" } ]