@@ -716,9 +716,9 @@ def create_or_update_template(
716
716
717
717
if template_id :
718
718
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 ))
720
720
721
- return self .post ("wiki/ rest/api/template" , json = data )
721
+ return self .post ("rest/api/template" , json = data )
722
722
723
723
@deprecated (version = "3.7.0" , reason = "Use get_content_template()" )
724
724
def get_template_by_id (self , template_id ):
@@ -751,7 +751,7 @@ def get_content_template(self, template_id):
751
751
:param str template_id: The ID of the content template to be returned
752
752
:return:
753
753
"""
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 )
755
755
756
756
try :
757
757
response = self .get (url )
@@ -814,7 +814,7 @@ def get_blueprint_templates(self, space=None, start=0, limit=None, expand=None):
814
814
fixed system limits. Default: 25
815
815
:param expand: OPTIONAL: A multi-value parameter indicating which properties of the template to expand.
816
816
"""
817
- url = "wiki/ rest/api/template/blueprint"
817
+ url = "rest/api/template/blueprint"
818
818
params = {}
819
819
if space :
820
820
params ["spaceKey" ] = space
@@ -885,7 +885,7 @@ def get_content_templates(self, space=None, start=0, limit=None, expand=None):
885
885
:param expand: OPTIONAL: A multi-value parameter indicating which properties of the template to expand.
886
886
e.g. ``body``
887
887
"""
888
- url = "wiki/ rest/api/template/page"
888
+ url = "rest/api/template/page"
889
889
params = {}
890
890
if space :
891
891
params ["spaceKey" ] = space
@@ -924,7 +924,7 @@ def remove_template(self, template_id):
924
924
:param str template_id: The ID of the template to be deleted.
925
925
:return:
926
926
"""
927
- return self .delete ("wiki/ rest/api/template/{}" .format (template_id ))
927
+ return self .delete ("rest/api/template/{}" .format (template_id ))
928
928
929
929
def get_all_spaces (self , start = 0 , limit = 500 , expand = None , space_type = None , space_status = None ):
930
930
"""
0 commit comments