Hey,
I am trying to create some content on an ADO wiki page via an HTTP connector:
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
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.
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.
Below is an example how you can set that up.
1. A GET request which retrieves page with ID 1
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']
I have also written this up as a blog btw:
https://www.expiscornovus.com/2024/03/18/azure-devops-update-wiki-page-content/
Michael E. Gernaey
179
Super User 2025 Season 1
David_MA
161
Super User 2025 Season 1
stampcoin
145