---
title: "Create a new Template"
method: POST
path: "/management/v2/payroll-export-templates"
tags: ["Payroll Export Template"]
---

# Create a new Template

`POST /management/v2/payroll-export-templates`

## Request

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

Create a new Template.

## Request body

- V2modelPayrollExportTemplates
  - `id` integer
  - `label` string
  - `data` string
  - `type` 'TYPE_UNKNOWN' | 'DEPUTY_TEMPLATE' | 'CUSTOMER_TEMPLATE'
  - `scriptId` integer
  - `createdById` integer
  - `createdAt` string, date-time
  - `modifiedAt` string, date-time

## Response `200`

A successful response.

- PayrollExportTemplatesCreateResponse
  - `success` boolean
  - `data` V2modelPayrollExportTemplates
    - `id` integer
    - `label` string
    - `data` string
    - `type` 'TYPE_UNKNOWN' | 'DEPUTY_TEMPLATE' | 'CUSTOMER_TEMPLATE'
    - `scriptId` integer
    - `createdById` integer
    - `createdAt` string, date-time
    - `modifiedAt` string, date-time

---

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