Appwrite is now available as a DigitalOcean 1-click app! Click to install! 🚀
Docs

AttributeEnum Object

Properties

Name Type Description
key string

Attribute Key.

type string

Attribute type.

status string

Attribute status. Possible values: available, processing, deleting, stuck, or failed

required boolean

Is attribute required?

array boolean

Is attribute an array?

elements string[]

Array of elements in enumerated type.

format string

String format.

default string

Default value for attribute when not provided. Cannot be set when attribute is required.

Examples

JSON

{
    "key": "status",
    "type": "string",
    "status": "available",
    "required": true,
    "array": false,
    "elements": [
        "element"
    ],
    "format": "enum",
    "default": "element"
}