Hi, I am looking into <Cal.com> for my company. F...
# developers
m
Hi, I am looking into Cal.com for my company. From the docs I have found Postgres to be pre-requisite. We use MongoDB and is there any way we can use mongo db instead of postgres. Thanks.
z
Since we're using prisma to handle DB queries you could switch to Mongo but you would have to maintain it yourself
m
@zomars if i don’t use local hosting, i won’t have to worry about db right?
z
I don't understand the question
m
I got the answer. how can i find availability of certain user i have user with id 23860 https://api.cal.com/v1/users/23860/availability?apiKey=myApiKey returns 404
z
You can see all our current available endpoints here: https://documenter.getpostman.com/view/20666831/Uz5ArJni
m
still not able to get the availabilities
z
cc @Agusti
m
even when I try to create one
a
Hello @Muhammad Abdullah We’re working on a new endpoint to get the users/event-types availabilities like we do on web, this has not been shipped yet but I already got the OK from @Bailey to ship it, so should be available real soon!
The /availabilities and /schedules CRUD endpoints are available, but those are only to setup your settings for those. Don’t return actually available time slots (if thats what you’re looking for)
Example /availablities in my case
Copy code
{
  "availabilities": [
    {
      "id": 40364,
      "startTime": "1970-01-01T09:00:00.000Z",
      "endTime": "1970-01-01T21:00:00.000Z",
      "date": null,
      "scheduleId": null,
      "days": [
        1,
        2,
        3,
        4,
        5
      ],
      "userId": 14566,
      "eventTypeId": null
    }
  ]
}
Let me get back at you with a post example later too @Muhammad Abdullah
Get with an availability ID you own should work / is working for me, let me know if you can try again please
🙏 1