---
title: "Upload a document template to the employer dossier"
method: POST
path: "/v2/providers/employers/{employerId}/documenttemplates"
tags: ["Document template"]
---

# Upload a document template to the employer dossier

`POST /v2/providers/employers/{employerId}/documenttemplates`

## Request

- Base URL: `https://api.loket.nl`
- URL: `https://api.loket.nl/v2/providers/employers/{employerId}/documenttemplates`
- Auth: none required

__Activity name :__ <a href="https://developer.loket.nl/Activities/PostDocumentTemplateByEmployerId" target="_blank">PostDocumentTemplateByEmployerId</a>

__Metadata:__ Possible options for fields of the type 'metadata' can be acquired(GET)by adding `/metadata` to the POST URL.

Upload a document template within the employer dossier (werkgeverdossier). Via Qwoater.

## Path parameters

- `employerId` string, uuid, required

## Headers

- `Authorization` string, required
- `Accept` string, required

## Request body

- DocumentPostObject4
  - `qwoaterDocumentId` string, uuid: Qwoater documentId
  - `description` string: The description defined by the submitter. Qwoater: Docfield 33 Omschrijving
  - `year` integer, nullable: The year the document relates to. Qwoater: Docfield 86 Jaar
  - `attribute` string, nullable: The attribute defined by the submitter. Qwoater: Docfield 32 Kenmerk
  - `dateOfAlert` string, date, nullable: The time at which document will alerted for cancellation. Qwoater: AlertDate
  - `targetCategory` string, metadata: The target category will be used to set the category for a document which is generated with the template. Provided value must be a valid metadata option. Qwoater: DocumentType
  - `dateOfSubmission` string, date: The time at which document was submitted. Qwoater: CreationDate
  - `filename` string: The name of the file. Qwoater: Filename
  - `file` string: base64 encoded document file.

## Response `202`

Accepted

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/loket/apis/loket-api.md) - [All operations](https://skmtc.dev/loket/apis/loket-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loket/apis/loket-api/revisions/32170564148f?raw)
