> ## Documentation Index
> Fetch the complete documentation index at: https://docs.withclasp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Enrollment Window

> Extends or shortens a window by setting its start_date or end_date.



## OpenAPI

````yaml schemas/2023-08-25/schema.yaml patch /enrollment_windows/{public_id}
openapi: 3.0.3
info:
  title: ''
  version: 0.0.0
servers: []
security: []
paths:
  /enrollment_windows/{public_id}:
    patch:
      tags:
        - enrollment_windows
      description: Extends or shortens a window by setting its start_date or end_date.
      operationId: enrollment_windows_partial_update
      parameters:
        - in: path
          name: public_id
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedEnrollmentWindow'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrollmentWindow'
          description: ''
      security:
        - tokenAuth: []
components:
  schemas:
    PatchedEnrollmentWindow:
      type: object
      properties:
        start_date:
          type: string
          format: date
        end_date:
          type: string
          format: date
          description: Must be on or after start_date.
    EnrollmentWindow:
      type: object
      properties:
        id:
          type: string
          readOnly: true
        member:
          type: string
          readOnly: true
          description: Member ID, or an expanded member object when using expand[].
        open_enrollment_window:
          type: string
          nullable: true
          readOnly: true
          description: Open enrollment window ID, for open_enrollment windows.
        type:
          allOf:
            - $ref: '#/components/schemas/EnrollmentWindowTypeEnum'
          readOnly: true
        event_date:
          type: string
          format: date
          readOnly: true
          description: >-
            The hire date for new_hire windows, or the renewal date for
            open_enrollment windows.
        start_date:
          type: string
          format: date
          readOnly: true
          description: The first day the member may make elections.
        end_date:
          type: string
          format: date
          readOnly: true
          description: The last day the member may make elections.
        dates_adjusted_at:
          type: string
          format: date-time
          nullable: true
          readOnly: true
          description: When the dates were last edited through the API.
      required:
        - id
        - member
        - open_enrollment_window
        - type
        - event_date
        - start_date
        - end_date
        - dates_adjusted_at
    EnrollmentWindowTypeEnum:
      enum:
        - new_hire
        - open_enrollment
      type: string
      description: |-
        * `new_hire` - Opened by the member being hired or rehired.
        * `open_enrollment` - Opened by the employer's open enrollment.
  securitySchemes:
    tokenAuth:
      type: http
      scheme: bearer
      description: API Key authentication with required prefix "Bearer"

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.