---
title: "Set the run schedule"
method: PUT
path: "/org/run-schedule"
tags: ["Run Configuration"]
---

# Set the run schedule

`PUT /org/run-schedule`

## Request

- Base URL: `https://apiv2.senso.ai/api/v1`
- URL: `https://apiv2.senso.ai/api/v1/org/run-schedule`
- Auth: API key in header `X-API-Key`

Replaces the organization's question-run schedule with the given set of weekdays (0 = Sunday … 6 = Saturday) and returns the updated schedule. Content-generation runs are scheduled separately (`PATCH /org/content-generation`).

## Request body

- object
  - `schedule` integer[], required: Weekdays to run on, 0 = Sunday … 6 = Saturday.

## Response `200`

The updated run schedule.

- OrgRunScheduleResponse
  - `schedule` integer[], required: Weekdays the org's runs are scheduled on, 0 = Sunday … 6 = Saturday.

## Other responses

- `400`: The request body was invalid — either it failed field validation (`ValidationErrorResponse`) or was otherwise malformed (`ErrorResponse`).
- `401`: Missing or invalid credentials — supply a valid org API key in the `X-API-Key` header.

---

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