Skip to main content
Glama
appwrite

Appwrite MCP Server

Official
by appwrite

databases_update_enum_attribute

Modify an enum attribute in an Appwrite database collection by updating its allowed values, requirements, or default setting to adapt data validation rules.

Instructions

Update an enum attribute. Changing the default value will not update already existing documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
database_idYesDatabase ID.
collection_idYesCollection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
keyYesAttribute Key.
elementsYesArray of elements in enumerated type. Uses length of longest element to determine size. Maximum of 100 elements are allowed, each 255 characters long.
requiredYesIs attribute required?
defaultYesDefault value for attribute when not provided. Cannot be set when attribute is required.
new_keyNoNew attribute key.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/appwrite/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server