Unable to call Rest API from cURL

Hi all,

Please check attached scrrenshots I try to call rest api from Curl exe and Is there anything I am doing wrong in this

Any update on this please

@SarikaDalal Just a heads up but the way you’ve manually crossed out your password in that screenshot means someone can zoom in and work out your password pretty easily.

I’d recommend you change your password after posting this publicly given 8 characters of your password are also visible in another post.


Thanks for update but its a temporary API token and after posting screenshot i revoke that.

Hmm… not sure. Perhaps try leaving out one argument at a time (i.e. remove --user 'foo@bar') and see if will execute. I don’t have Windows handy, but perhaps the shell is treating some characters (quotes, @-sign, etc.) in a funky way.

You can also try using longer form:

curl --location --request PUT 'https://foo.atlassian.net/foo/bar/TEST-1/blah' \
--header 'Content-Type: application/json' \
--user 'foo@bar.com:api_token'
--data-raw '{
	"foo": "bar"