Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Invoke-RestMethod : The remote server returned an error: (405) Method Not Allowed.

Hi All,

i am try to post via rest api but always failing 

GET Works, thought it might had to do with permissions

getting this response:

server: AtlassianProxy/1.15.8.1
content-type: text/html;charset=UTF-8
strict-transport-security: max-age=315360000; includeSubDomains; preload
date:
Tue, 27 Apr 2021 14:40:58 GMT
atl-traceid: dc8c7ea888a97773
x-arequestid: e72ccd1c-f843-41bd-83a3-fc994c562dc8
x-aaccountid: 5f4e33091ac29c004559fc33
x-xss-protection: 1; mode=block
timing-allow-origin: *
x-envoy-upstream-service-time: 45
x-content-type-options: nosniff
allow:
HEAD, GET, OPTIONS
expect-ct: report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/global-proxy", enforce, max-age=86400

 

$body = @{
name = 'CICD - 1.0.1'
projectId = XXXXX
}
Invoke-RestMethod -uri 'https://XXXX.atlassian.net/rest/api/2/project/RND/versions' -Headers $headers -Method Post -ContentType 'application/json' -Body ($body | ConvertTo-Json)

 

made my self administrator in the project with no success.

 

how can i fix it

 

thanks

 

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,750 views 8 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you