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

# Update Sandbox Schedule

> Updates a Sandbox Schedule by id.



## OpenAPI

````yaml /api-reference/controlplane.yml put /sandboxes/{sandboxName}/schedules/{scheduleId}
openapi: 3.0.3
info:
  title: Blaxel Control Plane
  version: 0.0.1
servers:
  - description: Blaxel Control Plane
    url: https://api.blaxel.ai/v0
  - description: Blaxel Inference
    url: https://run.blaxel.ai
security:
  - OAuth2:
      - admin
  - ApiKeyAuth: []
paths:
  /sandboxes/{sandboxName}/schedules/{scheduleId}:
    parameters:
      - description: Name of the Sandbox
        in: path
        name: sandboxName
        required: true
        schema:
          type: string
      - description: Id of the Schedule
        in: path
        name: scheduleId
        required: true
        schema:
          type: string
    put:
      tags:
        - compute
      summary: Update Sandbox Schedule
      description: Updates a Sandbox Schedule by id.
      operationId: UpdateSandboxSchedule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SandboxScheduleEntry'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxScheduleEntry'
          description: successful operation
      security:
        - OAuth2:
            - sandboxes:update
        - ApiKeyAuth: []
components:
  schemas:
    SandboxScheduleEntry:
      type: object
      description: >-
        A scheduled task that executes a process inside the sandbox at specified
        times. Stored in the dedicated schedules table (no longer embedded in
        the sandbox spec).
      properties:
        createdAt:
          type: string
          description: Creation timestamp (read-only).
          readOnly: true
        id:
          type: string
          description: >-
            Unique identifier for this schedule within its sandbox.
            Auto-generated if not provided.
          example: schedule-0
        input:
          $ref: '#/components/schemas/SandboxScheduleInput'
        maxExecutions:
          type: integer
          description: >-
            Maximum number of execution records kept for this schedule. Once
            reached, recording a new execution deletes the oldest. Defaults to
            100.
          example: 100
        type:
          type: string
          description: >-
            Type of schedule timing. 'cron' for recurring (5-field expression),
            'at' for a specific RFC 3339 datetime, 'sleep' for a duration from
            now (resolved to 'at' on creation).
          enum:
            - cron
            - at
            - sleep
          example: cron
        value:
          type: string
          description: >-
            Timing value. For 'cron': a 5-field cron expression (e.g. '0 8 * *
            1-5'). For 'at': an RFC 3339 datetime (e.g. '2026-07-01T09:00:00Z').
            For 'sleep': a duration (e.g. '2h', '30m', '7d').
          example: 0 8 * * 1-5
    SandboxScheduleInput:
      type: object
      description: Process execution configuration for a scheduled sandbox task
      properties:
        command:
          type: string
          description: Shell command to execute inside the sandbox
          example: python train.py --epochs 10
        env:
          type: object
          description: >-
            Environment variables to set for the process. May contain secrets,
            so values are encrypted at rest and masked in API responses unless
            an admin requests show_secrets=true.
          additionalProperties:
            type: string
        keepAlive:
          type: boolean
          description: >-
            Keep the sandbox alive (disable scale-to-zero) while the process
            runs. Defaults to true.
          example: true
        name:
          type: string
          description: Optional name for the process (used to retrieve status/logs)
          example: training-job
        timeout:
          type: integer
          description: >-
            Timeout in seconds for the process. Defaults to 600 (10 minutes).
            Set to 0 for no timeout.
          example: 3600
        workingDir:
          type: string
          description: Working directory for the command
          example: /app
  securitySchemes:
    OAuth2:
      description: OAuth2 authentication with JWT tokens
      flows:
        authorizationCode:
          authorizationUrl: /oauth/authorize
          scopes:
            admin: Administrative access
            agents:create: Create agents
            agents:delete: Delete agents
            agents:get: Get agent details
            agents:list: List agents
            agents:update: Update agents
            apiKey:list: List API keys
            apiKey:write: Create and delete API keys
            applications:create: Create applications
            applications:delete: Delete applications
            applications:get: Get application details
            applications:list: List applications
            applications:update: Update applications
            configurations:list: List configurations
            customdomains:create: Create custom domains
            customdomains:delete: Delete custom domains
            customdomains:get: Get custom domain details
            customdomains:list: List custom domains
            customdomains:update: Update custom domains
            functions:create: Create functions
            functions:delete: Delete functions
            functions:get: Get function details
            functions:list: List functions
            functions:update: Update functions
            integrations:create: Create integrations
            integrations:list: List integrations
            invitations:list: List invitations
            jobs:create: Create jobs
            jobs:delete: Delete jobs
            jobs:get: Get job details
            jobs:list: List jobs
            jobs:update: Update jobs
            locations:list: List locations
            mcphub:list: List MCP hub resources
            models:create: Create models
            models:delete: Delete models
            models:get: Get model details
            models:list: List models
            models:update: Update models
            policies:create: Create policies
            policies:delete: Delete policies
            policies:get: Get policy details
            policies:list: List policies
            policies:update: Update policies
            sandboxes:control: Control sandbox operations
            sandboxes:create: Create sandboxes
            sandboxes:delete: Delete sandboxes
            sandboxes:get: Get sandbox details
            sandboxes:list: List sandboxes
            sandboxes:update: Update sandboxes
            sandboxhub:list: List sandbox hub resources
            templates:get: Get template details
            templates:list: List templates
            volumeTemplates:create: Create volume templates
            volumeTemplates:delete: Delete volume templates
            volumeTemplates:get: Get volume template details
            volumeTemplates:list: List volume templates
            volumeTemplates:upsert: Create or update volume templates
            volumes:create: Create volumes
            volumes:delete: Delete volumes
            volumes:get: Get volume details
            volumes:list: List volumes
            workspaces:accept: Accept workspace invitation
            workspaces:create: Create workspaces
            workspaces:decline: Decline workspace invitation
            workspaces:delete: Delete workspaces
            workspaces:get: Get workspace details
            workspaces:invite: Invite users to workspace
            workspaces:leave: Leave workspace
            workspaces:list: List workspaces
            workspaces:remove: Remove users from workspace
            workspaces:update: Update workspaces
          tokenUrl: /oauth/token
        clientCredentials:
          scopes:
            admin: Administrative access
            agents:create: Create agents
            agents:delete: Delete agents
            agents:get: Get agent details
            agents:list: List agents
            agents:update: Update agents
            apiKey:list: List API keys
            apiKey:write: Create and delete API keys
            applications:create: Create applications
            applications:delete: Delete applications
            applications:get: Get application details
            applications:list: List applications
            applications:update: Update applications
            configurations:list: List configurations
            customdomains:create: Create custom domains
            customdomains:delete: Delete custom domains
            customdomains:get: Get custom domain details
            customdomains:list: List custom domains
            customdomains:update: Update custom domains
            functions:create: Create functions
            functions:delete: Delete functions
            functions:get: Get function details
            functions:list: List functions
            functions:update: Update functions
            integrations:create: Create integrations
            integrations:list: List integrations
            invitations:list: List invitations
            jobs:create: Create jobs
            jobs:delete: Delete jobs
            jobs:get: Get job details
            jobs:list: List jobs
            jobs:update: Update jobs
            locations:list: List locations
            mcphub:list: List MCP hub resources
            models:create: Create models
            models:delete: Delete models
            models:get: Get model details
            models:list: List models
            models:update: Update models
            policies:create: Create policies
            policies:delete: Delete policies
            policies:get: Get policy details
            policies:list: List policies
            policies:update: Update policies
            sandboxes:control: Control sandbox operations
            sandboxes:create: Create sandboxes
            sandboxes:delete: Delete sandboxes
            sandboxes:get: Get sandbox details
            sandboxes:list: List sandboxes
            sandboxes:update: Update sandboxes
            sandboxhub:list: List sandbox hub resources
            templates:get: Get template details
            templates:list: List templates
            volumeTemplates:create: Create volume templates
            volumeTemplates:delete: Delete volume templates
            volumeTemplates:get: Get volume template details
            volumeTemplates:list: List volume templates
            volumeTemplates:upsert: Create or update volume templates
            volumes:create: Create volumes
            volumes:delete: Delete volumes
            volumes:get: Get volume details
            volumes:list: List volumes
            workspaces:accept: Accept workspace invitation
            workspaces:create: Create workspaces
            workspaces:decline: Decline workspace invitation
            workspaces:delete: Delete workspaces
            workspaces:get: Get workspace details
            workspaces:invite: Invite users to workspace
            workspaces:leave: Leave workspace
            workspaces:list: List workspaces
            workspaces:remove: Remove users from workspace
            workspaces:update: Update workspaces
          tokenUrl: /oauth/token
      type: oauth2
    ApiKeyAuth:
      bearerFormat: API Key
      description: Long-lived API key for programmatic access
      scheme: bearer
      type: http

````