diff --git a/apps/assets/serializers/asset/common.py b/apps/assets/serializers/asset/common.py index d7dc7b175..dfcd2de82 100644 --- a/apps/assets/serializers/asset/common.py +++ b/apps/assets/serializers/asset/common.py @@ -71,7 +71,8 @@ class AssetAccountSerializer( template = serializers.BooleanField( default=False, label=_("Template"), write_only=True ) - name = serializers.CharField(max_length=128, required=True, label=_("Name")) + name = serializers.CharField(max_length=128, required=False, label=_("Name")) + secret_type = serializers.CharField(max_length=64, default='password', label=_("Secret type")) class Meta: model = Account