---
title: "POST service schedule preview"
method: POST
path: "/admin/orders/{order_id}/service-items/schedule-preview"
tags: ["Service Items"]
---

# POST service schedule preview

`POST /admin/orders/{order_id}/service-items/schedule-preview`

## Request

- Base URL: `https://api.equipmentshare.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equipmentshare.com/admin/orders/{order_id}/service-items/schedule-preview`
- Auth: HTTP bearer

What saving this schedule would produce: visits per period, visits generated now, the first visits, and the visits a DST change moves or puts on one instant. Writes nothing.

## Path parameters

- `order_id` integer, required

## Request body

- ServiceSchedulePreviewRequest
  - `cadence` 'one_time' | 'recurring'
  - `location_id` integer, nullable
  - `schedule` ServiceSchedule, required
    - `date` string, date
    - `ends` ServiceEnds, nullable
      - `count` integer, nullable
      - `type` 'never' | 'on_date' | 'after_count', required
      - `until_date` string, date, nullable
    - `rules` ServiceRule[]
      - `by_month_day` integer[], nullable
      - `by_weekday` integer[], nullable
      - `frequency` 'daily' | 'weekly' | 'monthly', required
      - `interval` integer
      - `times` string[], required
    - `start_date` string, date
    - `times` string[]
  - `service_item_id` integer, nullable
  - `time_zone` string, nullable

## Response `200`

Preview.

## Other responses

- `400`: Bad request - validation failed.
- `401`: Unauthorized - valid Bearer token required.
- `403`: Forbidden - missing the fulfillment permission.
- `404`: Not found - order, service item or visit not found on that order.
- `409`: Conflict - the service item's state does not allow the change.

## Changes

- **2026-10-21** `118d6982a681`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/equipmentshare/apis/es-api/changes/admin/orders/:order_id/service-items/schedule-preview/post.md)

---

[API](https://skmtc.dev/equipmentshare/apis/es-api.md) - [All operations](https://skmtc.dev/equipmentshare/apis/es-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equipmentshare/apis/es-api/revisions/40651e1558ac?raw)
