---
title: "GET /program/getProgram/{id}"
method: GET
path: "/program/getProgram/{id}"
tags: ["ProgramService"]
---

# GET /program/getProgram/{id}

`GET /program/getProgram/{id}`

Only supports programs with a single valve and fixed start times

## Path parameters

- `id` string, required

## Response `200`

OK

- GetProgramResponse
  - `program` Program — A program consists of planned runs for a day, as well as a cadence to repeat. A program has either a daily_interval cadence or a days_of_week cadence, but never both
    - `id` string
    - `name` string
    - `color` string
    - `enabled` boolean
    - `startOn` Date
      - `year` integer
      - `month` integer
      - `day` integer
    - `endOn` Date
      - `year` integer
      - `month` integer
      - `day` integer
    - `dailyInterval` DailyIntervalCadence
      - `intervalDays` integer
    - `daysOfWeek` DaysOfWeekCadence
      - `daysOfWeek` string[]
    - `plannedRuns` PlannedRuns — Planned runs for the day
      - `runs` PlannedRunsPlannedRun[]
        - `startAt` Time
          - `hour` integer
          - `minute` integer
          - `second` integer
        - `durationSec` integer
    - `assignments` Assignment[] — A list of valve IDs this program controls.
      - `entityId` string — Represents a (program, valve) relationship. This must be a valve ID.
    - `rainSkipEnabled` boolean

---

[API](https://skmtc.net/rach/apis/readme.md) · [All operations](https://skmtc.net/rach/apis/readme/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rach/readme/versions/7cb72b0455d5/schema)
