Skip to main content

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-Key header with the finops:read scope (reads) or the finops:write scope (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"
}
FieldDescription
_idSchedule ID.
name, descriptionName (1 to 100 characters) and optional description (up to 500).
organizationIdnull unless one was given at creation. It does not change which resources a platform, user, or resource_group schedule controls.
createdByUser ID of the administrator who created the schedule.
scope.typeplatform (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_idSet for user scope.
scope.resource_group_idSet for resource_group scope.
scopeNameThe user's name or the resource group's name, for user and resource_group scopes; otherwise null.
schedule.timezoneIANA timezone the times are in.
schedule.stop_time, schedule.start_timeHH:MM, 24-hour. Resources stop at stopTime and start at startTime.
schedule.days_of_weekDays the schedule acts on: 1 (Monday) to 7 (Sunday). Both the stop and the start happen on each listed day.
enabledfalse when the schedule is paused.
statusactive (acts at its times) or paused (does nothing until resumed).
overridesThe schedule's overrides: resources kept out of its stops until a given time.
lastStopAt, lastStartAtWhen the schedule last stopped and started its resources, scheduled or run now.
nextStopAt, nextStartAtWhen the schedule next stops and starts its resources; null while it is paused.
resourcesAffectedAlways 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, updatedAtWhen the schedule was created and last changed (including each run).

GET /api/v1/finops/schedules​

List schedules, newest first.

Scope: finops:read

Query Parameters

ParameterTypeRequiredDescription
qstringNoCase-insensitive match on part of the name
statusstringNoOnly schedules with this status: active or paused
scopeTypestringNoOnly schedules of this scope: platform, user, or resource_group
enabledstringNoOnly enabled (true) or paused (false) schedules
limitintegerNoPage size (default 50, maximum 200)
cursorstringNometa.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
}
FieldTypeRequiredDescription
namestringYesSchedule name (1 to 100 characters)
scopeobjectYestype: platform, user, or resource_group. A user scope also needs userId; a resource_group scope needs resourceGroupId
scheduleobjectYestimezone (IANA name) and daysOfWeek (1 = Monday to 7 = Sunday) are required; stopTime and startTime are HH:MM, 24-hour
descriptionstringNoSchedule description (up to 500 characters)
enabledbooleanNotrue (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

ParameterTypeRequiredDescription
idstringYesSchedule 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

ParameterTypeRequiredDescription
idstringYesSchedule 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]
}
}
FieldTypeRequiredDescription
namestringNoSchedule name
descriptionstringNoSchedule description
scopeobjectNoThe whole scope, as for create
scheduleobjectNoThe whole timing, as for create
enabledbooleanNotrue 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

ParameterTypeRequiredDescription
idstringYesSchedule 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

ParameterTypeRequiredDescription
idstringYesSchedule 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

ParameterTypeRequiredDescription
idstringYesSchedule 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

ParameterTypeRequiredDescription
idstringYesSchedule ID

Request Body

{ "action": "stop" }
FieldTypeRequiredDescription
actionstringYesstop 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

ParameterTypeRequiredDescription
idstringYesSchedule ID

Query Parameters

ParameterTypeRequiredDescription
limitintegerNoPage size (default 50, maximum 200)
cursorstringNometa.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"
}
FieldDescription
_idOverride ID: <resourceType>:<resourceId>.
resourceTypeapp, addon, workspace, or self-hosted-model.
resourceIdThe resource's ID.
skipUntilWhen the override ends. Stops before this time skip the resource.
reasonWhy the resource is kept running, or null.
createdBy, createdAtThe 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

ParameterTypeRequiredDescription
idstringYesSchedule ID

Query Parameters

ParameterTypeRequiredDescription
limitintegerNoPage size (default 50, maximum 200)
cursorstringNometa.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

ParameterTypeRequiredDescription
idstringYesSchedule ID

Query Parameters

ParameterTypeRequiredDescription
limitintegerNoPage size (default 50, maximum 200)
cursorstringNometa.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"
}
FieldTypeRequiredDescription
resourceTypestringYesapp, addon, workspace, or self-hosted-model
resourceIdstringYesThe resource's ID
skipUntilstringYesISO 8601 time the override ends
reasonstringNoWhy the resource is kept running

Response 201 Created

data is the new Override object.

Errors

StatusWhen
400A field is missing or invalid, or the schedule does not control this resource
404No schedule has this ID
409The 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

ParameterTypeRequiredDescription
scheduleIdstringYesSchedule ID
idstringYesOverride ID (<resourceType>:<resourceId>)

Request Body

{ "skipUntil": "2026-09-30T04:00:00Z" }
FieldTypeRequiredDescription
skipUntilstringNoNew ISO 8601 end time
reasonstringNoNew 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

ParameterTypeRequiredDescription
scheduleIdstringYesSchedule ID
idstringYesOverride 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.