Borrow Floating Feature

Borrows a floating license feature.

Send null as a value for borrowed_until if you want to set borrowed_until to max_borrow_time from now + max_borrow_time value defined on a license feature.

Endpoint

  • Method: POST

  • Path: /api/v4/floating/feature_borrow

  • Description: Borrows a floating license feature.

Authentication

See License API Authorization.

Required headers

  • Date (string) — RFC7231 GMT date string

  • Authorization (string)

  • Accept: application/json

  • Content-Type: application/json

Request

Body parameters

Required:

  • hardware_id (string)

  • product (string)

  • borrowed_until (string | null) — ISO 8601 UTC timestamp. Send null to use max_borrow_time.

  • feature (string)

One of:

  • license_key (string)

  • username + password (string)

  • id_token (send access_token value) + customer_account_code (string)

  • code + customer_account_code (string)

Optional:

  • license_id (number)

  • bundle_code (string)

  • sdk_ver (string)

  • redirect_uri (string)

Schema

Request Body (TypeScript + JSON Schema)

Response Body (TypeScript + JSON Schema)

Examples

License Authorization Method

There are two types of product licenses based on how the client application authorizes itself to interact with a license:

  • Key-based product licenses: client interactions with the license have to be authorized using a license_key

  • User-based product licenses: the license has a corresponding "license user" instead of a license key. Client interactions with the license have to be authorized using a username and password

Errors

If an error occurs, the response will have an HTTP status code of 400 or higher, and the response body will contain an error description in the following format:

Error schema (TypeScript + JSON Schema)

List of exceptions

missing_headers (400): Some headers are missing.

missing_parameters (400): Some parameters are missing in the request: { params }.

unknown_product (400): Provided product was not found.

license_not_found (400): License with the provided license user not found.

license_not_active (400): The license is not active.

license_not_enabled (400): The license is not enabled.

license_expired (400): The license has expired.

feature_borrow_not_allowed (400): License feature does not allow borrowing.

floating_feature_device_not_in_use (400): License feature device is not in use.

blacklisted (400): This device is blacklisted.

device_not_found (400): License feature device not found.

invalid_license_feature_code (400): License feature code: ' + param + ' is invalid or not assigned to the license.

feature_not_floating (400): License feature is not a floating feature.

borrow_until_not_valid (400): Borrow until field is not valid.

Last updated

Was this helpful?