Release Floating License
Last updated
Was this helpful?
Was this helpful?
curl --location --request POST '/api/v4/floating/release' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Date: string' \
--header 'Authorization: string' \
--data-raw '{
"hardware_id": "some-unique-id",
"product": "XY",
"license_key": "AAAA-BBBB-CCCC-DDDD"
}'var request = require('request');
var options = {
method: 'POST',
url: '/api/v4/floating/release',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Date': 'string',
'Authorization': 'string'
},
body: JSON.stringify({
hardware_id: 'some-unique-id',
product: 'XY',
license_key: 'AAAA-BBBB-CCCC-DDDD'
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Date", "string");
myHeaders.append("Authorization", "string");
var raw = JSON.stringify({
hardware_id: "some-unique-id",
product: "XY",
license_key: "AAAA-BBBB-CCCC-DDDD"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("/api/v4/floating/release", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));import requests
url = "/api/v4/floating/release"
payload = {
"hardware_id": "some-unique-id",
"product": "XY",
"license_key": "AAAA-BBBB-CCCC-DDDD"
}
headers = {
"Accept": "application/json",
"Content-Type": "application/json",
"Date": "string",
"Authorization": "string"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)require "uri"
require "net/http"
require "json"
url = URI("/api/v4/floating/release")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
request["Date"] = "string"
request["Authorization"] = "string"
request.body = JSON.dump({
hardware_id: "some-unique-id",
product: "XY",
license_key: "AAAA-BBBB-CCCC-DDDD"
})
response = http.request(request)
puts response.read_bodytype ReleaseFloatingLicenseRequestBody = {
// required parameters:
product: string,
hardware_id: string,
// required for key-based products:
license_key: string
// required for user-based products:
username: string
// optional parameters:
license_id?: string | undefined,
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"product": { "type": "string" },
"hardware_id": { "type": "string" },
"license_key": { "type": "string" },
"username": { "type": "string" },
"license_id": { "type": "number" }
},
"required": ["product", "hardware_id"],
"additionalProperties": false
}type ReleaseFloatingLicenseResponseBody = ''{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string"
}{
status: number,
code: string,
message: string
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": { "type": "number" },
"code": { "type": "string" },
"message": { "type": "string" }
},
"required": [
"status",
"code",
"message"
],
"additionalProperties": false
}