Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ include::partial$block-caveats.adoc[tags="legacy-config-equivalents"]
From {sgw-te} 3.0 you can use the Admin REST API to provision persistent configuration changes.
This content introduces the <<put_db-,Create Database>> and <<post_db-_config,Configure Database>> endpoints for convenience -- see {rest-api-admin--xref--database-configuration} for a full description of the endpoints available.


NOTE: You can define 1 custom scope per database with up to 1000 custom collections.
If you don't specify a custom scope and collection, any documents you create will be saved in the default scope and collection.
If you do not specify a custom scope and collection, Sync Gateway saves any documents you create in the default scope and collection.

Database and user creation times increase with the number of collections you configure.
User creation initializes access control for all associated collections, while database creation initializes Sync Gateway indexes (`sg_prefixed`) for new collections.


[#lbl-create-db]
include::partial$static_restapi/admin/index.adoc[tags="put_db-",leveloffset=+1]
Expand Down Expand Up @@ -84,7 +89,6 @@ Content-Length: 44

====


[#lbl-configure-db]
include::partial$static_restapi/admin/index.adoc[tags="post_db-_config",leveloffset=+1]

Expand Down