So, I’m using the JSON API to add a user to a group, it works as expected when I used the terminal but when I’m calling curl from Java I’m getting {"status":400,"error":"Bad Request"}
most probably, the arguments to curl (I assume you are shelling out from Java) are not forwarded correctly. This is often related to incorrect quoting.
If you share the corresponding Java code here, people might be able to guess what might be going wrong.
Thank you. I want to note that some lines end with \ and some not. Also, might the Umlaut have the chance to be the culprit here? Can you also test it with a username without an Umlaut?
Yeah, same issue - at this point, I’m most likely going to look into using a library for doing the request. I just have no idea why it’s being so difficult. Thank you for helping me troubleshoot.