---
title: "Trigger force run"
method: POST
path: "/tasks/scheduled/{id}/run"
tags: ["Scheduled Tasks"]
---

# Trigger force run

`POST /tasks/scheduled/{id}/run`

Use when you need to run a scheduled export immediately (e.g. on-demand report or catch-up). Supports optional custom time range.

## Path parameters

- `id` string, required

## Request body

- TriggerForceRunRequest
  - `end_time` string, date-time
  - `start_time` string, date-time

## Response `200`

Returns workflow details and time range

- TriggerForceRunResponse
  - `end_time` string, date-time
  - `message` string
  - `mode` string — "custom" or "automatic"
  - `start_time` string, date-time
  - `workflow_id` string

## Other responses

- `400` — Invalid request
- `404` — Resource not found
- `500` — Server error

## Changes

- **2026-07-15** `f8ecf435d25d` — 3 warning
  - added the new `not_implemented` enum value to the `code` response property for the response status `400`
  - added the new `not_implemented` enum value to the `code` response property for the response status `404`
  - added the new `not_implemented` enum value to the `code` response property for the response status `500`
- **2026-07-09** `646d6658479b` — 2 breaking
  - the `end_time` request property type/format changed from `string`/`` to `string`/`date-time`
  - the `start_time` request property type/format changed from `string`/`` to `string`/`date-time`
- **2026-07-09** `4b1a811c4179` — 2 breaking, 2 info
  - the `end_time` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `start_time` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `end_time` request property type/format was generalized from `string`/`date-time` to `string`/``
  - the `start_time` request property type/format was generalized from `string`/`date-time` to `string`/``
- …earlier changes not shown

[Full history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/tasks/scheduled/:id/run/post.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/9cd0dab91f5c/schema)
