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

# Create Scheduler

> Creates a new scheduler for a specific agent



## OpenAPI

````yaml api-reference/tess-public-api.openapi.json POST /agents/{agentId}/schedulers
openapi: 3.0.0
info:
  title: Tess API
  version: '0.1'
servers:
  - url: https://api.tess.im
security: []
paths:
  /agents/{agentId}/schedulers:
    post:
      tags:
        - Agent Schedulers
      summary: Create a scheduler
      description: Creates a new scheduler for a specific agent
      operationId: createAgentScheduler
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: integer
        - name: x-workspace-id
          in: header
          description: >-
            Workspace id. If not provided, the user's selected workspace is
            used.
          required: false
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
                - name
                - prompt
                - agent_root_id_execution
              properties:
                name:
                  type: string
                  maxLength: 255
                prompt:
                  type: string
                cron_expression:
                  type: string
                  maxLength: 100
                  nullable: true
                execution_timezone:
                  type: string
                  maxLength: 50
                  nullable: true
                run_once_at:
                  type: string
                  format: date-time
                  nullable: true
                enabled:
                  type: boolean
                  nullable: true
                email_notification_enabled:
                  type: boolean
                  nullable: true
                start_new_conversation:
                  type: boolean
                  nullable: true
                agent_root_id_execution:
                  type: integer
              type: object
      responses:
        '200':
          description: Successful response
      security:
        - token: []
components:
  securitySchemes:
    token:
      type: http
      bearerFormat: Bearer
      scheme: bearer

````

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