@@ -2878,14 +2878,13 @@ def audit(
2878
2878
return self .get (url , params = params )
2879
2879
2880
2880
"""
2881
- ##############################################################################################
2882
- # Confluence whiteboards (cloud only!) #
2883
- ##############################################################################################
2884
- """
2881
+ ##############################################################################################
2882
+ # Confluence whiteboards (cloud only!) #
2883
+ ##############################################################################################
2884
+ """
2885
2885
2886
2886
def create_whiteboard (self , spaceId , title = None , parentId = None ):
2887
- # Use spaceId, not space key.
2888
- url = '/api/v2/whiteboards'
2887
+ url = "/api/v2/whiteboards"
2889
2888
data = {"spaceId" : spaceId }
2890
2889
if title is not None :
2891
2890
data ["title" ] = title
@@ -2895,26 +2894,27 @@ def create_whiteboard(self, spaceId, title=None, parentId=None):
2895
2894
2896
2895
def get_whiteboard (self , whiteboard_id ):
2897
2896
try :
2898
- url = f' /api/v2/whiteboards/{ whiteboard_id } '
2897
+ url = f" /api/v2/whiteboards/{ whiteboard_id } "
2899
2898
return self .get (url )
2900
2899
except HTTPError as e :
2901
2900
# Default 404 error handling is ambiguous
2902
2901
if e .response .status_code == 404 :
2903
- raise ApiValueError ("Whiteboard not found. Check confluence instance url and/or if whiteboard id exists" , reason = e )
2902
+ raise ApiValueError (
2903
+ "Whiteboard not found. Check confluence instance url and/or if whiteboard id exists" , reason = e
2904
+ )
2904
2905
2905
2906
raise
2906
2907
2907
-
2908
2908
def delete_whiteboard (self , whiteboard_id ):
2909
- # Deleting a whiteboard moves the whiteboard to the trash, where it can be restored later
2910
2909
try :
2911
- url = f' /api/v2/whiteboards/{ whiteboard_id } '
2910
+ url = f" /api/v2/whiteboards/{ whiteboard_id } "
2912
2911
return self .delete (url )
2913
2912
except HTTPError as e :
2914
2913
# # Default 404 error handling is ambiguous
2915
2914
if e .response .status_code == 404 :
2916
2915
raise ApiValueError (
2917
- "Whiteboard not found. Check confluence instance url and/or if whiteboard id exists" , reason = e )
2916
+ "Whiteboard not found. Check confluence instance url and/or if whiteboard id exists" , reason = e
2917
+ )
2918
2918
2919
2919
raise
2920
2920
0 commit comments