Update the tag for a session using the MarinaBox SDK
from marinabox import MarinaboxSDK sdk = MarinaboxSDK() session = sdk.update_tag("abc123xyz", "NewTag") if session: print(f"Session {session.session_id} updated with tag: {session.tag}") else: print("Session not found")
BrowserSession
{ "session_id": "abc123xyz", "container_id": "abc123xyz789", "vnc_port": 5002, "created_at": "2024-12-14T10:30:00Z", "env_type": "browser", "debug_port": 4002, "status": "running", "tag": "NewTag" }
try: session = sdk.update_tag("nonexistent-id", "NewTag") if session is None: print("Session not found") except Exception as e: print(f"Error updating tag: {e}")