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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,187
Community Members
 
Community Events
184
Community Groups

Calling confluence cloud api from JIRA automation gives 302 response

I am trying to call the confluence api to create a page:

POST to:

https://company.atlassian.net/wiki/api/v3/pages

Headers

Content-type: application/json

Authorization: Basic {base64 encode email:api}

Accept: application/json

Custom data:

{
"spaceId": "116588546",
"status": "current",
"title": "{{issue.Country}}",
"parentId": "116588848",
"body": {
"representation": "storage",
"value": "test"
}
}

 However i get a 302 response with the following headers and no page is created.

Date: Wed, 24 May 2023 14:56:44 GMT

Content-Type: application/octet-stream

Content-Length: 0

Server: AtlassianEdge

Atl-Confluence-Via: h:confluence-prod-eu-5-3.prod.atl-paas.net

Location: https://company.atlassian.net/login?application=confluence&dest-url=%2Fwiki%2Fapi%2Fv3%2Fpages

X-Content-Type-Options: nosniff

X-Xss-Protection: 1; mode=block

Atl-Traceid: ab4a3e9b107bca91

Report-To: {"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}

Nel: {"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}

Strict-Transport-Security: max-age=63072000; includeSubDomains; preload

What am I doing wrong?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events