# Create an availability time range **POST /employees/{employeeId}/availability-templates/{availabilityTemplateId}/time-ranges** Create an availability time range ## Servers - https://api.development.pexipengage.com/enterprises/acme: https://api.development.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) - **availabilityTemplateId** (string) ## Body parameters Content-type: application/json - **dayOfWeek** (string | null) - **startTime** (string) - **endTime** (string) ## Responses ### 201: 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_TIME_RANGE_DAY_TEMPLATE_WITH_DAY_OF_WEEK` * `AVAILABILITY_TIME_RANGE_OVERLAP` * `AVAILABILITY_TIME_RANGE_START_AFTER_END` * `AVAILABILITY_TIME_RANGE_WEEK_TEMPLATE_WITHOUT_DAY_OF_WEEK` See [Error codes](#topic-error-codes) #### Body Parameters: application/json (object) - **errors** (array[object]) [Powered by Bump.sh](https://bump.sh)