Creates a new LicensePool.
curl --request POST \
--url http://claimsdesk.runasp.net/api/v1/LicensePools \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>' \
--data '
{
"licenseType": "<string>",
"seats": 123,
"expires": true,
"expiresAt": "2023-11-07T05:31:56Z",
"subscriptionId": 123
}
'import requests
url = "http://claimsdesk.runasp.net/api/v1/LicensePools"
payload = {
"licenseType": "<string>",
"seats": 123,
"expires": True,
"expiresAt": "2023-11-07T05:31:56Z",
"subscriptionId": 123
}
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-App-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
licenseType: '<string>',
seats: 123,
expires: true,
expiresAt: '2023-11-07T05:31:56Z',
subscriptionId: 123
})
};
fetch('http://claimsdesk.runasp.net/api/v1/LicensePools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://claimsdesk.runasp.net/api/v1/LicensePools",
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([
'licenseType' => '<string>',
'seats' => 123,
'expires' => true,
'expiresAt' => '2023-11-07T05:31:56Z',
'subscriptionId' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-App-Id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://claimsdesk.runasp.net/api/v1/LicensePools"
payload := strings.NewReader("{\n \"licenseType\": \"<string>\",\n \"seats\": 123,\n \"expires\": true,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"subscriptionId\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-App-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://claimsdesk.runasp.net/api/v1/LicensePools")
.header("X-App-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"licenseType\": \"<string>\",\n \"seats\": 123,\n \"expires\": true,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"subscriptionId\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://claimsdesk.runasp.net/api/v1/LicensePools")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"licenseType\": \"<string>\",\n \"seats\": 123,\n \"expires\": true,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"subscriptionId\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"licenseType": "<string>",
"licenseKey": "<string>",
"seats": 123,
"expires": true,
"expiresAt": "2023-11-07T05:31:56Z",
"subscriptionId": 123
}Subscriptions & Licensing
Creates a new LicensePool.
POST
/
api
/
v1
/
LicensePools
Creates a new LicensePool.
curl --request POST \
--url http://claimsdesk.runasp.net/api/v1/LicensePools \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>' \
--data '
{
"licenseType": "<string>",
"seats": 123,
"expires": true,
"expiresAt": "2023-11-07T05:31:56Z",
"subscriptionId": 123
}
'import requests
url = "http://claimsdesk.runasp.net/api/v1/LicensePools"
payload = {
"licenseType": "<string>",
"seats": 123,
"expires": True,
"expiresAt": "2023-11-07T05:31:56Z",
"subscriptionId": 123
}
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-App-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
licenseType: '<string>',
seats: 123,
expires: true,
expiresAt: '2023-11-07T05:31:56Z',
subscriptionId: 123
})
};
fetch('http://claimsdesk.runasp.net/api/v1/LicensePools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://claimsdesk.runasp.net/api/v1/LicensePools",
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([
'licenseType' => '<string>',
'seats' => 123,
'expires' => true,
'expiresAt' => '2023-11-07T05:31:56Z',
'subscriptionId' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-App-Id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://claimsdesk.runasp.net/api/v1/LicensePools"
payload := strings.NewReader("{\n \"licenseType\": \"<string>\",\n \"seats\": 123,\n \"expires\": true,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"subscriptionId\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-App-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://claimsdesk.runasp.net/api/v1/LicensePools")
.header("X-App-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"licenseType\": \"<string>\",\n \"seats\": 123,\n \"expires\": true,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"subscriptionId\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://claimsdesk.runasp.net/api/v1/LicensePools")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"licenseType\": \"<string>\",\n \"seats\": 123,\n \"expires\": true,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"subscriptionId\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"licenseType": "<string>",
"licenseKey": "<string>",
"seats": 123,
"expires": true,
"expiresAt": "2023-11-07T05:31:56Z",
"subscriptionId": 123
}Authorizations
App ID authentication. Enter your App ID below.
API Key authentication. Enter your key below.
Body
application/jsontext/jsonapplication/*+json

