Skip to content

Add Team delete/restore methods #15

@evanvolgas

Description

@evanvolgas

Summary

The SDK's Teams resource is missing delete and restore operations that exist in the core API.

Core API endpoints to support

  • DELETE /teams/{id} - Soft delete team
  • POST /teams/{id}/restore - Restore deleted team
  • POST /teams/{id}/reassign-assets - Reassign assets to another team

Methods to add

class TeamsResource:
    def delete(self, team_id: UUID, force: bool = False) -> None:
        """Soft delete a team. Use force=True if team has assets."""
        
    def restore(self, team_id: UUID) -> Team:
        """Restore a soft-deleted team."""
        
    def reassign_assets(
        self, 
        team_id: UUID, 
        target_team_id: UUID,
        asset_ids: list[UUID] | None = None
    ) -> dict:
        """Reassign assets to another team before deletion."""

Use case

Team lifecycle management - offboarding teams while preserving or transferring their assets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions