i am using Community Edition 6.5.1 build 6299
i am unable to create scope using REST (i am using postman to send REST post request ) api described https://docs.couchbase.com/server/6.5/developer-preview/collections/rest-api-reference/creating-a-scope.html
i am getting following error:
Not allowed on this version of cluster
Any idea why ?
1 Like
After a short research i have found this features enables only in Developer Preview Mode
so to enable developer preview mode i did the following steps:
resource: https://docs.couchbase.com/server/current/developer-preview/preview-mode.html
Step-1: Setting environment variable for couchbase bin directory
C:\Program Files\Couchbase\Server\bin
Step-2: Check current Cluster Status (open cmd and type the following command)
couchbase-cli enable-developer-preview --list -c localhost:8091 -u Administrator -p mypassword
Cluster is NOT in developer preview mode
Output: Cluster is NOT in developer preview mode
Step-3:
`couchbase-cli enable-developer-preview --enable -c localhost:8091 -u Administrator -p mypassword
Output:
Are you sure [y/n]: y
SUCCESS: Cluster is in developer preview mode
Now go back to couchbase server web interface and you will see the following:
Now i can use postman to create scope and collection as described in https://docs.couchbase.com/server/6.5/developer-preview/collections/rest-api-reference/creating-a-scope.html