Set claim based activation
const url = 'https://example.com/api/v1/provision/admin/entitlements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/policies/license-allocation';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"leaseTime":"PT15M","gracePeriod":"PT15M","numberOfSeats":1,"maxActivationsPerUser":1,"isFloatingLicense":true,"allowBorrowing":true,"maxBorrowDuration":"PT15M","allowOffLineUse":true,"fingerprintingMethod":"example","componentMatchingStrategy":"MatchAll"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/provision/admin/entitlements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/policies/license-allocation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "leaseTime": "PT15M", "gracePeriod": "PT15M", "numberOfSeats": 1, "maxActivationsPerUser": 1, "isFloatingLicense": true, "allowBorrowing": true, "maxBorrowDuration": "PT15M", "allowOffLineUse": true, "fingerprintingMethod": "example", "componentMatchingStrategy": "MatchAll" }'Durations are ISO 8601 (PT15M). A leaseTime of zero means no lease; any other lease is at least a minute (PT1M), since a shorter one ends before a device can renew it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Target entitlement.
Header Parameters
Section titled “Header Parameters”An id of your own for the call. The answer returns it in the same header, and the server log carries it; when you send none, the server makes one.
Request Bodyrequired
Section titled “Request Bodyrequired”Policy payload.
Defines allocation and usage policy for a license: seat limits, lease/grace periods, floating or node-locked seats, borrowing, offline activation and fingerprinting method.
object
Duration a seat remains leased before renewal is required. Zero means the lease never ends.
Example
PT15MExtra time the license keeps working after the entitlement expires.
Example
PT15MMaximum number of device activations (seats) allowed.
The most seats one user may hold on this entitlement at once, counted over the user’s live sessions. Null: no
limit. Activations with no user behind them (anonymous and offline) are exempt and count only against
NumberOfSeats. A new activation by a user at the limit is refused with the problem code
license.user_activation_limit_reached.
True (the default): a device holds its seat while its lease is alive, so a seat whose lease lapses frees for another device. False (node-locked): the seat stays with the device after its lease lapses, until the device releases it or a vendor releases, resets or blocks it. Either way a device whose lease lapsed renews it before it is served again.
Lets a device borrow its seat: extend its lease for up to MaxBorrowDuration so it can go offline without losing the seat.
The longest a device may borrow its seat for. Must be more than zero when AllowBorrowing is on.
Example
PT15MAllows offline activation: when false, the server refuses to issue an offline activation response for this license. Online activation is not affected.
How a device must take its fingerprint to activate: “Any” (or empty, the default) accepts every fingerprint; otherwise the device traits, comma-separated, from MachineId, MachineName, OsVersion, MacAddress and UserName, such as “MachineName, MacAddress”. An activation that names a different set of traits, or none (a fingerprint supplied as is), is refused. The SDK’s machine-derived fingerprint names the traits it combined.
How closely a device’s components must match a session’s when an activation looks for the device’s session.
Defaults to ComponentMatchingStrategy.MatchAll (the same components with the same values).
The tolerant ones (MatchAny, MatchTwo, MatchMost) let a device keep its seat when some
components changed, and re-bind the session to the device as it is now, at most once every 24 hours. The
tolerance is bounded by the number of components the client reports: a device that reports one component
matches only when that one is unchanged, under every strategy.
Responses
Section titled “Responses”The stored policy.
Defines allocation and usage policy for a license: seat limits, lease/grace periods, floating or node-locked seats, borrowing, offline activation and fingerprinting method.
object
Duration a seat remains leased before renewal is required. Zero means the lease never ends.
Extra time the license keeps working after the entitlement expires.
Maximum number of device activations (seats) allowed.
The most seats one user may hold on this entitlement at once, counted over the user’s live sessions. Null: no
limit. Activations with no user behind them (anonymous and offline) are exempt and count only against
NumberOfSeats. A new activation by a user at the limit is refused with the problem code
license.user_activation_limit_reached.
True (the default): a device holds its seat while its lease is alive, so a seat whose lease lapses frees for another device. False (node-locked): the seat stays with the device after its lease lapses, until the device releases it or a vendor releases, resets or blocks it. Either way a device whose lease lapsed renews it before it is served again.
Lets a device borrow its seat: extend its lease for up to MaxBorrowDuration so it can go offline without losing the seat.
The longest a device may borrow its seat for. Must be more than zero when AllowBorrowing is on.
Allows offline activation: when false, the server refuses to issue an offline activation response for this license. Online activation is not affected.
How a device must take its fingerprint to activate: “Any” (or empty, the default) accepts every fingerprint; otherwise the device traits, comma-separated, from MachineId, MachineName, OsVersion, MacAddress and UserName, such as “MachineName, MacAddress”. An activation that names a different set of traits, or none (a fingerprint supplied as is), is refused. The SDK’s machine-derived fingerprint names the traits it combined.
How closely a device’s components must match a session’s when an activation looks for the device’s session.
Defaults to ComponentMatchingStrategy.MatchAll (the same components with the same values).
The tolerant ones (MatchAny, MatchTwo, MatchMost) let a device keep its seat when some
components changed, and re-bind the session to the device as it is now, at most once every 24 hours. The
tolerance is bounded by the number of components the client reports: a device that reports one component
matches only when that one is unchanged, under every strategy.
Example
{ "leaseTime": "PT15M", "gracePeriod": "PT15M", "maxBorrowDuration": "PT15M", "componentMatchingStrategy": "MatchAll"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The policy is not valid.
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The request carries no valid access token (auth.required).
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
How to authenticate: the bearer challenge.
The caller may not make this call. The code and requires members say why: a missing scope, or a plan that does not include it.
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
No such entitlement.
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The body is not sent as application/json (request.unsupported).
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
Too many requests. Wait the seconds in Retry-After, then send the call again (service.too-many-requests).
The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.
object
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The seconds to wait before the call is sent again.
The calls the limiter allows in its window, when it knows.
The calls left in the window, when the limiter knows.
The seconds until the window resets, when the limiter knows.
Names the limiter that shed the call.