FWIW, in modern curl you can use –json instead of –data and you’d avoid explicitly setting the Content-Type manually. Similarly -X POST (or -X PUT, etc) will force the method to use (but POST is assumed when using –data or –json). Finally you can use -U to set the username/password (or add them to the URL), if you didn’t want to provide the authentication header directly.