---
title: "Update a Template"
method: PUT
path: "/management/v2/payroll-export-templates/{id}"
tags: ["Payroll Export Template"]
---

# Update a Template

`PUT /management/v2/payroll-export-templates/{id}`

## Request

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

Update a Template.

## Path parameters

- `id` string, required

## 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.

- PayrollExportTemplatesUpdateResponse
  - `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)
