Sets the time-restricted activation policy on the entitlement.
const url = 'https://example.com/api/v1/provision/admin/entitlements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/policies/time-restricted';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"notValidBeforeTimestamp":"2026-04-15T12:00:00Z","notValidAfterTimestamp":"2026-04-15T12:00:00Z","activationPeriod":"example"}'};
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/time-restricted \ --header 'Content-Type: application/json' \ --data '{ "notValidBeforeTimestamp": "2026-04-15T12:00:00Z", "notValidAfterTimestamp": "2026-04-15T12:00:00Z", "activationPeriod": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Target entitlement.
Request Bodyrequired
Section titled “Request Bodyrequired”Policy payload.
Constrains license activation to a time window on an entitlement. Null bounds leave that side of the window open.
object
Duration the license stays valid after the first activation (TimeSpan.Zero means no per-activation limit); the resulting expiry is capped at DateTimeOffset? TimeRestrictedActivationPolicyDto.NotValidAfterTimestamp.
Examplegenerated
{ "notValidBeforeTimestamp": "2026-04-15T12:00:00Z", "notValidAfterTimestamp": "2026-04-15T12:00:00Z", "activationPeriod": "example"}Constrains license activation to a time window on an entitlement. Null bounds leave that side of the window open.
object
Duration the license stays valid after the first activation (TimeSpan.Zero means no per-activation limit); the resulting expiry is capped at DateTimeOffset? TimeRestrictedActivationPolicyDto.NotValidAfterTimestamp.
Examplegenerated
{ "notValidBeforeTimestamp": "2026-04-15T12:00:00Z", "notValidAfterTimestamp": "2026-04-15T12:00:00Z", "activationPeriod": "example"}Constrains license activation to a time window on an entitlement. Null bounds leave that side of the window open.
object
Duration the license stays valid after the first activation (TimeSpan.Zero means no per-activation limit); the resulting expiry is capped at DateTimeOffset? TimeRestrictedActivationPolicyDto.NotValidAfterTimestamp.
Examplegenerated
{ "notValidBeforeTimestamp": "2026-04-15T12:00:00Z", "notValidAfterTimestamp": "2026-04-15T12:00:00Z", "activationPeriod": "example"}Responses
Section titled “Responses”OK
Bad Request
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}