---
title: "Create availabilities for a member (employee)"
method: POST
path: "/v1/public/members/{memberId}/availabilities/dates"
tags: ["Public", "Availabilities"]
---

# Create availabilities for a member (employee)

`POST /v1/public/members/{memberId}/availabilities/dates`

## Request

- Base URL: `https://api.evolia.com`
- URL: `https://api.evolia.com/v1/public/members/{memberId}/availabilities/dates`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/evolia/apis/public-evolia/docs/v1/public/members/:memberId/availabilities/dates/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `memberId` string, required

## Request body

- CreatePublicDateAvailabilitiesRequest
  - `dates` CreatePublicAvailabilityDate[], required: Array of PublicAvailabilityDate.
    - `date` string, required: Date in SQL format yyyy-mm-dd.
    - `fromInM` number: Time from in minutes from 0 to 1440 (0 = 00h00, 1440 = 24h00).
    - `toInM` number: Time to in minutes from 0 to 1440 (0 = 00h00, 1440 = 24h00).
    - `available` boolean: Available or not for this date. If not set, the global available value will be use.
    - `approval` 'needs_approval' | 'approved' | 'refused': Availability approval status. If not set, the global approval value will be use.
  - `timeZone` string: Time zone wanted. If not set the group time zone will be taken.
  - `approval` 'needs_approval' | 'approved' | 'refused': Availability approval status. Acts as a global value for all dates. This value will be use if the approval property is not set in a date object.
  - `available` boolean, required: Available or not. Acts as a global value for all dates. This value will be use if the available property is not set in a date object.
  - `note` string: Note for the manager.

## Response `200`

- PublicDateAvailability
  - `uid` string, required: Availability UID.
  - `fromDate` number, required: Start date of this availability.
  - `toDate` number, required: End date of this availability.
  - `timeZone` string, required: Timezone of this availability.
  - `memberId` string, required: The member UID linked to this availability.
  - `memberCode` object, required: The member code linked to this availability.
  - `groupId` string, required: The group UID linked to this availability.
  - `available` boolean, required: Member availability status.
  - `note` string, required: Note linked to this availability.
  - `createdAt` number, required: Availability creation date.
  - `createdByMemberId` string, required: Member uid who created the availability
  - `createdByMemberCode` object, required: Member code who created the availability
  - `approval` Approval, required
    - `status` string, required: Approval status. NEEDS_APPROVAL, APPROVED or REFUSED
    - `approverId` string, required: Member uid who approved the availability.
    - `refuserId` string, required: Member uid who refused the availability.
    - `approverCode` string, required: Member code who approved the availability.
    - `createdAt` number, required: Creation date of the approval.
    - `updatedAt` number, required: Updated date of the approval.
    - `updatedByMemberId` string, required: Member uid who updated the approval.
    - `updatedByMemberCode` string, required: Member code who updated the approval.
    - `reason` string, required: Reason for unapproved availability.

---

[API](https://skmtc.dev/evolia/apis/public-evolia.md) - [All operations](https://skmtc.dev/evolia/apis/public-evolia/llms.txt) - [OpenAPI document](https://skmtc.dev/evolia/apis/public-evolia/revisions/e42abb18d4b6?raw)
