Skip to content
Back

Invalid document structure: Unknown attribute: "type" when trying to create a database

  • 0
  • Self Hosted
  • Databases
videosambo
17 Nov, 2025, 19:12

Hello. I have self hosted instance running on my server and has valid endpoint and most of things are working as should. Installation is fresh install of version 1.8.0. I get error when trying to create a database ' Invalid document structure: Unknown attribute: "type"'. I tried to reinstall appwrite and also I did read docs for help and scrolled some forum posts but no help. What could cause this and how to fix?

TL;DR
Developers are encountering an error "Invalid document structure: Unknown attribute: 'type'" when attempting to create a database on a self-hosted instance of Appwrite version 1.8.0. The error log indicates the issue is in the Create.php file. Reinstallation and consulting documentation and forums have not resolved the problem.
videosambo
17 Nov, 2025, 19:39

And logs show this:

TypeScript
appwrite  | [Error] Timestamp: 2025-11-17T19:39:15+00:00
appwrite  | [Error] Method: POST
appwrite  | [Error] URL: /v1/tablesdb
appwrite  | [Error] Type: Appwrite\Extend\Exception
appwrite  | [Error] Message: Invalid document structure: Unknown attribute: "type"
appwrite  | [Error] File: /usr/src/code/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php
appwrite  | [Error] Line: 89
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more