@@ -526,58 +526,7 @@ def delete_custom_content_example(custom_content_id):
526526 # ancestors = get_custom_content_ancestors_example(custom_content_id)
527527
528528 # Delete custom content
529- # delete_custom_content_example(custom_content_id)
530-
531- # Delete whiteboards
532- print ("\n Deleting nested whiteboard..." )
533- confluence .delete_whiteboard (whiteboard_id )
534- print ("Nested whiteboard deleted" )
535-
536- print ("\n Deleting parent whiteboard..." )
537- confluence .delete_whiteboard (whiteboard_id )
538- print ("Parent whiteboard deleted" )
539-
540- # Update custom content
541- print ("\n Updating custom content..." )
542- updated_content = confluence .update_custom_content (
543- custom_content_id = custom_content_id ,
544- type = "my.custom.type" ,
545- title = "Updated Custom Content" ,
546- body = "<p>This content has been updated via API</p>" ,
547- status = "current" ,
548- version_number = current .get ("version" , {}).get ("number" , 1 ) + 1 ,
549- space_id = space_id ,
550- body_format = "storage"
551- )
552-
553- # Add labels to custom content
554- print ("\n Adding labels to custom content..." )
555- confluence .add_custom_content_label (
556- custom_content_id = custom_content_id ,
557- label = "api-example"
558- )
559-
560- # Create property
561- confluence .create_custom_content_property (
562- custom_content_id = custom_content_id ,
563- key = property_key ,
564- value = property_data
565- )
566-
567- # Update property
568- print ("\n Updating property..." )
569- property_data ["color" ] = "red"
570-
571- confluence .update_custom_content_property (
572- custom_content_id = custom_content_id ,
573- key = property_key ,
574- value = property_data ,
575- version_number = property_details ['version' ]['number' ] + 1
576- )
577-
578- # Clean up - delete custom content
579529 print ("\n Deleting custom content..." )
580530 confluence .delete_custom_content (custom_content_id )
581531 print (f"Deleted custom content { custom_content_id } " )
582532
583- return True
0 commit comments