Create a new scheduled window

Creates a new scheduled window for the specified organization

SecuritybearerAuth
Request
path Parameters
org_UUID
required
string <uuid>

Organization UUID

Example: a7315bf2-072f-4c94-be79-f3276aa3f1ce
Request Body schema: application/json
required
window_type
required
string
window_name
required
string [ 0 .. 100 ] characters
window_description
required
string [ 0 .. 500 ] characters
rrule
required
string
duration_minutes
integer <int32>
use_local_tz
boolean
recurrence
required
string
group_uuids
Array of strings <uuid>
dtstart
required
string <date-time>
status
string
Responses
200

Window created successfully

409

Window with the same name already exists

4XX

Invalid Request

post/policy-windows/org/{org_UUID}
Request samples
application/json
{
  • "window_type": "exclude",
  • "window_name": "A window name",
  • "window_description": "your window description",
  • "rrule": "FREQ=YEARLY;BYMONTH=1;BYDAY=+1MO",
  • "duration_minutes": 60,
  • "use_local_tz": false,
  • "recurrence": "RECURRING",
  • "group_uuids": [
    • "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
  • "dtstart": "2025-10-30T20:13:57.827Z",
  • "status": "active"
}
Response samples
application/json
{
  • "window_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  • "window_type": "exclusion",
  • "window_name": "My Test Window",
  • "window_description": "Window description",
  • "org_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  • "rrule": "FREQ=YEARLY;BYMONTH=1;BYDAY=+1MO",
  • "duration_minutes": 60,
  • "dtstart": "2025-10-30T14:54:42.403Z",
  • "use_local_tz": false,
  • "created_at": "2025-10-30T14:54:42.403Z",
  • "updated_at": "2025-10-30T14:54:42.403Z",
  • "status": "active",
  • "recurrence": "RECURRING",
  • "group_uuids": [
    • "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ]
}