[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
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...