FinOps Schedules
Create and manage resource schedules: daily stop and start times for apps, add-ons, workspaces, and self-hosted models, with pause, resume, run-now, execution history, and overrides that keep one resource running through the schedule's stops. See Resource Schedules for how schedules behave.
All endpoints require:
- An API key in the
X-API-Keyheader with thefinops:readscope (reads) or thefinops:writescope (changes). - An API key that belongs to a platform administrator. Other keys get
403 forbidden.
Every timestamp is an ISO 8601 UTC instant with a Z offset.
Schedule Object
{
"_id": "66f9b2c41d3e8a7f5c2b9e10",
"name": "Dev weeknight shutdown",
"description": "Stop the development group overnight and at weekends",
"organizationId": null,
"createdBy": "okRpaKPh8B9asdKb2",
"scope": {
"type": "resource_group",
"resourceType": null,
"resourceId": null,
"resourceIds": [],
"tags": {},
"userId": null,
"resourceGroupId": "E4k5Ttqk7dtMpwbXx"
},
"scopeName": "Development Environment",
"schedule": {
"timezone": "America/New_York",
"stopTime": "19:00",
"startTime": "08:00",
"daysOfWeek": [1, 2, 3, 4, 5],
"stopCron": null,
"startCron": null
},
"enabled": true,
"status": "active",
"overrides": [
{
"_id": "app:hT7kQw2pLm9xRz4vB",
"resourceType": "app",
"resourceId": "hT7kQw2pLm9xRz4vB",
"skipUntil": "2026-09-30T02:00:00Z",
"reason": "Evening customer demo",
"createdBy": "okRpaKPh8B9asdKb2",
"createdAt": "2026-09-29T15:12:40.120000Z"
}
],
"lastStopAt": "2026-09-28T23:00:00.412871Z",
"lastStartAt": "2026-09-29T12:00:00.318204Z",
"nextStopAt": "2026-09-29T23:00:00Z",
"nextStartAt": "2026-09-30T12:00:00Z",
"resourcesAffected": [],
"executionHistory": [
{
"action": "start",
"executedAt": "2026-09-29T12:00:00.318204Z",
"resourcesAffected": 2,
"success": true,
"errorMessage": null,
"resources": [
{ "resourceType": "app", "resourceId": "hT7kQw2pLm9xRz4vB", "resourceName": "dev-dashboard", "success": true },
{ "resourceType": "addon", "resourceId": "c9Xy3aP0qW8eRt5uN", "resourceName": "dev-postgres", "success": true }
]
}
],
"createdAt": "2026-09-01T16:02:41.284000Z",
"updatedAt": "2026-09-29T12:00:00.318204Z"
}
| Field | Description |
|---|---|
_id | Schedule ID. |
name, description | Name (1 to 100 characters) and optional description (up to 500). |
organizationId | null unless one was given at creation. It does not change which resources a platform, user, or resource_group schedule controls. |
createdBy | User ID of the administrator who created the schedule. |
scope.type | platform (every app, add-on, workspace, and self-hosted model), user (every one the user owns), or resource_group (the group's apps, add-ons, workspaces, and self-hosted models). |
scope.user_id | Set for user scope. |
scope.resource_group_id | Set for resource_group scope. |
scopeName | The user's name or the resource group's name, for user and resource_group scopes; otherwise null. |
schedule.timezone | IANA timezone the times are in. |
schedule.stop_time, schedule.start_time | HH:MM, 24-hour. Resources stop at stopTime and start at startTime. |
schedule.days_of_week | Days the schedule acts on: 1 (Monday) to 7 (Sunday). Both the stop and the start happen on each listed day. |
enabled | false when the schedule is paused. |
status | active (acts at its times) or paused (does nothing until resumed). |
overrides | The schedule's overrides: resources kept out of its stops until a given time. |
lastStopAt, lastStartAt | When the schedule last stopped and started its resources, scheduled or run now. |
nextStopAt, nextStartAt | When the schedule next stops and starts its resources; null while it is paused. |
resourcesAffected | Always an empty list; each run's resources are in executionHistory. |
execution_history[] | Every run, oldest first: action (stop or start), executedAt, resourcesAffected (how many resources were stopped or started), success (false when any resource could not be stopped or started), and resources (each resource's resourceType, resourceId, resourceName, and success). |
createdAt, updatedAt | When the schedule was created and last changed (including each run). |
GET /api/v1/finops/schedules
List schedules, newest first.
Scope: finops:read
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | No | Case-insensitive match on part of the name |
status | string | No | Only schedules with this status: active or paused |
scopeType | string | No | Only schedules of this scope: platform, user, or resource_group |
enabled | string | No | Only enabled (true) or paused (false) schedules |
limit | integer | No | Page size (default 50, maximum 200) |
cursor | string | No | meta.nextCursor of the previous page; omit for the first page |
Response 200 OK
{
"data": [
{
"_id": "66f9b2c41d3e8a7f5c2b9e10",
"name": "Dev weeknight shutdown",
"scope": { "type": "resource_group", "resourceGroupId": "E4k5Ttqk7dtMpwbXx" },
"schedule": { "timezone": "America/New_York", "stopTime": "19:00", "startTime": "08:00", "daysOfWeek": [1, 2, 3, 4, 5] },
"enabled": true,
"status": "active"
}
],
"meta": {
"total": 1,
"limit": 50,
"nextCursor": null,
"requestId": "783fc8f0-67cb-49cd-829c-90f176be580f"
}
}
Each item is a full Schedule object (shortened above).
POST /api/v1/finops/schedules
Create a schedule. Its creator is the key's user.
Scope: finops:write
Request Body
{
"name": "Dev weeknight shutdown",
"description": "Stop the development group overnight and at weekends",
"scope": { "type": "resource_group", "resourceGroupId": "E4k5Ttqk7dtMpwbXx" },
"schedule": {
"timezone": "America/New_York",
"stopTime": "19:00",
"startTime": "08:00",
"daysOfWeek": [1, 2, 3, 4, 5]
},
"enabled": true
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Schedule name (1 to 100 characters) |
scope | object | Yes | type: platform, user, or resource_group. A user scope also needs userId; a resource_group scope needs resourceGroupId |
schedule | object | Yes | timezone (IANA name) and daysOfWeek (1 = Monday to 7 = Sunday) are required; stopTime and startTime are HH:MM, 24-hour |
description | string | No | Schedule description (up to 500 characters) |
enabled | boolean | No | true (default) creates the schedule active; false creates it paused |
Response 201 Created
data is the new Schedule object.
GET /api/v1/finops/schedules/:id
Get one schedule, with its execution history.
Scope: finops:read
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Schedule ID |
Response 200 OK
data is the full Schedule object.
PATCH /api/v1/finops/schedules/:id
Change a schedule. Only the fields you send change. A new schedule recomputes the next stop and start times.
Scope: finops:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Schedule ID |
Request Body
{
"name": "Dev weeknight shutdown (revised)",
"schedule": {
"timezone": "America/New_York",
"stopTime": "20:00",
"startTime": "08:00",
"daysOfWeek": [1, 2, 3, 4, 5]
}
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Schedule name |
description | string | No | Schedule description |
scope | object | No | The whole scope, as for create |
schedule | object | No | The whole timing, as for create |
enabled | boolean | No | true makes the schedule active, false makes it paused |
Response 200 OK
data is the updated Schedule object.
DELETE /api/v1/finops/schedules/:id
Delete a schedule permanently. Its resources are left as they are.
Scope: finops:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Schedule ID |
Response 204 No Content
POST /api/v1/finops/schedules/:id/pause
Pause a schedule: it does nothing at its times until it is resumed. Pausing does not start or stop any resources.
Scope: finops:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Schedule ID |
Response 200 OK
The schedule, as GET /finops/schedules/:id shows it, paused.
POST /api/v1/finops/schedules/:id/resume
Resume a paused schedule, making it active again.
Scope: finops:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Schedule ID |
Response 200 OK
The schedule, as GET /finops/schedules/:id shows it, active again.
POST /api/v1/finops/schedules/:id/execute
Stop or start the schedule's resources now, whatever its times and whether it is active or paused. The run is recorded in the schedule's execution history.
Scope: finops:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Schedule ID |
Request Body
{ "action": "stop" }
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | stop or start |
Response 200 OK
{
"data": {
"action": "stop",
"executedAt": "2026-10-11T18:00:00Z",
"resourcesAffected": 2,
"success": true,
"errorMessage": null,
"resources": [
{ "resourceType": "app", "resourceId": "hT7kQw2pLm9xRz4vB", "resourceName": "dev-dashboard", "success": true },
{ "resourceType": "addon", "resourceId": "c9Xy3aP0qW8eRt5uN", "resourceName": "dev-postgres", "success": true }
]
},
"meta": { "requestId": "a8e3f1b2-6c4d-4e9f-b0a7-2d5c8e1f3b64" }
}
The run, as the schedule's history records it (the same entry GET .../history lists): resourcesAffected counts the resources that were stopped or started, success is false when any of them could not be (errorMessage says why), and resources has one entry for each resource the run tried, with its success.
GET /api/v1/finops/schedules/:id/history
Get a schedule's runs, newest first, a page at a time. Every run is kept. The schedule page's History tab shows the same runs.
Scope: finops:read
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Schedule ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Page size (default 50, maximum 200) |
cursor | string | No | meta.nextCursor of the previous page; omit for the first page |
Response 200 OK
{
"data": [
{
"action": "start",
"executedAt": "2026-09-29T12:00:00.318204Z",
"resourcesAffected": 2,
"success": true,
"errorMessage": null,
"resources": [
{ "resourceType": "app", "resourceId": "hT7kQw2pLm9xRz4vB", "resourceName": "dev-dashboard", "success": true },
{ "resourceType": "addon", "resourceId": "c9Xy3aP0qW8eRt5uN", "resourceName": "dev-postgres", "success": true }
]
}
],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "0c7b9e2d-4f1a-4b3c-8d6e-9a2f5c1e7b48" }
}
Overrides
An override keeps one resource a schedule controls out of the schedule's stops until skipUntil; the schedule's starts still apply to it. Use one to keep a workspace or app running through an evening demo without pausing the whole schedule. When skipUntil passes, the next stop includes the resource again; the override stays listed (and shows as ended on the schedule page) until you delete it.
A resource has at most one override per schedule, so an override's ID is the resource it is for: <resourceType>:<resourceId>, for example workspace:Xa8kP2qL9mZr3tVbN. In a path, send the : as is or percent-encoded (%3A).
Override Object
{
"_id": "app:hT7kQw2pLm9xRz4vB",
"resourceType": "app",
"resourceId": "hT7kQw2pLm9xRz4vB",
"skipUntil": "2026-09-30T02:00:00Z",
"reason": "Evening customer demo",
"createdBy": "okRpaKPh8B9asdKb2",
"createdAt": "2026-09-29T15:12:40.120000Z"
}
| Field | Description |
|---|---|
_id | Override ID: <resourceType>:<resourceId>. |
resourceType | app, addon, workspace, or self-hosted-model. |
resourceId | The resource's ID. |
skipUntil | When the override ends. Stops before this time skip the resource. |
reason | Why the resource is kept running, or null. |
createdBy, createdAt | The administrator who added the override, and when. |
GET /api/v1/finops/schedules/:id/resources
List the resources the schedule controls now (the apps, add-ons, workspaces, and self-hosted models its scope covers), a page at a time. skippedUntil is set on each resource an override keeps out of the stops. Compare it with the schedule's nextStopAt: a resource whose skippedUntil is later is not stopped at the next stop.
Scope: finops:read
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Schedule ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Page size (default 50, maximum 200) |
cursor | string | No | meta.nextCursor of the previous page |
Response 200 OK
{
"data": [
{ "resourceType": "app", "resourceId": "hT7kQw2pLm9xRz4vB", "name": "dev-dashboard", "organizationId": "org-acme-1a2b3c", "skippedUntil": "2026-09-30T02:00:00Z" },
{ "resourceType": "addon", "resourceId": "c9Xy3aP0qW8eRt5uN", "name": "dev-postgres", "organizationId": "org-acme-1a2b3c", "skippedUntil": null }
],
"meta": { "total": 2, "limit": 50, "nextCursor": null, "requestId": "5b1e8d2a-0f4c-4a7e-9c3b-6d2f1e8a4c90" }
}
GET /api/v1/finops/schedules/:id/overrides
List the schedule's overrides, the latest skipUntil first, a page at a time. Ended overrides are listed until deleted.
Scope: finops:read
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Schedule ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Page size (default 50, maximum 200) |
cursor | string | No | meta.nextCursor of the previous page |
Response 200 OK
data is a list of Override objects.
POST /api/v1/finops/schedules/:id/overrides
Keep one resource out of the schedule's stops until a time. The resource must be one GET .../resources lists. The override's creator is the key's user.
Scope: finops:write
Request Body
{
"resourceType": "app",
"resourceId": "hT7kQw2pLm9xRz4vB",
"skipUntil": "2026-09-30T02:00:00Z",
"reason": "Evening customer demo"
}
| Field | Type | Required | Description |
|---|---|---|---|
resourceType | string | Yes | app, addon, workspace, or self-hosted-model |
resourceId | string | Yes | The resource's ID |
skipUntil | string | Yes | ISO 8601 time the override ends |
reason | string | No | Why the resource is kept running |
Response 201 Created
data is the new Override object.
Errors
| Status | When |
|---|---|
400 | A field is missing or invalid, or the schedule does not control this resource |
404 | No schedule has this ID |
409 | The resource already has an override on this schedule; change it with PATCH |
PATCH /api/v1/finops/schedules/:scheduleId/overrides/:id
Change an override's end time, reason, or both. Only the fields you send change; send "reason": null to clear the reason.
Scope: finops:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
scheduleId | string | Yes | Schedule ID |
id | string | Yes | Override ID (<resourceType>:<resourceId>) |
Request Body
{ "skipUntil": "2026-09-30T04:00:00Z" }
| Field | Type | Required | Description |
|---|---|---|---|
skipUntil | string | No | New ISO 8601 end time |
reason | string | No | New reason |
Send at least one of them.
Response 200 OK
data is the Override object as it is now. 404 when the schedule or the override does not exist.
DELETE /api/v1/finops/schedules/:scheduleId/overrides/:id
Delete an override, so the schedule's stops apply to its resource again.
Scope: finops:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
scheduleId | string | Yes | Schedule ID |
id | string | Yes | Override ID (<resourceType>:<resourceId>) |
Response 204 No Content. 404 when the schedule or the override does not exist.
MCP tools
The same operations are available to agents as MCP tools: list_finops_schedules, create_finops_schedule, get_finops_schedule, update_finops_schedule, delete_finops_schedule, pause_finops_schedule, resume_finops_schedule, execute_finops_schedule, get_finops_schedule_history, list_finops_schedule_resources, list_finops_schedule_overrides, create_finops_schedule_override, update_finops_schedule_override, and delete_finops_schedule_override.