Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,730
Community Members
 
Community Events
168
Community Groups

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

Atlassian Community Events