---
title: "update"
method: PATCH
path: "/api/agent_schedules/{id}"
tags: ["AgentSchedule"]
---

# update

`PATCH /api/agent_schedules/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `data` object, required
    - `type` string, required
    - `id` string, required
    - `attributes` object, required
      - `projectId` string
      - `agentId` string
      - `formInterfaceId` string
      - `name` string
      - `repeatUnit` string
      - `repeatFrequency` integer
      - `repeatSubFrequency` integer[]
      - `timezone` string
      - `startAt` string
      - `description` string
      - `parameterValues` object
        - `param1` string
        - `updated_param` string
        - `new_image_param` object[]
          - `binaryBase64` string, required
          - `contentType` string, required
        - `regular_param1` string
        - `attachment_param` object[]
          - `binaryBase64` string, required
          - `contentType` string, required
        - `category` string
        - `notes` string
      - `sendEmailNotification` boolean
      - `endAt` string

## Response `200`

allows creator to edit their own agent schedule

## Other responses

- `400` — rejects emailRecipients in request payload for updates
- `401` — denies non-creator admin from editing agent schedule in same account
- `403` — returns 403 Forbidden when trying to update to cross-account agent
- `404` — PATCH /api/agent_schedules/:id returns 404 Not Found
- `422` — returns validation error when updating parameter_values with invalid attachments

---

[API](https://skmtc.net/treasure/apis/llm-api.md) · [All operations](https://skmtc.net/treasure/apis/llm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/llm-api/revisions/56f275763358/schema)
