Hello. I am creating new users through the API in ...
# api
m
Hello. I am creating new users through the API in self-hosted but I have seen I cannot set them a password, a message error is shown
"message": "Unrecognized key(s) in object: 'password'"
So I am wondering how I can use these users to sign-in in the cal UI? I've seen @zomars could know something about this regarding the sign-up endpoint.
z
Hi @Miguel Estepa I was OOO for week. Do you still need assistance with this?
n
@Miguel Estepa i will have to do the same thing soon, did you succeed to do it ? If yes, can you share how ?
j
@zomars I am having the same problem but with bookings. The docs say that with the booking endpoint I can patch and edit the booking but I can only edit the title, and not other fields:
message: "Unrecognized key(s) in object: 'id', 'attendees', 'user', 'metadata', 'status'"
Why is that?
z
Feel free to detail you use case in an issue here: https://github.com/calcom/api/issues/new
n
@zomars is it possible to create a user with a password using cal.com api ? I was looking at the documentation here (https://documenter.getpostman.com/view/20666831/Uz5ArJni#4584125e-901d-4c76-95f9-66890aa2e11a) but the body doesn't include a password field. How do i create a user with a password ? And how can i log it in through the api ? (i want a user registering to myapp.fr directly have an account created in cal.myapp.fr (which will be my self hosted instance) and log the user in both places when he logs in to myapp.fr. (i just got access to the api submodule and i was reading documentation, i haven't installed or played with it yet) Thanks for your help
z
It is not currently supported but feel free to open up a feature reqeust as well 🙏
n
Thanks @zomars, i might do that indeed cause i don't see a workaround yet with the existing features to achieve what i want. Just to have an idea, how long does it take for a feature to be processed ? Is it a few weeks or a few months ?
m
Just to inform we managed to create a user with a password encoded bypassing the API. Just insert the row directly into the database, with JDBC in Java is quite straightforward
@zomars we no longer need assistance with this cause we decide to decline Cal.com as our third party. Our business case depends a lot on the API (we already have our custom front-end) and it's not mature to fit our needs. Thanks for the support