---
title: "Update schedule target"
method: PATCH
path: "/scheduling/v1/schedules/{schedule_id}/target"
tags: ["Schedules"]
---

# Update schedule target

`PATCH /scheduling/v1/schedules/{schedule_id}/target`

## Request

- Base URL: `https://api.mitti.com`
- URL: `https://api.mitti.com/scheduling/v1/schedules/{schedule_id}/target`
- Auth: HTTP bearer

Updates schedule targets (sites or assets) and related configuration.

## Path parameters

- `schedule_id` string, required

## Request body

- union: Updates schedule targets (sites or assets) and related configuration. Exactly one update option must be set.
  - object: Update sites in the schedule target.
    - `sites` S12SchedulingV1UpdateSites, required: UpdateSites sets the complete list of sites this schedule applies to. The provided list replaces the current set of site targets entirely.
      - `site_ids` string[], required: The complete desired list of site IDs for this schedule. Replaces the current site targets - sites not in this list will be removed, and sites not currently targeted will be added.
  - object: Update assets in the schedule target.
    - `assets` S12SchedulingV1UpdateAssets, required: UpdateAssets modifies the list of assets the schedule applies across.
      - `add_assets` S12SchedulingV1Assets: Assets specifies a list of assets.
        - `asset_ids` string[], required: A list of asset IDs.
      - `remove_assets` S12SchedulingV1Assets: Assets specifies a list of assets.
        - `asset_ids` string[], required: A list of asset IDs.

## Response `200`

A successful response.

- S12SchedulingV1UpdateScheduleTargetResponse: Response message for UpdateScheduleTarget.

## Other responses

- `default`: An unexpected error response.

---

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