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","allowedHours":{"allowedDays":["Sunday"],"dailyWindowStart":"example","dailyWindowEnd":"example","timeZoneId":"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", "allowedHours": { "allowedDays": [ "Sunday" ], "dailyWindowStart": "example", "dailyWindowEnd": "example", "timeZoneId": "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
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.
Optional recurring window (days of the week plus a daily open/close time) during which activation is permitted; null means no recurring restriction.
object
Days activation is permitted on. Null or empty means every day.
Time of day the window opens, in string? ActivationHoursScheduleDto.TimeZoneId. Set with TimeSpan? ActivationHoursScheduleDto.DailyWindowEnd or not at all.
Time of day the window closes, exclusive. Equal to the start is rejected — omit both for a whole-day window.
IANA (or Windows) time-zone id the window is expressed in; null means UTC.
Constrains license activation to a time window on an entitlement. Null bounds leave that side of the window open.
object
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.
Optional recurring window (days of the week plus a daily open/close time) during which activation is permitted; null means no recurring restriction.
object
Days activation is permitted on. Null or empty means every day.
Time of day the window opens, in string? ActivationHoursScheduleDto.TimeZoneId. Set with TimeSpan? ActivationHoursScheduleDto.DailyWindowEnd or not at all.
Time of day the window closes, exclusive. Equal to the start is rejected — omit both for a whole-day window.
IANA (or Windows) time-zone id the window is expressed in; null means UTC.
Constrains license activation to a time window on an entitlement. Null bounds leave that side of the window open.
object
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.
Optional recurring window (days of the week plus a daily open/close time) during which activation is permitted; null means no recurring restriction.
object
Days activation is permitted on. Null or empty means every day.
Time of day the window opens, in string? ActivationHoursScheduleDto.TimeZoneId. Set with TimeSpan? ActivationHoursScheduleDto.DailyWindowEnd or not at all.
Time of day the window closes, exclusive. Equal to the start is rejected — omit both for a whole-day window.
IANA (or Windows) time-zone id the window is expressed in; null means UTC.
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"}