Property description

The icons asset imports SVG icons into Dawiso. Icons are used for applications, workflow states, spaces, etc.

Minimal JSON

{
    "key": "",
    "name": "",
    "categoryKey": "",
    "contentType": "",
    "content": ""
}
{
    "key": "amazon_redshift_disabled",
    "name": "Amazon Redshift Disabled",
    "categoryKey": "application",
    "contentType": "image/svg\u002Bxml",
    "content": "PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAg..."
}

Example taken from the core package.

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey.stringYes
nameName of the asset, used as the default EN translation.stringYes
categoryKeyKey of the icon category. Find all supported categories in Settings > Configuration > Icons, filter by category.stringYes
contentThe icon file stored in Base64 format. The image file must be converted to Base64 before use. Alternatively, you can select a predefined icon from Settings > Configuration > Icons.stringYes
contentTypeContent type of the asset. Supported type is: image/svg+xml (MIME format).stringYes
descriptionDescription of the asset.stringNo
iconGroupEnumKeyKey of the group in the space icon picker where the icon is placed. Must match an existing group key — an unknown or omitted key leaves the icon ungrouped. Predefined groups, in display order: people_body, animals_nature, food_drink, travel_places, activities, objects, symbols.stringNo
stateCurrent status of the asset. Supported options are: active (asset is active and visible in the environment), inactive (asset is inactive and hidden, serves as a soft delete), hidden (asset is active but hidden in the environment).stringNo
translationsArray of translation keys and their definitions that determine how the text is displayed in the UI for the specific asset. For more information, see Translations.arrayNo