API References
...
Data Import & Export
Upload Import File
1 min
code examples curl location globoff request patch 'https //api nue io/cpq/async/imports/{jobid}/content' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "data" "" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "data" "" }); var requestoptions = { method 'patch', headers myheaders, body raw, redirect 'follow' }; fetch("https //api nue io/cpq/async/imports/{jobid}/content", 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 //api nue io/cpq/async/imports/{jobid}/content") https = net http new(url host, url port) https use ssl = true request = net http patch new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "data" "" }) response = https request(request) puts response read body import requests import json url = "https //api nue io/cpq/async/imports/{jobid}/content" payload = json dumps({ "data" "" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // ok // bad request