Skip to content
Oclavex is in private preview, open to existing MonetizeIt users. New users who would like to evaluate Oclavex before the public launch can request access at info@revenusion.com.

Set claim based activation

POST
/api/v1/provision/admin/entitlements/{entitlementId}/policies/license-allocation
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.

  • oidc
    provision.entitlement.update
entitlementId
required
string format: uuid

Target entitlement.

X-Correlation-Id
string

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.

Policy payload.

Media typeapplication/json

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
leaseTime

Duration a seat remains leased before renewal is required. Zero means the lease never ends.

string format: duration
Example
PT15M
gracePeriod

Extra time the license keeps working after the entitlement expires.

string format: duration
Example
PT15M
numberOfSeats

Maximum number of device activations (seats) allowed.

integer format: int32
maxActivationsPerUser

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.

null | integer format: int32
isFloatingLicense

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.

boolean
allowBorrowing

Lets a device borrow its seat: extend its lease for up to MaxBorrowDuration so it can go offline without losing the seat.

boolean
maxBorrowDuration

The longest a device may borrow its seat for. Must be more than zero when AllowBorrowing is on.

string format: duration
Example
PT15M
allowOffLineUse

Allows offline activation: when false, the server refuses to issue an offline activation response for this license. Online activation is not affected.

boolean
fingerprintingMethod

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.

string
componentMatchingStrategy

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.

Allowed values: MatchAll MatchAny MatchTwo MatchMost

The stored policy.

Media typeapplication/json

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
leaseTime

Duration a seat remains leased before renewal is required. Zero means the lease never ends.

string format: duration
gracePeriod

Extra time the license keeps working after the entitlement expires.

string format: duration
numberOfSeats

Maximum number of device activations (seats) allowed.

integer format: int32
maxActivationsPerUser

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.

null | integer format: int32
isFloatingLicense

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.

boolean
allowBorrowing

Lets a device borrow its seat: extend its lease for up to MaxBorrowDuration so it can go offline without losing the seat.

boolean
maxBorrowDuration

The longest a device may borrow its seat for. Must be more than zero when AllowBorrowing is on.

string format: duration
allowOffLineUse

Allows offline activation: when false, the server refuses to issue an offline activation response for this license. Online activation is not affected.

boolean
fingerprintingMethod

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.

string
componentMatchingStrategy

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.

Allowed values: MatchAll MatchAny MatchTwo MatchMost
Example
{
"leaseTime": "PT15M",
"gracePeriod": "PT15M",
"maxBorrowDuration": "PT15M",
"componentMatchingStrategy": "MatchAll"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

The policy is not valid.

Media typeapplication/problem+json

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
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

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).

Media typeapplication/problem+json

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
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

WWW-Authenticate
string

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.

Media typeapplication/problem+json

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
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

No such entitlement.

Media typeapplication/problem+json

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
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

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).

Media typeapplication/problem+json

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
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

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).

Media typeapplication/problem+json

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
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

Retry-After
integer

The seconds to wait before the call is sent again.

X-RateLimit-Limit
integer

The calls the limiter allows in its window, when it knows.

X-RateLimit-Remaining
integer

The calls left in the window, when the limiter knows.

X-RateLimit-Reset
integer

The seconds until the window resets, when the limiter knows.

X-RateLimit-Scope
string

Names the limiter that shed the call.