> ## Documentation Index
> Fetch the complete documentation index at: https://getfloo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Cron Job

> Manually trigger a cron job.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/apps/{app_id}/cron/{name}/run
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/cron/{name}/run:
    post:
      tags:
        - cron
      summary: Run Cron Job
      description: Manually trigger a cron job.
      operationId: cron_run_cron_job
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: name
          in: path
          required: true
          schema:
            type: string
            title: Name
        - name: env
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/EnvironmentName'
            default: dev
        - name: preview
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Preview
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CronJobRunResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    EnvironmentName:
      type: string
      enum:
        - dev
        - prod
        - preview
      title: EnvironmentName
      description: >-
        Enumerate the persisted development, production, and preview environment
        names.
    CronJobRunResponse:
      properties:
        name:
          type: string
          title: Name
        triggered:
          type: boolean
          title: Triggered
        message:
          type: string
          title: Message
      type: object
      required:
        - name
        - triggered
        - message
      title: CronJobRunResponse
      description: Response for a manual cron job trigger.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.