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

# Run Due

> Materialize every active template in this org whose next_run_date has
arrived, catching up any missed periods, and advance each schedule.

Idempotent within a day: a template is only due while next_run_date <= today,
and each generated occurrence advances the date past today. Safe to call on
every page load or from a daily cron.



## OpenAPI

````yaml /api/openapi-cutmake.json post /api/v1/expense-templates/run-due
openapi: 3.1.0
info:
  title: VM App API
  version: 0.1.0
servers:
  - url: https://vinmake-erp.onrender.com
security: []
paths:
  /api/v1/expense-templates/run-due:
    post:
      tags:
        - 'Admin Sector: Expense Templates'
      summary: Run Due
      description: >-
        Materialize every active template in this org whose next_run_date has

        arrived, catching up any missed periods, and advance each schedule.


        Idempotent within a day: a template is only due while next_run_date <=
        today,

        and each generated occurrence advances the date past today. Safe to call
        on

        every page load or from a daily cron.
      operationId: run_due_api_v1_expense_templates_run_due_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunDueResponse'
        '401':
          description: Unauthorized
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    RunDueResponse:
      properties:
        generatedCount:
          type: integer
          title: Generatedcount
        requestIds:
          items:
            type: string
          type: array
          title: Requestids
      type: object
      required:
        - generatedCount
      title: RunDueResponse
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/login

````