License Manager API
License Manager APIv1.0
Welcome! The License Manager API allows you to create users, modify their names and emails, as well as add and remove roles from users. ATTRIBUTES |Attribute name | Description | |:------------|--------------| |accountName | Account name in VTEX License Manager | |environment | Environment on which you want to run the query e.g. vtexcommercestable | |userId | Unique user identification string | |roleId | Integer that represents a role, can be looked up on the License Manager UI |
- Endpoints
- 12 (7 GET, 2 POST, 2 PUT, 1 DELETE)
- Base URL
https://vtex.local- Authentication
- API key
- Spec format
- OpenAPI 3.0.0
- API version
- 1.0
- Provider
- vtex.local
- Last updated
Use this API in Bruno:
- Download the Bruno collection above and unzip it.
- In Bruno, choose Open Collection and select the unzipped folder.
- Set the
baseUrlvariable (for examplehttps://vtex.local) and your API key credentials, then send requests.
GET
Get information about account
{{baseUrl}}/api/vlm/account
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/vlm/account");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/api/vlm/account")
require "http/client"
url = "{{baseUrl}}/api/vlm/account"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/api/vlm/account"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/vlm/account");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/vlm/account"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/api/vlm/account HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/vlm/account")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/vlm/account"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/api/vlm/account")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/vlm/account")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/api/vlm/account');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/api/vlm/account'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/vlm/account';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/vlm/account',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/api/vlm/account")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/vlm/account',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/api/vlm/account'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/api/vlm/account');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/api/vlm/account'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/vlm/account';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/vlm/account"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/vlm/account" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/vlm/account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/api/vlm/account');
echo $response->getBody();
setUrl('{{baseUrl}}/api/vlm/account');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/api/vlm/account');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/vlm/account' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/vlm/account' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/api/vlm/account")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/vlm/account"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/vlm/account"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/vlm/account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/api/vlm/account') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/vlm/account";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/api/vlm/account
http GET {{baseUrl}}/api/vlm/account
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/api/vlm/account
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/vlm/account")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"accountName": "apiexamples",
"address": null,
"appKey": {
"name": null,
"token": null
},
"appKeys": [
{
"appKey": "vtexappkey-apiexamples-YSTRGZ",
"appToken": null,
"createdIn": "2019-12-11T21:06:33",
"id": "03ccde55547d43b09bbb2e1e6f7d455e",
"isActive": true,
"isBlocked": false,
"label": "apiexamples"
},
{
"appKey": "vtexappkey-apiexamples-LVQVVA",
"appToken": null,
"createdIn": "2021-10-21T20:00:21.308679",
"id": "d585d6d94fd5415fb36c574a4c22986f",
"isActive": true,
"isBlocked": false,
"label": "tadashi-test"
}
],
"city": null,
"cnpj": null,
"companyName": "UNISUPER, SOCIEDAD ANONIMA",
"complement": null,
"contact": {
"email": "john.doe@vtex.com.br",
"name": "John Doe",
"phone": "+219999999"
},
"country": null,
"creationDate": "2019-12-11T17:02:34",
"defaultUrl": null,
"district": null,
"hasLogo": false,
"haveParentAccount": false,
"hosts": [],
"id": "71fe5fdabc4940ad81c226d43b754ba8",
"inactivationDate": null,
"isActive": true,
"isOperating": false,
"licenses": [
{
"expiration": null,
"id": 24,
"isPurchased": false,
"name": "Carrier",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 9,
"name": "Logistics"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 10,
"isPurchased": false,
"name": "CRM",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 3,
"name": "Master Data"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 17,
"name": "VTEX DWT"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 18,
"name": "Unikey"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 25,
"name": "Dynamic Storage"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 30,
"name": "Key Store"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 48,
"name": "VTEX Bridge"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 51,
"name": "Vtex My Account"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 67,
"name": "VTable"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 68,
"name": "Zendesk"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 8,
"isPurchased": false,
"name": "E-Commerce Professional",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 2,
"name": "Catalog"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 3,
"name": "Master Data"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 4,
"name": "Request Capture"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 5,
"name": "Checkout"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 6,
"name": "PCI Gateway"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 9,
"name": "Logistics"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 13,
"name": "Channels"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 16,
"name": "Rates and Benefits"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 17,
"name": "VTEX DWT"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 18,
"name": "Unikey"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 19,
"name": "OMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 20,
"name": "Conversation Tracker"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 25,
"name": "Dynamic Storage"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 27,
"name": "Portal"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 38,
"name": "CMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 48,
"name": "VTEX Bridge"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 50,
"name": "Suggestion"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 51,
"name": "Vtex My Account"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 53,
"name": "Network"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 57,
"name": "Insights"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 58,
"name": "Credit Control"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 61,
"name": "WebService"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 65,
"name": "Pricing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 67,
"name": "VTable"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 69,
"name": "Conditions Evaluator"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 70,
"name": "GiftCard"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 74,
"name": "Order Authorization"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 76,
"name": "Search"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 81,
"name": "Application Logs Stream"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 83,
"name": "Subscriptions"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 84,
"name": "CDN Service"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 85,
"name": "Dandelion"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 88,
"name": "Tenant Switcher"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 89,
"name": "Promotions Policy Engine"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 6,
"isPurchased": false,
"name": "E-Commerce Starter",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 2,
"name": "Catalog"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 3,
"name": "Master Data"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 4,
"name": "Request Capture"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 5,
"name": "Checkout"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 6,
"name": "PCI Gateway"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 7,
"name": "Buscapé Connect"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 9,
"name": "Logistics"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 13,
"name": "Channels"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 16,
"name": "Rates and Benefits"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 17,
"name": "VTEX DWT"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 18,
"name": "Unikey"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 19,
"name": "OMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 20,
"name": "Conversation Tracker"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 25,
"name": "Dynamic Storage"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 27,
"name": "Portal"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 38,
"name": "CMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 48,
"name": "VTEX Bridge"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 50,
"name": "Suggestion"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 51,
"name": "Vtex My Account"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 53,
"name": "Network"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 57,
"name": "Insights"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 58,
"name": "Credit Control"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 61,
"name": "WebService"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 65,
"name": "Pricing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 67,
"name": "VTable"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 68,
"name": "Zendesk"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 69,
"name": "Conditions Evaluator"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 70,
"name": "GiftCard"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 74,
"name": "Order Authorization"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 76,
"name": "Search"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 81,
"name": "Application Logs Stream"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 83,
"name": "Subscriptions"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 84,
"name": "CDN Service"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 85,
"name": "Dandelion"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 88,
"name": "Tenant Switcher"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 89,
"name": "Promotions Policy Engine"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 7,
"isPurchased": true,
"name": "E-Commerce Unlimited",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 2,
"name": "Catalog"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 3,
"name": "Master Data"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 4,
"name": "Request Capture"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 5,
"name": "Checkout"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 6,
"name": "PCI Gateway"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 7,
"name": "Buscapé Connect"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 8,
"name": "VTEX Events"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 9,
"name": "Logistics"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 10,
"name": "Shipping Notification"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 13,
"name": "Channels"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 15,
"name": "VTEX Fulfilment"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 16,
"name": "Rates and Benefits"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 17,
"name": "VTEX DWT"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 18,
"name": "Unikey"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 19,
"name": "OMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 20,
"name": "Conversation Tracker"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 22,
"name": "VtexID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 25,
"name": "Dynamic Storage"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 27,
"name": "Portal"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 28,
"name": "Dumbo"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 30,
"name": "Key Store"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 31,
"name": "Dashboard"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 37,
"name": "Vtex PAI"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 38,
"name": "CMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 39,
"name": "Availability"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 41,
"name": "Big Data"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 45,
"name": "Healthcheck"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 46,
"name": "VTEX Home"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 48,
"name": "VTEX Bridge"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 50,
"name": "Suggestion"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 51,
"name": "Vtex My Account"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 53,
"name": "Network"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 57,
"name": "Insights"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 58,
"name": "Credit Control"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 60,
"name": "Extension Store"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 61,
"name": "WebService"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 65,
"name": "Pricing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 67,
"name": "VTable"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 68,
"name": "Zendesk"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 69,
"name": "Conditions Evaluator"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 70,
"name": "GiftCard"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 74,
"name": "Order Authorization"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 76,
"name": "Search"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 81,
"name": "Application Logs Stream"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 83,
"name": "Subscriptions"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 84,
"name": "CDN Service"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 85,
"name": "Dandelion"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 88,
"name": "Tenant Switcher"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 89,
"name": "Promotions Policy Engine"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 28,
"isPurchased": false,
"name": "E-Commerce Unlimited No Billing",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 2,
"name": "Catalog"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 3,
"name": "Master Data"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 4,
"name": "Request Capture"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 5,
"name": "Checkout"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 6,
"name": "PCI Gateway"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 7,
"name": "Buscapé Connect"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 8,
"name": "VTEX Events"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 9,
"name": "Logistics"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 10,
"name": "Shipping Notification"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 13,
"name": "Channels"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 15,
"name": "VTEX Fulfilment"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 16,
"name": "Rates and Benefits"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 17,
"name": "VTEX DWT"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 18,
"name": "Unikey"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 19,
"name": "OMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 20,
"name": "Conversation Tracker"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 22,
"name": "VtexID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 25,
"name": "Dynamic Storage"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 27,
"name": "Portal"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 28,
"name": "Dumbo"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 30,
"name": "Key Store"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 31,
"name": "Dashboard"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 37,
"name": "Vtex PAI"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 38,
"name": "CMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 39,
"name": "Availability"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 41,
"name": "Big Data"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 45,
"name": "Healthcheck"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 46,
"name": "VTEX Home"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 48,
"name": "VTEX Bridge"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 50,
"name": "Suggestion"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 51,
"name": "Vtex My Account"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 53,
"name": "Network"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 57,
"name": "Insights"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 58,
"name": "Credit Control"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 60,
"name": "Extension Store"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 61,
"name": "WebService"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 65,
"name": "Pricing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 67,
"name": "VTable"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 68,
"name": "Zendesk"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 69,
"name": "Conditions Evaluator"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 70,
"name": "GiftCard"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 74,
"name": "Order Authorization"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 76,
"name": "Search"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 81,
"name": "Application Logs Stream"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 83,
"name": "Subscriptions"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 84,
"name": "CDN Service"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 88,
"name": "Tenant Switcher"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 89,
"name": "Promotions Policy Engine"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 11,
"isPurchased": false,
"name": "Gateway",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 6,
"name": "PCI Gateway"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 8,
"name": "VTEX Events"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 16,
"name": "Rates and Benefits"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 17,
"name": "VTEX DWT"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 18,
"name": "Unikey"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 22,
"name": "VtexID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 48,
"name": "VTEX Bridge"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 89,
"name": "Promotions Policy Engine"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 15,
"isPurchased": false,
"name": "Gateway Seller Nao VTEX",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 6,
"name": "PCI Gateway"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 8,
"name": "VTEX Events"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 16,
"name": "Rates and Benefits"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 17,
"name": "VTEX DWT"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 18,
"name": "Unikey"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 22,
"name": "VtexID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 48,
"name": "VTEX Bridge"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 89,
"name": "Promotions Policy Engine"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 29,
"isPurchased": false,
"name": "Indeva",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 30,
"isPurchased": false,
"name": "Marketplace Seller",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 2,
"name": "Catalog"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 5,
"name": "Checkout"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 6,
"name": "PCI Gateway"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 9,
"name": "Logistics"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 13,
"name": "Channels"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 16,
"name": "Rates and Benefits"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 19,
"name": "OMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 20,
"name": "Conversation Tracker"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 46,
"name": "VTEX Home"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 65,
"name": "Pricing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 74,
"name": "Order Authorization"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 86,
"name": "CatalogV2"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 89,
"name": "Promotions Policy Engine"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 23,
"isPurchased": false,
"name": "VTEX Backoffice",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 84,
"name": "CDN Service"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 88,
"name": "Tenant Switcher"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 90,
"name": "Payments' Provider Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 26,
"isPurchased": false,
"name": "VTEX Bank",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 82,
"name": "Banking Service"
}
]
},
{
"expiration": null,
"id": 22,
"isPurchased": false,
"name": "VTEX Billing",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
}
]
},
{
"expiration": null,
"id": 27,
"isPurchased": false,
"name": "VTEX Partner",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 88,
"name": "Tenant Switcher"
}
]
},
{
"expiration": null,
"id": 25,
"isPurchased": false,
"name": "VTEX Payment",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 72,
"name": "VTEX Payment"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
}
]
},
{
"expiration": null,
"id": 19,
"isPurchased": false,
"name": "WhiteLabel",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 2,
"name": "Catalog"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 3,
"name": "Master Data"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 5,
"name": "Checkout"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 6,
"name": "PCI Gateway"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 9,
"name": "Logistics"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 16,
"name": "Rates and Benefits"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 19,
"name": "OMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 25,
"name": "Dynamic Storage"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 27,
"name": "Portal"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 39,
"name": "Availability"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 57,
"name": "Insights"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 65,
"name": "Pricing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 67,
"name": "VTable"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 68,
"name": "Zendesk"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 74,
"name": "Order Authorization"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 76,
"name": "Search"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 81,
"name": "Application Logs Stream"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 89,
"name": "Promotions Policy Engine"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 21,
"isPurchased": false,
"name": "Whitelabel Instore",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 2,
"name": "Catalog"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 14,
"name": "Log"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 73,
"name": "Seller Register"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 75,
"name": "Time Series"
}
]
},
{
"expiration": null,
"id": 31,
"isPurchased": false,
"name": "Marketplace Seller Whitelabel",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 2,
"name": "Catalog"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 5,
"name": "Checkout"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 6,
"name": "PCI Gateway"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 9,
"name": "Logistics"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 16,
"name": "Rates and Benefits"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 19,
"name": "OMS"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 20,
"name": "Conversation Tracker"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 23,
"name": "Message Center"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 43,
"name": "Billing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 46,
"name": "VTEX Home"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 65,
"name": "Pricing"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 66,
"name": "VTEX IO"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 74,
"name": "Order Authorization"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 86,
"name": "CatalogV2"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 89,
"name": "Promotions Policy Engine"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
},
{
"expiration": null,
"id": 33,
"isPurchased": false,
"name": "Buyer Organization",
"products": [
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 1,
"name": "License Manager"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 55,
"name": "Audit"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 64,
"name": "Vtex ID"
},
{
"domains": [],
"endpoints": {
"consoleUrl": null,
"webApiUrl": null
},
"id": 91,
"name": "Releases"
}
]
}
],
"logo": null,
"lv": null,
"name": "UNISUPER, SOCIEDAD ANONIMA",
"number": null,
"operationDate": null,
"parentAccountId": null,
"parentAccountName": null,
"postalCode": null,
"sites": [
{
"LV": null,
"aliases": [],
"domains": null,
"hosts": [],
"id": 23117,
"logo": null,
"monetaryUnitId": 1,
"name": "apiexamples",
"tradingName": "UNISUPER, SOCIEDAD ANONIMA"
}
],
"sponsor": {
"email": "john.doe@vtex.com.br",
"name": "John Doe",
"phone": "+219999999"
},
"state": null,
"telephone": "+219999999",
"tradingName": "UNISUPER, SOCIEDAD ANONIMA"
}
POST
Create new appkey
{{baseUrl}}/api/vlm/appkeys
BODY json
{
"label": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/vlm/appkeys");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"label\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/api/vlm/appkeys" {:content-type :json
:form-params {:label ""}})
require "http/client"
url = "{{baseUrl}}/api/vlm/appkeys"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"label\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/api/vlm/appkeys"),
Content = new StringContent("{\n \"label\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/vlm/appkeys");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"label\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/vlm/appkeys"
payload := strings.NewReader("{\n \"label\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/api/vlm/appkeys HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 17
{
"label": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/vlm/appkeys")
.setHeader("content-type", "application/json")
.setBody("{\n \"label\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/vlm/appkeys"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"label\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"label\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/api/vlm/appkeys")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/vlm/appkeys")
.header("content-type", "application/json")
.body("{\n \"label\": \"\"\n}")
.asString();
const data = JSON.stringify({
label: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/api/vlm/appkeys');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/api/vlm/appkeys',
headers: {'content-type': 'application/json'},
data: {label: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/vlm/appkeys';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"label":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/vlm/appkeys',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "label": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"label\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/api/vlm/appkeys")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/vlm/appkeys',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({label: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/api/vlm/appkeys',
headers: {'content-type': 'application/json'},
body: {label: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/api/vlm/appkeys');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
label: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/api/vlm/appkeys',
headers: {'content-type': 'application/json'},
data: {label: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/vlm/appkeys';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"label":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"label": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/vlm/appkeys"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/vlm/appkeys" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"label\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/vlm/appkeys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'label' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/api/vlm/appkeys', [
'body' => '{
"label": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/vlm/appkeys');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'label' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'label' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/vlm/appkeys');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/vlm/appkeys' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"label": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/vlm/appkeys' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"label": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"label\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/api/vlm/appkeys", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/vlm/appkeys"
payload = { "label": "" }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/vlm/appkeys"
payload <- "{\n \"label\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/vlm/appkeys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"label\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/api/vlm/appkeys') do |req|
req.body = "{\n \"label\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/vlm/appkeys";
let payload = json!({"label": ""});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/api/vlm/appkeys \
--header 'content-type: application/json' \
--data '{
"label": ""
}'
echo '{
"label": ""
}' | \
http POST {{baseUrl}}/api/vlm/appkeys \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "label": ""\n}' \
--output-document \
- {{baseUrl}}/api/vlm/appkeys
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["label": ""] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/vlm/appkeys")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"appKey": "vtexappkey-myaccount-ORYNWX",
"appToken": "WNVUJKYFKJFLTPXHQGAZDHPBHSDQVJJWSFZUBOGCKPEXAIFHTPANKJTOXUKRIIJAAJSOPCFBAXOODRABMUXFJVLJLKWGEOUCFDXRPRRQKYNNUFLGTIEOKERFXJCFFYXL",
"createdIn": "2018-07-04T14:09:08.2718405Z",
"id": "a2555e95-9db8-48be-94f8-2a28577c0b4a",
"isActive": true,
"label": "my new appkey"
}
GET
Get appKeys from account
{{baseUrl}}/api/vlm/appkeys
HEADERS
Content-Type
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/vlm/appkeys");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/api/vlm/appkeys" {:headers {:content-type ""}})
require "http/client"
url = "{{baseUrl}}/api/vlm/appkeys"
headers = HTTP::Headers{
"content-type" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/api/vlm/appkeys"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/vlm/appkeys");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/vlm/appkeys"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/api/vlm/appkeys HTTP/1.1
Content-Type:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/vlm/appkeys")
.setHeader("content-type", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/vlm/appkeys"))
.header("content-type", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/api/vlm/appkeys")
.get()
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/vlm/appkeys")
.header("content-type", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/api/vlm/appkeys');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/api/vlm/appkeys',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/vlm/appkeys';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/vlm/appkeys',
method: 'GET',
headers: {
'content-type': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/api/vlm/appkeys")
.get()
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/vlm/appkeys',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/api/vlm/appkeys',
headers: {'content-type': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/api/vlm/appkeys');
req.headers({
'content-type': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/api/vlm/appkeys',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/vlm/appkeys';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/vlm/appkeys"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/vlm/appkeys" in
let headers = Header.add (Header.init ()) "content-type" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/vlm/appkeys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/api/vlm/appkeys', [
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/vlm/appkeys');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'content-type' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/api/vlm/appkeys');
$request->setRequestMethod('GET');
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/vlm/appkeys' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/vlm/appkeys' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'content-type': "" }
conn.request("GET", "/baseUrl/api/vlm/appkeys", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/vlm/appkeys"
headers = {"content-type": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/vlm/appkeys"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/vlm/appkeys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["content-type"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/api/vlm/appkeys') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/vlm/appkeys";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/api/vlm/appkeys \
--header 'content-type: '
http GET {{baseUrl}}/api/vlm/appkeys \
content-type:''
wget --quiet \
--method GET \
--header 'content-type: ' \
--output-document \
- {{baseUrl}}/api/vlm/appkeys
import Foundation
let headers = ["content-type": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/vlm/appkeys")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"appKey": "vtexappkey-myaccount-ORYNWX",
"createdIn": "2018-07-04T14:09:08.2718405Z",
"id": "a2555e95-9db8-48be-94f8-2a28577c0b4a",
"isActive": true,
"label": "my new appkey"
},
{
"appKey": "vtexappkey-myaccount-ORKPDC",
"createdIn": "2018-07-04T14:09:08.2718405Z",
"id": "a2555e95-9db8-48be-94f8-2a28577c0b4a",
"isActive": true,
"label": "my other appkey"
}
]
PUT
Update appkey
{{baseUrl}}/api/vlm/appkeys/:id
QUERY PARAMS
id
BODY json
{
"isActive": false
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/vlm/appkeys/:id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"isActive\": false\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/api/vlm/appkeys/:id" {:content-type :json
:form-params {:isActive false}})
require "http/client"
url = "{{baseUrl}}/api/vlm/appkeys/:id"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"isActive\": false\n}"
response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/api/vlm/appkeys/:id"),
Content = new StringContent("{\n \"isActive\": false\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/vlm/appkeys/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"isActive\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/vlm/appkeys/:id"
payload := strings.NewReader("{\n \"isActive\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/api/vlm/appkeys/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23
{
"isActive": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/api/vlm/appkeys/:id")
.setHeader("content-type", "application/json")
.setBody("{\n \"isActive\": false\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/vlm/appkeys/:id"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"isActive\": false\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"isActive\": false\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/api/vlm/appkeys/:id")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/api/vlm/appkeys/:id")
.header("content-type", "application/json")
.body("{\n \"isActive\": false\n}")
.asString();
const data = JSON.stringify({
isActive: false
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/api/vlm/appkeys/:id');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/api/vlm/appkeys/:id',
headers: {'content-type': 'application/json'},
data: {isActive: false}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/vlm/appkeys/:id';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"isActive":false}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/vlm/appkeys/:id',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "isActive": false\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"isActive\": false\n}")
val request = Request.Builder()
.url("{{baseUrl}}/api/vlm/appkeys/:id")
.put(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/vlm/appkeys/:id',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({isActive: false}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/api/vlm/appkeys/:id',
headers: {'content-type': 'application/json'},
body: {isActive: false},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/api/vlm/appkeys/:id');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
isActive: false
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/api/vlm/appkeys/:id',
headers: {'content-type': 'application/json'},
data: {isActive: false}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/vlm/appkeys/:id';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"isActive":false}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"isActive": @NO };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/vlm/appkeys/:id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/vlm/appkeys/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"isActive\": false\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/vlm/appkeys/:id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'isActive' => null
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/api/vlm/appkeys/:id', [
'body' => '{
"isActive": false
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/vlm/appkeys/:id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'isActive' => null
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'isActive' => null
]));
$request->setRequestUrl('{{baseUrl}}/api/vlm/appkeys/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/vlm/appkeys/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"isActive": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/vlm/appkeys/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"isActive": false
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"isActive\": false\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/api/vlm/appkeys/:id", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/vlm/appkeys/:id"
payload = { "isActive": False }
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/vlm/appkeys/:id"
payload <- "{\n \"isActive\": false\n}"
encode <- "json"
response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/vlm/appkeys/:id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"isActive\": false\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.put('/baseUrl/api/vlm/appkeys/:id') do |req|
req.body = "{\n \"isActive\": false\n}"
end
puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/vlm/appkeys/:id";
let payload = json!({"isActive": false});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/api/vlm/appkeys/:id \
--header 'content-type: application/json' \
--data '{
"isActive": false
}'
echo '{
"isActive": false
}' | \
http PUT {{baseUrl}}/api/vlm/appkeys/:id \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "isActive": false\n}' \
--output-document \
- {{baseUrl}}/api/vlm/appkeys/:id
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["isActive": false] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/vlm/appkeys/:id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"Details": null,
"HttpStatusCode": 400,
"Message": "Token not exists for this account",
"VLMErrorCode": 17
}
GET
Get List of Roles
{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged
HEADERS
Content-Type
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged" {:headers {:content-type ""}})
require "http/client"
url = "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged"
headers = HTTP::Headers{
"content-type" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/api/license-manager/site/pvt/roles/list/paged HTTP/1.1
Content-Type:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged")
.setHeader("content-type", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged"))
.header("content-type", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged")
.get()
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged")
.header("content-type", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged',
method: 'GET',
headers: {
'content-type': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged")
.get()
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/license-manager/site/pvt/roles/list/paged',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged',
headers: {'content-type': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged');
req.headers({
'content-type': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged" in
let headers = Header.add (Header.init ()) "content-type" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged', [
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'content-type' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged');
$request->setRequestMethod('GET');
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'content-type': "" }
conn.request("GET", "/baseUrl/api/license-manager/site/pvt/roles/list/paged", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged"
headers = {"content-type": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["content-type"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/api/license-manager/site/pvt/roles/list/paged') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/api/license-manager/site/pvt/roles/list/paged \
--header 'content-type: '
http GET {{baseUrl}}/api/license-manager/site/pvt/roles/list/paged \
content-type:''
wget --quiet \
--method GET \
--header 'content-type: ' \
--output-document \
- {{baseUrl}}/api/license-manager/site/pvt/roles/list/paged
import Foundation
let headers = ["content-type": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/license-manager/site/pvt/roles/list/paged")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"items": [
{
"id": 957,
"isAdmin": false,
"logins": null,
"name": "Call center operator",
"products": [
{
"categoryId": null,
"categoryName": null,
"consoleUrlMask": null,
"description": null,
"id": null,
"name": "Catalog",
"productResources": null,
"url": null,
"urlConfiguration": null,
"webApiUrlMask": null
},
{
"categoryId": null,
"categoryName": null,
"consoleUrlMask": null,
"description": null,
"id": null,
"name": "OMS",
"productResources": null,
"url": null,
"urlConfiguration": null,
"webApiUrlMask": null
}
],
"resources": null,
"roleType": 0
}
],
"paging": {
"page": 1,
"pages": 1,
"perPage": 1,
"total": 1
}
}
GET
Get Roles by User-appKey
{{baseUrl}}/api/license-manager/users/:userId/roles
HEADERS
Content-Type
QUERY PARAMS
userId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/license-manager/users/:userId/roles");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/api/license-manager/users/:userId/roles" {:headers {:content-type ""}})
require "http/client"
url = "{{baseUrl}}/api/license-manager/users/:userId/roles"
headers = HTTP::Headers{
"content-type" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/api/license-manager/users/:userId/roles"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/license-manager/users/:userId/roles");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/license-manager/users/:userId/roles"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/api/license-manager/users/:userId/roles HTTP/1.1
Content-Type:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/license-manager/users/:userId/roles")
.setHeader("content-type", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/license-manager/users/:userId/roles"))
.header("content-type", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/api/license-manager/users/:userId/roles")
.get()
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/license-manager/users/:userId/roles")
.header("content-type", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/api/license-manager/users/:userId/roles');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/users/:userId/roles',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/license-manager/users/:userId/roles';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/license-manager/users/:userId/roles',
method: 'GET',
headers: {
'content-type': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/api/license-manager/users/:userId/roles")
.get()
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/license-manager/users/:userId/roles',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/users/:userId/roles',
headers: {'content-type': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/api/license-manager/users/:userId/roles');
req.headers({
'content-type': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/users/:userId/roles',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/license-manager/users/:userId/roles';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/license-manager/users/:userId/roles"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/license-manager/users/:userId/roles" in
let headers = Header.add (Header.init ()) "content-type" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/license-manager/users/:userId/roles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/api/license-manager/users/:userId/roles', [
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/license-manager/users/:userId/roles');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'content-type' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/api/license-manager/users/:userId/roles');
$request->setRequestMethod('GET');
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/license-manager/users/:userId/roles' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/license-manager/users/:userId/roles' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'content-type': "" }
conn.request("GET", "/baseUrl/api/license-manager/users/:userId/roles", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/license-manager/users/:userId/roles"
headers = {"content-type": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/license-manager/users/:userId/roles"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/license-manager/users/:userId/roles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["content-type"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/api/license-manager/users/:userId/roles') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/license-manager/users/:userId/roles";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/api/license-manager/users/:userId/roles \
--header 'content-type: '
http GET {{baseUrl}}/api/license-manager/users/:userId/roles \
content-type:''
wget --quiet \
--method GET \
--header 'content-type: ' \
--output-document \
- {{baseUrl}}/api/license-manager/users/:userId/roles
import Foundation
let headers = ["content-type": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/license-manager/users/:userId/roles")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"id": 957,
"name": "Call center operator"
},
{
"id": 1,
"name": "Owner (Admin Super)"
}
]
PUT
Put Roles in User-appKey
{{baseUrl}}/api/license-manager/users/:userId/roles
QUERY PARAMS
userId
BODY json
[
{}
]
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/license-manager/users/:userId/roles");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "[\n {}\n]");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/api/license-manager/users/:userId/roles" {:content-type :json
:form-params [{}]})
require "http/client"
url = "{{baseUrl}}/api/license-manager/users/:userId/roles"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "[\n {}\n]"
response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/api/license-manager/users/:userId/roles"),
Content = new StringContent("[\n {}\n]")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/license-manager/users/:userId/roles");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n {}\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/license-manager/users/:userId/roles"
payload := strings.NewReader("[\n {}\n]")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/api/license-manager/users/:userId/roles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 8
[
{}
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/api/license-manager/users/:userId/roles")
.setHeader("content-type", "application/json")
.setBody("[\n {}\n]")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/license-manager/users/:userId/roles"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("[\n {}\n]"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n {}\n]");
Request request = new Request.Builder()
.url("{{baseUrl}}/api/license-manager/users/:userId/roles")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/api/license-manager/users/:userId/roles")
.header("content-type", "application/json")
.body("[\n {}\n]")
.asString();
const data = JSON.stringify([
{}
]);
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/api/license-manager/users/:userId/roles');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/api/license-manager/users/:userId/roles',
headers: {'content-type': 'application/json'},
data: [{}]
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/license-manager/users/:userId/roles';
const options = {method: 'PUT', headers: {'content-type': 'application/json'}, body: '[{}]'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/license-manager/users/:userId/roles',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '[\n {}\n]'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n {}\n]")
val request = Request.Builder()
.url("{{baseUrl}}/api/license-manager/users/:userId/roles")
.put(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/license-manager/users/:userId/roles',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify([{}]));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/api/license-manager/users/:userId/roles',
headers: {'content-type': 'application/json'},
body: [{}],
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/api/license-manager/users/:userId/roles');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send([
{}
]);
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/api/license-manager/users/:userId/roles',
headers: {'content-type': 'application/json'},
data: [{}]
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/license-manager/users/:userId/roles';
const options = {method: 'PUT', headers: {'content-type': 'application/json'}, body: '[{}]'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @[ @{ } ];
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/license-manager/users/:userId/roles"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/license-manager/users/:userId/roles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n {}\n]" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/license-manager/users/:userId/roles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
[
]
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/api/license-manager/users/:userId/roles', [
'body' => '[
{}
]',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/license-manager/users/:userId/roles');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
[
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
[
]
]));
$request->setRequestUrl('{{baseUrl}}/api/license-manager/users/:userId/roles');
$request->setRequestMethod('PUT');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/license-manager/users/:userId/roles' -Method PUT -Headers $headers -ContentType 'application/json' -Body '[
{}
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/license-manager/users/:userId/roles' -Method PUT -Headers $headers -ContentType 'application/json' -Body '[
{}
]'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "[\n {}\n]"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/api/license-manager/users/:userId/roles", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/license-manager/users/:userId/roles"
payload = [{}]
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/license-manager/users/:userId/roles"
payload <- "[\n {}\n]"
encode <- "json"
response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/license-manager/users/:userId/roles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "[\n {}\n]"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.put('/baseUrl/api/license-manager/users/:userId/roles') do |req|
req.body = "[\n {}\n]"
end
puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/license-manager/users/:userId/roles";
let payload = (json!({}));
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/api/license-manager/users/:userId/roles \
--header 'content-type: application/json' \
--data '[
{}
]'
echo '[
{}
]' | \
http PUT {{baseUrl}}/api/license-manager/users/:userId/roles \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '[\n {}\n]' \
--output-document \
- {{baseUrl}}/api/license-manager/users/:userId/roles
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [[]] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/license-manager/users/:userId/roles")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"Message": "Roles list contains roles that do not exist in this account"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"Message": "Unexpected error"
}
DELETE
Remove Role from User-appKey
{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId
HEADERS
Content-Type
QUERY PARAMS
userId
roleId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId" {:headers {:content-type ""}})
require "http/client"
url = "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId"
headers = HTTP::Headers{
"content-type" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/api/license-manager/users/:userId/roles/:roleId HTTP/1.1
Content-Type:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId")
.setHeader("content-type", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId"))
.header("content-type", "")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId")
.delete(null)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId")
.header("content-type", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId';
const options = {method: 'DELETE', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId',
method: 'DELETE',
headers: {
'content-type': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId")
.delete(null)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/license-manager/users/:userId/roles/:roleId',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId',
headers: {'content-type': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId');
req.headers({
'content-type': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId';
const options = {method: 'DELETE', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId" in
let headers = Header.add (Header.init ()) "content-type" "" in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId', [
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'content-type' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'content-type': "" }
conn.request("DELETE", "/baseUrl/api/license-manager/users/:userId/roles/:roleId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId"
headers = {"content-type": ""}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["content-type"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/api/license-manager/users/:userId/roles/:roleId') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/api/license-manager/users/:userId/roles/:roleId \
--header 'content-type: '
http DELETE {{baseUrl}}/api/license-manager/users/:userId/roles/:roleId \
content-type:''
wget --quiet \
--method DELETE \
--header 'content-type: ' \
--output-document \
- {{baseUrl}}/api/license-manager/users/:userId/roles/:roleId
import Foundation
let headers = ["content-type": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/license-manager/users/:userId/roles/:roleId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"Message": "Invalid UserId"
}
GET
Get Stores
{{baseUrl}}/api/vlm/account/stores
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/vlm/account/stores");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/api/vlm/account/stores")
require "http/client"
url = "{{baseUrl}}/api/vlm/account/stores"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/api/vlm/account/stores"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/vlm/account/stores");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/vlm/account/stores"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/api/vlm/account/stores HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/vlm/account/stores")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/vlm/account/stores"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/api/vlm/account/stores")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/vlm/account/stores")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/api/vlm/account/stores');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/api/vlm/account/stores'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/vlm/account/stores';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/vlm/account/stores',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/api/vlm/account/stores")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/vlm/account/stores',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/api/vlm/account/stores'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/api/vlm/account/stores');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/api/vlm/account/stores'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/vlm/account/stores';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/vlm/account/stores"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/vlm/account/stores" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/vlm/account/stores",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/api/vlm/account/stores');
echo $response->getBody();
setUrl('{{baseUrl}}/api/vlm/account/stores');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/api/vlm/account/stores');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/vlm/account/stores' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/vlm/account/stores' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/api/vlm/account/stores")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/vlm/account/stores"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/vlm/account/stores"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/vlm/account/stores")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/api/vlm/account/stores') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/vlm/account/stores";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/api/vlm/account/stores
http GET {{baseUrl}}/api/vlm/account/stores
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/api/vlm/account/stores
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/vlm/account/stores")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
[
{
"hosts": [
"loja.ambientecrm.com.br",
"www.ambientecrm.com.br"
],
"id": 1213,
"name": "ambientecrm"
},
{
"hosts": [
"loja.blackbox.com.br",
"www.blackbox.com.br"
],
"id": 213,
"name": "ambienteqa"
}
]
POST
Create User
{{baseUrl}}/api/license-manager/users
BODY json
{
"email": "",
"name": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/license-manager/users");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"email\": \"\",\n \"name\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/api/license-manager/users" {:content-type :json
:form-params {:email ""
:name ""}})
require "http/client"
url = "{{baseUrl}}/api/license-manager/users"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"email\": \"\",\n \"name\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/api/license-manager/users"),
Content = new StringContent("{\n \"email\": \"\",\n \"name\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/license-manager/users");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"email\": \"\",\n \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/license-manager/users"
payload := strings.NewReader("{\n \"email\": \"\",\n \"name\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/api/license-manager/users HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 31
{
"email": "",
"name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/license-manager/users")
.setHeader("content-type", "application/json")
.setBody("{\n \"email\": \"\",\n \"name\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/license-manager/users"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"email\": \"\",\n \"name\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"email\": \"\",\n \"name\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/api/license-manager/users")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/license-manager/users")
.header("content-type", "application/json")
.body("{\n \"email\": \"\",\n \"name\": \"\"\n}")
.asString();
const data = JSON.stringify({
email: '',
name: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/api/license-manager/users');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/api/license-manager/users',
headers: {'content-type': 'application/json'},
data: {email: '', name: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/license-manager/users';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"email":"","name":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/license-manager/users',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "email": "",\n "name": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"email\": \"\",\n \"name\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/api/license-manager/users")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/license-manager/users',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({email: '', name: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/api/license-manager/users',
headers: {'content-type': 'application/json'},
body: {email: '', name: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/api/license-manager/users');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
email: '',
name: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/api/license-manager/users',
headers: {'content-type': 'application/json'},
data: {email: '', name: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/license-manager/users';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"email":"","name":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"email": @"",
@"name": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/license-manager/users"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/license-manager/users" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"email\": \"\",\n \"name\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/license-manager/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '',
'name' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/api/license-manager/users', [
'body' => '{
"email": "",
"name": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/license-manager/users');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'email' => '',
'name' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'email' => '',
'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/license-manager/users');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/license-manager/users' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"email": "",
"name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/license-manager/users' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"email": "",
"name": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"email\": \"\",\n \"name\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/api/license-manager/users", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/license-manager/users"
payload = {
"email": "",
"name": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/license-manager/users"
payload <- "{\n \"email\": \"\",\n \"name\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/license-manager/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"email\": \"\",\n \"name\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/api/license-manager/users') do |req|
req.body = "{\n \"email\": \"\",\n \"name\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/license-manager/users";
let payload = json!({
"email": "",
"name": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/api/license-manager/users \
--header 'content-type: application/json' \
--data '{
"email": "",
"name": ""
}'
echo '{
"email": "",
"name": ""
}' | \
http POST {{baseUrl}}/api/license-manager/users \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "email": "",\n "name": ""\n}' \
--output-document \
- {{baseUrl}}/api/license-manager/users
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"email": "",
"name": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/license-manager/users")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"email": "mynewuser@mydomain.com",
"id": "a404870467d24533a085a6b3c6a5a320",
"name": "testuser"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"Message": "Invalid email"
}
GET
Get List of Users
{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged
HEADERS
Content-Type
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged" {:headers {:content-type ""}})
require "http/client"
url = "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged"
headers = HTTP::Headers{
"content-type" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/api/license-manager/site/pvt/logins/list/paged HTTP/1.1
Content-Type:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged")
.setHeader("content-type", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged"))
.header("content-type", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged")
.get()
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged")
.header("content-type", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged',
method: 'GET',
headers: {
'content-type': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged")
.get()
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/license-manager/site/pvt/logins/list/paged',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged',
headers: {'content-type': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged');
req.headers({
'content-type': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged" in
let headers = Header.add (Header.init ()) "content-type" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged', [
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'content-type' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged');
$request->setRequestMethod('GET');
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'content-type': "" }
conn.request("GET", "/baseUrl/api/license-manager/site/pvt/logins/list/paged", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged"
headers = {"content-type": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["content-type"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/api/license-manager/site/pvt/logins/list/paged') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/api/license-manager/site/pvt/logins/list/paged \
--header 'content-type: '
http GET {{baseUrl}}/api/license-manager/site/pvt/logins/list/paged \
content-type:''
wget --quiet \
--method GET \
--header 'content-type: ' \
--output-document \
- {{baseUrl}}/api/license-manager/site/pvt/logins/list/paged
import Foundation
let headers = ["content-type": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/license-manager/site/pvt/logins/list/paged")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"items": [
{
"accountNames": [],
"email": "mynewuser@mydomain.com",
"id": "a404870467d24533a085a6b3c6a5a320",
"isAdmin": false,
"isBlocked": false,
"isReliable": false,
"name": "testuser",
"roles": []
}
],
"paging": {
"page": 1,
"pages": 1,
"perPage": 1,
"total": 1
}
}
GET
Get User
{{baseUrl}}/api/license-manager/users/:userId
HEADERS
Content-Type
QUERY PARAMS
userId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/license-manager/users/:userId");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/api/license-manager/users/:userId" {:headers {:content-type ""}})
require "http/client"
url = "{{baseUrl}}/api/license-manager/users/:userId"
headers = HTTP::Headers{
"content-type" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/api/license-manager/users/:userId"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/license-manager/users/:userId");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/api/license-manager/users/:userId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/api/license-manager/users/:userId HTTP/1.1
Content-Type:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/license-manager/users/:userId")
.setHeader("content-type", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/api/license-manager/users/:userId"))
.header("content-type", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/api/license-manager/users/:userId")
.get()
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/license-manager/users/:userId")
.header("content-type", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/api/license-manager/users/:userId');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/users/:userId',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/api/license-manager/users/:userId';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/api/license-manager/users/:userId',
method: 'GET',
headers: {
'content-type': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/api/license-manager/users/:userId")
.get()
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/api/license-manager/users/:userId',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/users/:userId',
headers: {'content-type': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/api/license-manager/users/:userId');
req.headers({
'content-type': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/api/license-manager/users/:userId',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/api/license-manager/users/:userId';
const options = {method: 'GET', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/license-manager/users/:userId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/api/license-manager/users/:userId" in
let headers = Header.add (Header.init ()) "content-type" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/api/license-manager/users/:userId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/api/license-manager/users/:userId', [
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/api/license-manager/users/:userId');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'content-type' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/api/license-manager/users/:userId');
$request->setRequestMethod('GET');
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/license-manager/users/:userId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/license-manager/users/:userId' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'content-type': "" }
conn.request("GET", "/baseUrl/api/license-manager/users/:userId", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/api/license-manager/users/:userId"
headers = {"content-type": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/api/license-manager/users/:userId"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/api/license-manager/users/:userId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["content-type"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/api/license-manager/users/:userId') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/api/license-manager/users/:userId";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/api/license-manager/users/:userId \
--header 'content-type: '
http GET {{baseUrl}}/api/license-manager/users/:userId \
content-type:''
wget --quiet \
--method GET \
--header 'content-type: ' \
--output-document \
- {{baseUrl}}/api/license-manager/users/:userId
import Foundation
let headers = ["content-type": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/license-manager/users/:userId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"email": "mynewuser@mydomain.com",
"id": "a404870467d24533a085a6b3c6a5a320",
"name": "testuser"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"Message": "Invalid UserId"
}