Hi Rhys,
I think you need to set the "content-type" header to be "application/json" for most operations.
The login endpoint will need a "application/x-www-form-urlencoded" content type and you'll need to pass username, password and rememberMe as form parameters in the body.
Not sure how this is done specifically with curl though.
Here's how I set it up with ARC, which is a Chrome extension to send REST requests :
You may also check
the spreaper code to see how we interact with the REST endpoints from Python.
Note that you don't need a jwt as long as you pass the JSESSIONID cookie in all your requests.
Cheers,
-----------------
Alexander Dejanovski
France
@alexanderdeja
Consultant
Apache Cassandra Consulting