Add a fixed-choice enum field to a collection
One step with Appwrite. We can help you get access.
Get something done
Add a fixed-choice enum field to a collection
with Appwrite
Works with AI assistants
Use Appwrite: its Appwrite Databases API lets you add a fixed-choice enum field to a collection in a single step (POST /databases/{databaseId}/collections/{collectionId}/attributes/enum). Appwrite also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I restrict a field to a whitelist of allowed values?
- Can an enum attribute have a default choice?
Say it to your AI assistant
- Add enum attribute {key} with values {elements} to {collectionId} in {databaseId}, required {required}.
- Create a choice field {key} on {collectionId} ({databaseId}) allowing only {elements}, required {required}.
For your developer
POST /databases/{databaseId}/collections/{collectionId}/attributes/enum in Appwrite Databases API. Full spec on APIs.io.