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

# Propose reservations for selected requested tests

> Return a transient earliest-gap schedule for the selected test requests.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /projects/{project_id}/planned_measurements/auto_schedule_proposal
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /projects/{project_id}/planned_measurements/auto_schedule_proposal:
    post:
      tags:
        - Planned Measurements
      summary: Propose reservations for selected requested tests
      description: Return a transient earliest-gap schedule for the selected test requests.
      operationId: >-
        auto_schedule_proposal_projects__project_id__planned_measurements_auto_schedule_proposal_post
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoScheduleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoScheduleProposal'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AutoScheduleRequest:
      properties:
        planned_measurement_ids:
          items:
            type: string
          type: array
          maxItems: 100
          minItems: 1
          title: Planned Measurement Ids
        start_after:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start After
      type: object
      required:
        - planned_measurement_ids
      title: AutoScheduleRequest
      description: The requested tests to place, in scheduling-priority order.
    AutoScheduleProposal:
      properties:
        generated_at:
          type: string
          format: date-time
          title: Generated At
        assignments:
          items:
            $ref: '#/components/schemas/AutoScheduleAssignment'
          type: array
          title: Assignments
      type: object
      required:
        - generated_at
        - assignments
      title: AutoScheduleProposal
      description: A non-persistent set of proposed test reservations.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AutoScheduleAssignment:
      properties:
        planned_measurement_id:
          type: string
          title: Planned Measurement Id
        planned_measurement_name:
          type: string
          title: Planned Measurement Name
        planned_measurement_updated_at:
          type: string
          format: date-time
          title: Planned Measurement Updated At
        channel_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel Id
        channel_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel Name
        cycler_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Cycler Name
        planned_start_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Planned Start Time
        planned_end_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Planned End Time
        unscheduled_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Unscheduled Reason
      type: object
      required:
        - planned_measurement_id
        - planned_measurement_name
        - planned_measurement_updated_at
      title: AutoScheduleAssignment
      description: One transient assignment returned by the auto-scheduling proposal.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````