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

# Load template

`POST /management/v2/schedule/template:load`

## Request

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

Load template.

## Request body

- ModelLoadTemplatePayload
  - `templateIds` integer[]
  - `viewType` 'DAILY' | 'DAILY_EMP' | 'WEEKLY' | 'WEEKLY_EMPLOYEE' | 'FORTNIGHTLY' | 'FORTNIGHTLY_EMP' | 'MONTHLY_EMPLOYEE' | 'FOURWEEKLY_EMP' | 'MONTHLY'
  - `locationIds` integer[]
  - `targetDate` string
  - `areaIds` integer[]
  - `employeeIds` integer[]

## Response `200`

A successful response.

- ScheduleTemplateLoadTemplateResponse
  - `success` boolean
  - `data` LoadTemplateResponseLoadResponseData
    - `correlationId` string
    - `jobId` string

---

[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)
