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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Has anyone used Microsoft Flow HTTP connector to call Confluence REST APIs?

I have a MS Flow setup to detect changes in Azure Dev Ops.  When triggered I want to copy the content from the description of the work item and create a new page in Confluence containing the same content.  

I am using the HTTP connector and passing the most simple JSON to demonstrate the idea.

Headers

{ "Content-Type": "application/json", "Accept": "application/json"}

Body

{ "type": "page", "title": "New Page Test6", "space": { "key": "TS" }, "body": { "storage": { "value": "<p>This is <br/> a new page</p>", "representation": "storage" } }}

 

When the flow is triggered I get a success code (i.e. Status = 200) even though Confluence did not actually create the page.

When I run the exact same JSON structure as CURL or through our Confluence API plug (../restbrowser#/resource/api-content/POST) it works just fine.

 

Looking for some guidance on what could possibly be the difference between the two approaches.

Thanks

1 answer

0 votes
Chii Atlassian Team Aug 20, 2019

Can you find and put here the full request being sent by the Microsoft Flow Http Connector (e.g., include all the headers, and the method and body etc)? There must be something different between what is being sent by CURL and the Flow Http Connector.

Also, how is the authentication done? The REST api browser in the administration uses the cookies in the current user's browser. I expect you will need to use BASIC auth instead when making the REST api call from Microsoft Flow Http Connector.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

494 views 24 9
Join discussion

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