Appwrite MongoDB API
Managed MongoDB databases, with backup policies, archives and restorations. 31 operations across 21 paths in the Appwrite 2.0.0 OpenAPI.
Operations 31
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which dedicated Mongo databases do I have in Appwrite?”
“Can I page through my dedicated Mongo databases?”
Tell an agent
List all my dedicated Mongo databases.
List dedicated Mongo databases matching {queries}.
Ask an LLM
“How do I spin up a dedicated Mongo database?”
“Can I turn on point-in-time recovery and storage autoscaling when provisioning a Mongo database?”
Tell an agent
Create a dedicated Mongo database {name} with ID {databaseId}.
Provision Mongo database {databaseId} named {name} on version {version} with specification {specification}.
Ask an LLM
“What Mongo database sizes can I choose on my current plan?”
“How much does each dedicated Mongo specification cost, including overage?”
Tell an agent
Show the dedicated Mongo specifications available on my plan.
List Mongo compute sizes with their resource limits and prices.
Ask an LLM
“What is the configuration and status of my Mongo database?”
“Has my new Mongo database finished provisioning?”
Tell an agent
Get dedicated Mongo database {databaseId}.
Show the configuration of Mongo database {databaseId}.
Ask an LLM
“Can I pause a Mongo database and resume it later?”
“How do I change the IP allowlist or replica count on a Mongo database without downtime?”
Tell an agent
Pause Mongo database {databaseId} by setting status to {status}.
Resize Mongo database {databaseId} to specification {specification}.
Ask an LLM
“How do I permanently delete a dedicated Mongo database?”
“Can I re-run cleanup on a Mongo database stuck in deleting?”
Tell an agent destructive · confirm first
Delete dedicated Mongo database {databaseId}.
Tear down Mongo database {databaseId} and clean up its resources.
Ask an LLM
“Which backups exist for my Mongo database?”
“Can I filter a Mongo database's backups by status or type?”
Tell an agent
List backups for Mongo database {databaseId}.
List backups of {databaseId} matching {queries}.
Ask an LLM
“How do I take an on-demand backup of my Mongo database right now?”
“Can I choose between a full and an incremental manual backup?”
Tell an agent
Back up Mongo database {databaseId} now.
Take a {type} backup of Mongo database {databaseId}.
Ask an LLM
“What scheduled backup policies are set on my Mongo database?”
“Are automatic backups configured for this Mongo database?”
Tell an agent
List backup schedules for Mongo database {databaseId}.
Show the backup policies on {databaseId} matching {queries}.
Ask an LLM
“How do I schedule automatic backups for a Mongo database?”
“Can I set how long scheduled Mongo backups are retained?”
Tell an agent
Create backup policy {name} on Mongo database {databaseId} with schedule {schedule} and retention {retention}.
Add policy {policyId} to back up {databaseId} on {schedule}, keeping each for {retention}, named {name}.
GET
/mongo/{databaseId}/backups/policies/{policyId}
Get a scheduled backup policy · Get backup policy
#
Ask an LLM
“What schedule and retention does a specific Mongo backup policy use?”
“Is a given Mongo backup policy currently enabled?”
Tell an agent
Get backup policy {policyId} on Mongo database {databaseId}.
Show the details of backup policy {policyId}.
PATCH
/mongo/{databaseId}/backups/policies/{policyId}
Change a scheduled backup policy · Update backup policy
#
Ask an LLM
“Can I change the schedule of an existing Mongo backup policy?”
“Is it possible to temporarily disable a backup policy without deleting it?”
Tell an agent
Change backup policy {policyId} on {databaseId} to run on {schedule}.
Set enabled to {enabled} on backup policy {policyId} for {databaseId}.
DELETE
/mongo/{databaseId}/backups/policies/{policyId}
Delete a scheduled backup policy · Delete backup policy
#
Ask an LLM
“How do I stop scheduled backups on a Mongo database?”
“Are backups already taken kept after I delete their policy?”
Tell an agent destructive · confirm first
Delete backup policy {policyId} from Mongo database {databaseId}.
Remove the backup schedule {policyId} on {databaseId}.
PUT
/mongo/{databaseId}/backups/storage
Configure off-cluster backup storage · Update backup storage
#
Ask an LLM
“Can I send my Mongo backups to my own S3, GCS or Azure bucket?”
“Does the Mongo backup storage setting support S3-compatible endpoints like MinIO?”
Tell an agent
Store Mongo database {databaseId} backups in {provider} bucket {bucket} using key {accessKey} and secret {secretKey}.
Send {databaseId} backups to {provider} bucket {bucket} at endpoint {endpoint} with prefix {prefix}, key {accessKey}, secret {secretKey}.
Ask an LLM
“Has my Mongo backup finished and how big is it?”
“When was a specific Mongo backup taken?”
Tell an agent
Get backup {backupId} of Mongo database {databaseId}.
Check the status of backup {backupId}.
Ask an LLM
“How do I permanently remove an old Mongo backup?”
“Can a deleted Mongo backup be recovered?”
Tell an agent destructive · confirm first
Delete backup {backupId} of Mongo database {databaseId}.
Permanently remove backup {backupId} from storage for {databaseId}.
Ask an LLM
“What test branches exist for my Mongo database?”
“When do my Mongo database branches expire?”
Tell an agent
List branches of Mongo database {databaseId}.
Show ephemeral branches and their expiry for {databaseId}.
Ask an LLM
“Can I make a throwaway copy of my Mongo database to test a schema migration?”
“How long can an ephemeral Mongo branch live before it expires?”
Tell an agent
Create a branch of Mongo database {databaseId}.
Branch {databaseId} as {branchId} with a TTL of {ttl} seconds.
Ask an LLM
“How do I delete a test branch of my Mongo database before it expires?”
“Is deleting a Mongo branch reversible?”
Tell an agent destructive · confirm first
Delete branch {branchId} of Mongo database {databaseId}.
Remove the ephemeral branch {branchId} now.
PATCH
/mongo/{databaseId}/credentials
Rotate a Mongo database's connection credentials · Update credentials
#
Ask an LLM
“How do I rotate the primary connection password for my Mongo database?”
“Where do I get the new connection string after rotating Mongo credentials?”
Tell an agent
Rotate the connection credentials for Mongo database {databaseId}.
Queue a credential rotation on {databaseId}.
Ask an LLM
“How do I promote a replica to primary on my Mongo database?”
“Can I repair a stuck Mongo upgrade by failing over to a named replica?”
Tell an agent
Trigger a failover on Mongo database {databaseId}.
Fail over Mongo database {databaseId} to replica {targetReplicaId}.
PATCH
/mongo/{databaseId}/maintenance
Set a Mongo database's maintenance window · Update maintenance
#
Ask an LLM
“When do minor version upgrades happen on my Mongo database?”
“Can I move the Mongo maintenance window to a quiet hour?”
Tell an agent
Set the maintenance window for Mongo database {databaseId} to {day} at {hourUtc} UTC.
Schedule maintenance on {databaseId} every {day} at hour {hourUtc}.
POST
/mongo/{databaseId}/migrations
Move a Mongo database between shared and dedicated · Create migration
#
Ask an LLM
“Can I convert my Mongo database from shared serverless to dedicated always-on?”
“What happens when I move a dedicated Mongo database back to shared?”
Tell an agent
Migrate Mongo database {databaseId} to {targetType}.
Move {databaseId} to {targetType} on specification {specification}.
GET
/mongo/{databaseId}/operations
List lifecycle operations on a Mongo database · List operations
#
Ask an LLM
“What provisioning, backup and replication actions have run on my Mongo database?”
“Has my Mongo credential rotation reached a final status yet?”
Tell an agent
List lifecycle operations for Mongo database {databaseId}.
Show the last {limit} Mongo operations on {databaseId} with status {status}.
Ask an LLM
“How far back can I restore my Mongo database to a point in time?”
“What are the earliest and latest recovery points for this Mongo database?”
Tell an agent
Get the PITR recovery window for Mongo database {databaseId}.
Show the earliest and latest restore points for {databaseId}.
Ask an LLM
“How much replication lag do my Mongo replicas have?”
“Are all replicas of my Mongo database healthy?”
Tell an agent
Get replica status for Mongo database {databaseId}.
Show Mongo replication lag and sync mode for {databaseId}.
Ask an LLM
“What restores have been run on my Mongo database?”
“Can I filter Mongo restorations to only point-in-time ones?”
Tell an agent
List restorations for Mongo database {databaseId}.
List {type} restorations on {databaseId} with status {status}.
POST
/mongo/{databaseId}/restorations
Restore a Mongo database from backup or PITR · Create restoration
#
Ask an LLM
“How do I restore my Mongo database from a backup?”
“Can I roll a Mongo database back to a specific moment in time?”
Tell an agent
Restore Mongo database {databaseId} from backup {backupId}.
Restore {databaseId} to {targetTime} using point-in-time recovery into {targetDatabaseId}.
GET
/mongo/{databaseId}/restorations/{restorationId}
Get a Mongo restoration's status · Get restoration
#
Ask an LLM
“Has my Mongo restore finished?”
“What type and timestamps does a specific Mongo restoration have?”
Tell an agent
Get restoration {restorationId} for Mongo database {databaseId}.
Check progress of restore {restorationId}.
Ask an LLM
“Is my Mongo database healthy and accepting connections?”
“Where can I see uptime and volume usage for a Mongo database?”
Tell an agent
Check the health of Mongo database {databaseId}.
Get real-time Mongo status and connection info for {databaseId}.
Ask an LLM
“How do I upgrade my Mongo database to a newer engine version?”
“Does a Mongo version upgrade cause downtime?”
Tell an agent
Upgrade Mongo database {databaseId} to version {targetVersion}.
Run a blue-green upgrade of {databaseId} to {targetVersion}.