# Update an availability template **PATCH /employees/{employeeId}/availability-templates/{id}** Update an availability template by its ID ## 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 - **employeeId** (string) - **id** (string) ## Body parameters Content-type: application/json - **name** (string) - **type** (string) - **timeZone** (string) - **color** (string | null) - **order** (integer | null) ## Responses ### 200: Successful operation #### Body Parameters: application/json (object) - **data** (object) ### 404: Resource not found #### Body Parameters: application/json (object) - **errors** (array[object]) ### 422: Business validation failed * `AVAILABILITY_TEMPLATE_DEFAULT_TEMPLATE_MODIFICATION_NOT_ALLOWED` See [Error codes](#topic-error-codes) #### Body Parameters: application/json (object) - **errors** (array[object]) [Powered by Bump.sh](https://bump.sh)