# PATCH /v1/projects/:projectId/ads/:platform/adsets/:adsetId/schedule (/docs/api/reference/ads/patch-adset-schedule)



<Endpoint method="PATCH" path="/v1/projects/:projectId/ads/{platform}/adsets/:adsetId/schedule" scope="ads:write:budgets" phase="1" />

Updates an adset's run window or dayparting.

## Body [#body]

<Parameters
  title="Body"
  rows="[
  { name: 'startTime', type: 'string (ISO 8601, UTC Z)', description: 'Adset start time.' },
  { name: 'endTime', type: 'string (ISO 8601, UTC Z)', description: 'Adset end time. Must be in the future and after `startTime`.' },
  { name: 'dayparts', type: 'object[]', description: 'Optional dayparting schedule. Each entry: `{ dayOfWeek: 0-6, startMinute, endMinute }`. Platform-native dayparting may be richer; Layers exposes the common subset.' },
]"
/>

Authority: gated by the &#x2A;*`tactical`** axis.

## See also [#see-also]

* [`PATCH …/adsets/:id/targeting`](/docs/api/reference/ads/patch-adset-targeting)
* [Ads write model](/docs/api/concepts/ads-write-model)
