PUT https://:account.api-us1.com/api/3/configs/id
- cURL
curl --request PUT \
--url https:///:account.api-us1.com/api/3/configs/id
- Node
var request = require("request");
var options = { method: 'PUT',
url: 'https:///:account.api-us1.com/api/3/configs/id' };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
- Ruby
require 'uri'
require 'net/http'
url = URI("https:///:account.api-us1.com/api/3/configs/id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
response = http.request(request)
puts response.read_body
- JavaScript
var data = JSON.stringify(false);
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("PUT", "https:///:account.api-us1.com/api/3/configs/id");
xhr.send(data);
- Python
import requests
url = "https:///:account.api-us1.com/api/3/configs/id"
response = requests.request("PUT", url)
print(response.text)
200 OK
{
"config": {
"keyname": "pagination.users_index",
"section": "",
"item": "",
"userid": "1",
"val": "20",
"cdate": "2018-08-08T13:38:38-05:00",
"udate": "2018-09-20T14:07:07-05:00",
"links": {
"owner": "https://:account.api-us1.com/api/3/configs/6/owner"
},
"id": "6",
"owner": "1"
}
}
404 Not Found
PATH PARAMS
id REQUIRED
string ID of the config to edit
Opmerkingen
0 opmerkingen
Artikel is gesloten voor opmerkingen.