@@ -716,9 +716,9 @@ def create_or_update_template(
716716
717717 if template_id :
718718 data ["templateId" ] = template_id
719- return self .put ("wiki/ rest/api/template" , data = json .dumps (data ))
719+ return self .put ("rest/api/template" , data = json .dumps (data ))
720720
721- return self .post ("wiki/ rest/api/template" , json = data )
721+ return self .post ("rest/api/template" , json = data )
722722
723723 @deprecated (version = "3.7.0" , reason = "Use get_content_template()" )
724724 def get_template_by_id (self , template_id ):
@@ -751,7 +751,7 @@ def get_content_template(self, template_id):
751751 :param str template_id: The ID of the content template to be returned
752752 :return:
753753 """
754- url = "wiki/ rest/api/template/{template_id}" .format (template_id = template_id )
754+ url = "rest/api/template/{template_id}" .format (template_id = template_id )
755755
756756 try :
757757 response = self .get (url )
@@ -814,7 +814,7 @@ def get_blueprint_templates(self, space=None, start=0, limit=None, expand=None):
814814 fixed system limits. Default: 25
815815 :param expand: OPTIONAL: A multi-value parameter indicating which properties of the template to expand.
816816 """
817- url = "wiki/ rest/api/template/blueprint"
817+ url = "rest/api/template/blueprint"
818818 params = {}
819819 if space :
820820 params ["spaceKey" ] = space
@@ -885,7 +885,7 @@ def get_content_templates(self, space=None, start=0, limit=None, expand=None):
885885 :param expand: OPTIONAL: A multi-value parameter indicating which properties of the template to expand.
886886 e.g. ``body``
887887 """
888- url = "wiki/ rest/api/template/page"
888+ url = "rest/api/template/page"
889889 params = {}
890890 if space :
891891 params ["spaceKey" ] = space
@@ -924,7 +924,7 @@ def remove_template(self, template_id):
924924 :param str template_id: The ID of the template to be deleted.
925925 :return:
926926 """
927- return self .delete ("wiki/ rest/api/template/{}" .format (template_id ))
927+ return self .delete ("rest/api/template/{}" .format (template_id ))
928928
929929 def get_all_spaces (self , start = 0 , limit = 500 , expand = None , space_type = None , space_status = None ):
930930 """
0 commit comments