[Solved]Create collection REST API from cloud version got server error: general_protocol_unsupported
- 0
- Databases
- Cloud

I want to create a new collection using server REST API. I am passing API key, project ID to the server REST API, but I got this error
{
"message": "Server Error",
"code": 500,
"type": "general_protocol_unsupported",
"version": "0.11.21"
}
this is the request I sent:
curl --location 'cloud.appwrite.io/v1/databases/651401e143419f3c3869/collections' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-Appwrite-Key: <API key>' \
--header 'X-Appwrite-Project: <Project ID>' \
--data '{
"collectionId": "unique()",
"name": "devices",
"permissions": [
"read(\"users\")",
"create(\"users\")",
"read(\"users\")",
"update(\"users\")"
],
"documentSecurity": true,
"enabled": true
}'

As mentioned in general, include the https:// in the URL

[Solved]Create collection REST API from cloud version got server error: general_protocol_unsupported
Recommended threads
- TableDB.getRow() response does not conta...
This is for Web/React sdk 20.0.0 The row was created via `TableDB.createRow(...)` and I can see it in the console with the relationships correctly set. In the c...
- Permissions for bulk operation
Hi team, I have a question: “In the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
- Help understanding what "upgrade" and "m...
Hello, I'm currently running appwrite with k8s (well, a dirty "hack" of converting each container to a deployment). And I have some trouble understand what "upg...
