---
title: "Generate a document for an concept employee"
method: POST
path: "/v2/providers/employers/conceptemployees/{conceptEmployeeId}/documenttemplates/{documentId}/generatedocument"
tags: ["Generate document"]
---

# Generate a document for an concept employee

`POST /v2/providers/employers/conceptemployees/{conceptEmployeeId}/documenttemplates/{documentId}/generatedocument`

## Request

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

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

__Metadata:__ Available templates can be acquired(GET) at Employer level(/v2/v2/providers/employers/{conceptEmployeeId}/documenttemplates/generatedocument/metadata).

Generate a document for an concept employee and store it in the employment dossier.  Via Qwoater.

## Path parameters

- `conceptEmployeeId` string, uuid, required
- `documentId` string, required

## Headers

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

## Request body

- DocumentPostObject5
  - `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 date at which document will alerted for cancellation. Qwoater: AlertDate
  - `filename` string: The name of the file. Qwoater: Filename
  - `templateEmployerId` string, uuid: The unique identifier of the employer to which the template belongs (GUID/UUID).
  - `referenceDate` string, date: This date will be used to select date depending data such as department and function.

## Response `200`

OK. Document is generated and stored.

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