Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting HTTP 405 (not allowed) when trying to GET using Insight REST API

Sergei Gridnevskii
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2022

Hi Team,

I am getting HTTP 405 when I try to perform a REST API call to cloud Insight. Could you please show me what I am doing wrong?

curl -i --request POST \
--url 'https://api.atlassian.com/jsm/insight/workspace/eeeeee-eeee-eeee-eeee-eeeeeeeee/v1/icon/68' \
--user 's.gridnevskii@fxpro.com:eeeeeeeeeeeeeeeeee' \
--header 'Accept: application/json' --header 'Content-Type: application/json'

 
In browser I get 

{"code":401,"message":"Unauthorized"}

1 answer

0 votes
Sergei Gridnevskii
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2022

Sorry my bad, I used wrong request type. Should be GET, not POST

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events