From 677cf1eceed8ecdc9fca5705982c3cb298db6fae Mon Sep 17 00:00:00 2001 From: Kacper Wolkiewicz Date: Wed, 5 Feb 2020 11:25:17 +0100 Subject: [PATCH] Added functionality to update projects' parent_id --- tableauserverclient/server/request_factory.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tableauserverclient/server/request_factory.py b/tableauserverclient/server/request_factory.py index 4fecdc3eb..89233d8be 100644 --- a/tableauserverclient/server/request_factory.py +++ b/tableauserverclient/server/request_factory.py @@ -249,6 +249,8 @@ def update_req(self, project_item): project_element.attrib['description'] = project_item.description if project_item.content_permissions: project_element.attrib['contentPermissions'] = project_item.content_permissions + if project_item.parent_id: + project_element.attrib['parentProjectId'] = project_item.parent_id return ET.tostring(xml_request) def create_req(self, project_item):