POST
/api/public/v1/appointment-availability

Create availability window

Add a weekly availability window for a location.

Request Body

PropertyTypeDescription
locationIdstringOwning location.
dayOfWeeknumber0=Sun, 1=Mon, ... 6=Sat.
startTimestring24h "HH:MM".
endTimestring24h "HH:MM".
isActivebooleanWhether enforced (default true).
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/appointment-availability" \
  -H "Authorization: Bearer your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "locationId": "loc_abc",
    "dayOfWeek": 1,
    "startTime": "09:00",
    "endTime": "17:00"
  }'
200Example response
json
{
  "message": "Availability window created successfully!",
  "content": {
    "availability": {
      "id": "av_1"
    }
  }
}