Skip to content

Commit cf5cc6c

Browse files
committed
Use the UUID of the page when saving a wiki article. [ch45366]
1 parent f8a1fd9 commit cf5cc6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dataikuapi/dss/wiki.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def set_name(self, name):
327327

328328
def save(self):
329329
"""
330-
Save the current article data to the backend
330+
Save the current article data to the backend.
331+
We are using the UUID of the page due to restriction on the REST API.
331332
"""
332-
self.article_data = self.client._perform_json("PUT", "/projects/%s/wiki/%s" % (self.project_key, dku_quote_fn(self.article_id)), body=self.article_data)
333+
self.article_data = self.client._perform_json("PUT", "/projects/%s/wiki/%s" % (self.project_key, self.article_data["article"]['id']), body=self.article_data)

0 commit comments

Comments
 (0)