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

# Update campaign schedule



## OpenAPI

````yaml /openapi.json put /api/campaigns/{id}/schedule
openapi: 3.0.3
info:
  title: AgentCallback Public API
  version: 1.3.0
  description: >-
    Public, customer-callable AgentCallback APIs for calls, voice agents,
    campaigns, phone numbers, and voices.


    **API keys:** Sign in to your AgentCallback account and open **Dashboard >
    API Keys** to create an API key. Send the key with every request using the
    `x-api-key` header.
servers:
  - url: https://agentcallback.com
    description: AgentCallback API server
security: []
tags:
  - name: Authentication
    description: Credential validation and API access.
  - name: Calls
    description: Create calls and retrieve call results.
  - name: Voice Agents
    description: Create and manage voice agent scripts.
  - name: Campaigns
    description: Create and manage batch call campaigns.
  - name: Phone Numbers
    description: List organization phone numbers.
  - name: Voices
    description: Browse voices and fetch voice previews.
paths:
  /api/campaigns/{id}/schedule:
    put:
      tags:
        - Campaigns
      summary: Update campaign schedule
      parameters:
        - name: id
          in: path
          required: true
          description: Campaign identifier
          schema:
            type: string
      requestBody:
        required: true
        description: Schedule configuration.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignScheduleRequest'
      responses:
        '200':
          description: Schedule updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Authenticated caller does not have access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    CampaignScheduleRequest:
      type: object
      additionalProperties: true
      properties:
        scheduled_date:
          type: string
          format: date
        scheduled_time:
          type: string
          example: '09:00'
        scheduled_timezone:
          type: string
          example: America/Los_Angeles
        working_hours:
          type: object
          additionalProperties: true
        start_immediately:
          type: boolean
    CampaignResponse:
      allOf:
        - $ref: '#/components/schemas/Success'
        - type: object
          properties:
            campaign:
              $ref: '#/components/schemas/Campaign'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        details:
          nullable: true
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
            - type: array
              items: {}
        code:
          type: string
      required:
        - success
        - error
    Success:
      type: object
      properties:
        success:
          type: boolean
          example: true
      required:
        - success
    Campaign:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        name:
          type: string
        status:
          type: string
        script_id:
          type: string
        total_calls:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Create and manage API keys in your AgentCallback account under Dashboard
        > API Keys.

````