---
title: "save a template"
method: POST
path: "/management/v2/schedule/template"
tags: ["ScheduleTemplate"]
---

# save a template

`POST /management/v2/schedule/template`

## Request

- Base URL: `https://your-subdomain.deputy.deputy.com/api`
- URL: `https://your-subdomain.deputy.deputy.com/api/management/v2/schedule/template`
- Auth: API key in header `OAuth`

save a template.

## Request body

- ScheduleTemplateCreateTemplateRequestData
  - `locationIds` integer[]
  - `shiftIds` integer[]
  - `name` string
  - `description` string
  - `viewType` 'DAILY' | 'DAILY_EMP' | 'WEEKLY' | 'WEEKLY_EMPLOYEE' | 'FORTNIGHTLY' | 'FORTNIGHTLY_EMP' | 'MONTHLY_EMPLOYEE' | 'FOURWEEKLY_EMP' | 'MONTHLY'
  - `start` string
  - `end` string
  - `override` boolean
  - `areaIds` integer[]
  - `employeeIds` integer[]

## Response `200`

A successful response.

- ScheduleTemplateCreateTemplateResponse
  - `success` boolean

---

[API](https://skmtc.dev/deputy/apis/deputy-v2-api.md) - [All operations](https://skmtc.dev/deputy/apis/deputy-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deputy/apis/deputy-v2-api/revisions/78f0278f4608?raw)
