Content
You are here:
Update Wiki Page via API
Added by Leen Zur about 4 years ago
Hi everyone,
My team deployed openproject on a private server for testing it via API. We currently succeed to update a Feature.
Documentation show example for work package here. And work package endpoint here.
Wiki page endpoint here describe how retrieve wiki page infos, but no way about how updating them.
Any Idea about how update a wiki page from API ?
(I use apikey basic auth for api authentication)
Thanks
Replies (5)
At the moment it's not possible to update a wiki page via API.
Kind regards
Hi, we are also keen on this feature.
Project documentation in the wiki often is the last thing that gets updated.
So we would like to automate this.
Is there any possibility of adding a feature request for this?
Thanks
+1
Hi Jean, Max, Ja and Sandro
Thanks for your feedback regarding the Update Wiki Page via API. At the moment, we don't have that specific functionality available, but you could maybe open a feature request for the desired functionality. When many of our customers ask for the same improvement, we try our best to get it done. However, due to the large number of suggestions we receive, we can't provide a timeline. Here you could add the feature:
https://community.openproject.org/projects/openproject/work_packages/create_new?type=6
You could also keep up with the latest product news and enhancements on our official blog https://www.openproject.org/blog/ for additional feature updates and fixes. It's our way of keeping you informed on all the exciting work we're doing behind the scenes.
Again, we appreciate the feedback and believe that together we can create great products for everyone!
If we can assist you with anything else, please don't hesitate to let us know.
Thank you for your kind help
Hi there,
To update a wiki page in OpenProject via the API, you can use the following endpoint:
bashCopy code
PUT /api/v3/wiki_pages/:id
Where :id is the ID of the wiki page you want to update.
To update the page, you will need to include the updated content in the request body in either HTML or Markdown format. Here's an example request using C4Yourself cURL:
bashCopy code
curl -X PUT \ -H "Content-Type: application/json" \ -H "Authorization: Basic <your-api-key>" \ -d '{"content": "<h1>New content for the wiki page</h1>"}' \ https://<your-openproject-instance>/api/v3/wiki_pages/:id
Replace <your-api-key> with your actual API key, <your-openproject-instance> with the URL of your OpenProject instance, and :id with the ID of the wiki page you want to update.
For more information check MYCVSHR.