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.

Update activation workflow

PUT
/api/v1/provision/admin/entitlements/{entitlementId}/activation-codes/{activationCodeId}
curl --request PUT \
--url https://example.com/api/v1/provision/admin/entitlements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/activation-codes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "email": "example", "activationRequiresValidDeviceId": true, "requiredUserId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "organizationGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "activationCode": "example", "fingerprint": "example", "registeredFingerprints": [ "example" ], "maxDeviceActivations": 1, "userConsent": true, "requiresUserConsent": true, "sendUserNotification": true, "entitlementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "lastActivatedAt": "2026-04-15T12:00:00Z", "expiresAt": "2026-04-15T12:00:00Z", "createdAt": "2026-04-15T12:00:00Z", "useEntitlementMaxActivations": true, "isDeleted": true, "activationCount": 1, "remainingActivations": 1, "requiredAuthenticationLevel": "Default" }'

A replace sends every member that binds or caps the code: email, requiredUserId, organizationGroupId, fingerprint, maxDeviceActivations, useEntitlementMaxActivations, requiredAuthenticationLevel and expiresAt. One left out is refused with 400 naming it, so a short body can never turn a bound or capped code into an open one (a maxDeviceActivations of 0 means no limit). activationCode may be left out to keep the code.

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

The entitlement the code belongs to.

activationCodeId
required
string format: uuid

Activation code id.

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.

The activation code as it should be.

Media typeapplication/json

Admin read model of a license activation workflow, including the issued activation code, registered device fingerprints, and expiration.

object
id
string format: uuid
email
string
activationRequiresValidDeviceId
boolean
requiredUserId
string format: uuid
organizationGroupId
string format: uuid
activationCode
string
fingerprint
string
registeredFingerprints
Array<string>
maxDeviceActivations
integer format: int32
userConsent
boolean
requiresUserConsent
boolean
sendUserNotification

Whether the “Activation code ready” mail was requested for this workflow when it was created.

boolean
entitlementId
string format: uuid
lastActivatedAt
string format: date-time
expiresAt
string format: date-time
createdAt
string format: date-time
useEntitlementMaxActivations
boolean
isDeleted
boolean
activationCount

How many devices are activated with this code right now (live sessions that redeemed it). Server-populated on read; ignored on write.

integer format: int32
remainingActivations

How many more activations the code can take: the entitlement’s free seats when the code uses the entitlement’s limit, otherwise the code’s own MaxDeviceActivations minus ActivationCount. Null when the limit is unknown. Server-populated on read; ignored on write.

null | integer format: int32
requiredAuthenticationLevel

Authentication level a user must meet before a license activation is permitted. Used on activation policies and activation workflows.

Allowed values: Default Anonymous IdentityVerification IdentityProvider

OK

Media typeapplication/json

Admin read model of a license activation workflow, including the issued activation code, registered device fingerprints, and expiration.

object
id
string format: uuid
email
string
activationRequiresValidDeviceId
boolean
requiredUserId
string format: uuid
organizationGroupId
string format: uuid
activationCode
string
fingerprint
string
registeredFingerprints
Array<string>
maxDeviceActivations
integer format: int32
userConsent
boolean
requiresUserConsent
boolean
sendUserNotification

Whether the “Activation code ready” mail was requested for this workflow when it was created.

boolean
entitlementId
string format: uuid
lastActivatedAt
string format: date-time
expiresAt
string format: date-time
createdAt
string format: date-time
useEntitlementMaxActivations
boolean
isDeleted
boolean
activationCount

How many devices are activated with this code right now (live sessions that redeemed it). Server-populated on read; ignored on write.

integer format: int32
remainingActivations

How many more activations the code can take: the entitlement’s free seats when the code uses the entitlement’s limit, otherwise the code’s own MaxDeviceActivations minus ActivationCount. Null when the limit is unknown. Server-populated on read; ignored on write.

null | integer format: int32
requiredAuthenticationLevel

Authentication level a user must meet before a license activation is permitted. Used on activation policies and activation workflows.

Allowed values: Default Anonymous IdentityVerification IdentityProvider
Example
{
"requiredAuthenticationLevel": "Default"
}
X-Correlation-Id
string

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

Bad Request

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.

Not Found

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.