web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP call to create co...
Power Automate
Answered

HTTP call to create content on existing WIKI page

(0) ShareShare
ReportReport
Posted on by 1,304

Hey,

 

I am trying to create some content on an ADO wiki page via an HTTP connector:

 

Jondoesflow_0-1710334414852.png

 

The projectID and wiki name is coming from a previous GET HTTP call.  That seems to be working.

 

Password is my PAT Token.

 

When this step runs I get this error:

 

Parameter 'versions & newName' cannot be null or empty.
Parameter name: versions & newName

 

I have tried so many different things, but all coming back no go, any ideas?

Thanks,

Jon

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,844 Most Valuable Professional on at

    Hi @Jondoesflow,


    As far as I am aware that PATCH request requires an additional key/value in the headers section. You can use the eTag of your first request for the value of that key.

    https://learn.microsoft.com/en-us/rest/api/azure/devops/wiki/pages/update?view=azure-devops-rest-7.1&tabs=HTTP#request-headers

     

    Below is an example how you can set that up.

     

    1. A GET request which retrieves page with ID 1

     

    getwikipagebyid.png

     

    2. The PATCH of that page, which uses the below expression for the If-Match key

    outputs('HTTP_-_Get_Wiki_Page_by_Id')['headers']['eTag']

     

    updatewikipagecontent_http.png

     

    I have also written this up as a blog btw:

    https://www.expiscornovus.com/2024/03/18/azure-devops-update-wiki-page-content/

     

     

    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • JonDoesFlow Profile Picture
    1,304 on at

    Thanks @Expiscornovus I actually got to the same conclusion as you in the end, but this is exactly what I did, so marking it as accepted solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard