This guide covers the update commands for modifying existing resources in Pangolin.
Update properties of an existing tenant.
pangolin-admin update-tenant --id <TENANT_ID> --name <NEW_NAME>--id- UUID of the tenant to update (required)--name- New name for the tenant (optional)
# Update tenant name
pangolin-admin update-tenant \
--id "8582f8f2-63af-4ecf-9aaf-82133bc42a16" \
--name "production-tenant"✅ Tenant updated successfully!
- Requires root privileges
- Tenant ID must be a valid UUID
- Only specified fields will be updated
Update properties of an existing user.
pangolin-admin update-user --id <USER_ID> [OPTIONS]--id- UUID of the user to update (required)--username- New username (optional)--email- New email address (optional)--active- Set active status (true/false) (optional)
# Update username
pangolin-admin update-user \
--id "user-uuid" \
--username "new-username"
# Update email
pangolin-admin update-user \
--id "user-uuid" \
--email "newemail@example.com"
# Deactivate user
pangolin-admin update-user \
--id "user-uuid" \
--active false
# Update multiple fields
pangolin-admin update-user \
--id "user-uuid" \
--username "updated-user" \
--email "updated@example.com" \
--active true✅ User updated successfully!
- Requires tenant admin or root privileges
- User ID must be a valid UUID
- At least one optional parameter must be provided
Update properties of an existing warehouse.
pangolin-admin update-warehouse --id <WAREHOUSE_ID> --name <NEW_NAME>--id- UUID of the warehouse to update (required)--name- New name for the warehouse (optional)
# Update warehouse name
pangolin-admin update-warehouse \
--id "warehouse-uuid" \
--name "production-warehouse"✅ Warehouse updated successfully!
- Requires tenant admin privileges
- Warehouse ID must be a valid UUID
- Name must be unique within the tenant
Update properties of an existing catalog.
pangolin-admin update-catalog --id <CATALOG_ID> --name <NEW_NAME>--id- UUID of the catalog to update (required)--name- New name for the catalog (optional)
# Update catalog name
pangolin-admin update-catalog \
--id "catalog-uuid" \
--name "production-catalog"✅ Catalog updated successfully!
- Requires tenant admin privileges
- Catalog ID must be a valid UUID
- Name must be unique within the tenant
To update a resource, you first need its ID. Use list commands:
# Get tenant ID
pangolin-admin list-tenants
# Get user ID
pangolin-admin list-users
# Get warehouse ID
pangolin-admin list-warehouses
# Get catalog ID
pangolin-admin list-catalogsFor multiple updates, use a script:
#!/bin/bash
# Update multiple users
for user_id in "${USER_IDS[@]}"; do
pangolin-admin update-user --id "$user_id" --active true
done404 Not Found:
Error: API Request Failed: Failed to update tenant (404 Not Found): Tenant not found
- Solution: Verify the ID is correct
403 Forbidden:
Error: API Request Failed: Failed to update user (403 Forbidden): Insufficient permissions
- Solution: Ensure you have appropriate privileges
400 Bad Request:
Error: API Request Failed: Failed to update catalog (400 Bad Request): Name already exists
- Solution: Choose a unique name
- Verify Before Update: List resources first to confirm IDs
- Use Descriptive Names: Choose meaningful names for resources
- Test in Development: Test updates in a dev environment first
- Document Changes: Keep a log of resource updates
- Check Permissions: Ensure you have the required privileges
list-tenants- List all tenantslist-users- List all userslist-warehouses- List all warehouseslist-catalogs- List all catalogsdelete-tenant- Delete a tenantdelete-user- Delete a userdelete-warehouse- Delete a warehousedelete-catalog- Delete a catalog