# Apply an availability template **POST /employees/{id}/applied-templates** Apply an availability template ## Servers - https://api.staging.pexipengage.com/enterprises/acme: https://api.staging.pexipengage.com/enterprises/acme () ## Authentication methods - O auth2 ## Parameters ### Headers - **Authorization** (string) Bearer token used for authorization - **X-Correlation-Id** (string) Unique identifier to allow referencing a particular transaction or event chain ### Path parameters - **id** (string) Primary identifier of the requested resource ### Body: application/json (object) - **startDate** (string) - **endDate** (string) - **availabilityTemplateId** (string) ## Responses ### 201 Successful operation #### Body: application/json (object) - **data** (object) ### 404 Resource not found #### Body: application/json (object) - **errors** (array[object]) ### 422 Business validation failed * `APPLIED_TEMPLATE_DEFAULT_TEMPLATE` * `APPLIED_TEMPLATE_OVERLAP` * `APPLIED_TEMPLATE_START_AFTER_END` See [Error codes](#topic-error-codes) #### Body: application/json (object) - **errors** (array[object]) [Powered by Bump.sh](https://bump.sh)