Skip to content
Oclavex is in private preview, available to selected users. Public signup is blocked. Request access at [email protected].

Sets the time-restricted activation policy on the entitlement.

POST
/api/v1/provision/admin/entitlements/{entitlementId}/policies/time-restricted
curl --request POST \
--url https://example.com/api/v1/provision/admin/entitlements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/policies/time-restricted \
--header 'Content-Type: application/json' \
--data '{ "notValidBeforeTimestamp": "2026-04-15T12:00:00Z", "notValidAfterTimestamp": "2026-04-15T12:00:00Z", "activationPeriod": "example", "allowedHours": { "allowedDays": [ "Sunday" ], "dailyWindowStart": "example", "dailyWindowEnd": "example", "timeZoneId": "example" } }'
entitlementId
required
string format: uuid

Target entitlement.

Policy payload.

Constrains license activation to a time window on an entitlement. Null bounds leave that side of the window open.

object
notValidBeforeTimestamp
null | string format: date-time
notValidAfterTimestamp
null | string format: date-time
activationPeriod

How long the license stays valid after the first activation, to the end of the UTC day on which that runs out (TimeSpan.Zero means no such limit); the resulting expiry is capped at NotValidAfterTimestamp.

string
/^-?(\d+\.)?\d{2}:\d{2}:\d{2}(\.\d{1,7})?$/
allowedHours
One of:
null

OK

Bad Request

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string

Not Found

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string