-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
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 teamPOST /teams/{id}/restore- Restore deleted teamPOST /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
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers