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

Community site session details

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

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,175 Most Valuable Professional on at
    Re: HTTP call to create content on existing WIKI page

    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
    Re: HTTP call to create content on existing WIKI page

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard