---
title: "Create Reccurance Shedule"
method: POST
path: "/api/MobileApp/templates/create_reccurance_shedule"
tags: ["MobileApp"]
---

# Create Reccurance Shedule

`POST /api/MobileApp/templates/create_reccurance_shedule`

## Request

- Base URL: `https://api.leapsurgebi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.leapsurgebi.com/api/MobileApp/templates/create_reccurance_shedule`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/token`
- TypeScript: <https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/docs/api/MobileApp/templates/create_reccurance_shedule/post.ts> (a function with typed inputs; its response is checked against the schema)

**Function**: `create_reccurance_shedule`
**Type**: API Endpoint (POST)

**Purpose**:  
Creates a new recurrence schedule for a given template.

**Request Body**:
- `template_data` (TemplateRecurrenceRequest, required): The data for the recurrence schedule, including the template code, report code, occurances, days, start date, end date, schedule time, and status.

**Response**:
- Returns a success message if the recurrence schedule is created successfully.
- Returns error messages if the customer key is invalid, or if the recurrence schedule already exists.

**Error Handling**:
- Catches exceptions and returns a 500 error with the exception message.

## Headers

- `Customer-Key` string, required

## Request body

- TemplateRecurrenceRequest
  - `app_code` string, required
  - `template_code` string, required
  - `occurance` integer, required
  - `monday` integer
  - `tuesday` integer
  - `wednesday` integer
  - `thursday` integer
  - `friday` integer
  - `saturday` integer
  - `sunday` integer
  - `first_day` integer
  - `last_day` integer
  - `month_days` string
  - `jan` integer
  - `feb` integer
  - `mar` integer
  - `apr` integer
  - `may` integer
  - `jun` integer
  - `jul` integer
  - `aug` integer
  - `sep` integer
  - `oct` integer
  - `nov` integer
  - `dec` integer
  - `start_date` string, date, required
  - `end_date` string, date
  - `indefinite` integer
  - `schedule_time` string, time, required
  - `last_scheduled_time` string, date-time
  - `last_scheduled_status` integer
  - `next_schedule_time` string, date-time, required
  - `whatsapp` integer
  - `email` integer
  - `schedule_format` string
  - `status` boolean, required
  - `modified_on` string, date-time, nullable
  - `modified_by` string, nullable
  - `trigger_time` string, time, required
  - `last_trigger_time` string, date-time
  - `next_trigger_time` string, date-time
  - `last_trigger_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `23b42df3193a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/changes/api/MobileApp/templates/create_reccurance_shedule/post.md)

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) - [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/revisions/13653cb8ee76?raw)
