Admin REST API
Description of the Sync Gateway Admin REST API
Use the API explorer to find out more about Sync Gateway’s endpoints by functionality.
Related REST API topics: Public REST API | Metrics REST API | Use the REST API?
Content Blocking
Couchbase Mobile’s API documentation utilizes Swagger UI to deliver an interactive and dynamic user experience. The page will not function correctly if your organization’s security policies restricts access to this type of content — instead see the alternate statics page Admin REST API (Static Page) |
Introduction
The Admin REST API is for administrator use only, and hence is not accessible from the clients directly.
To allow users to access the Admin API up you need to create a Couchbase Server-based RBAC-user for them — see: REST API Access
For document changes sent to Sync Gateway through the Admin REST API, the Sync Function executes with admin privileges. Calls to requireUser , requireAccess and requireRole will be no-ops, and will always appear successful.
|
API Explorer
The API explorer below groups all the endpoints by functionality. You can click on a label to expand the list of endpoints and also generate a curl request for each endpoint.
Each endpoint description specifies its RBAC role requirements, but see RBAC Roles and the Couchbase Server documentation here Couchbase Server Authorization Roles if further information is required.
Sync Gateway 3.0
[ Base URL: localhost:4985 ]_attachments/rest-api-admin.yaml
Documentation for the Sync Gateway Admin REST API.
Access ControlConvenience API for Sync function upsert
Convenience API for Sync function upsert
AuthenticationManage OpenID Connect providers
Manage OpenID Connect providers
Bootstrap ConfigurationReturns bootstrap settings and updates logging options
Returns bootstrap settings and updates logging options
Database ConfigurationConfigure sync gateway databases
Configure sync gateway databases
Database ManagementCreate and manage sync gateway databases
Create and manage sync gateway databases
Database SecurityCreate and manage database users and roles
Create and manage database users and roles
Design DocumentsWork with sync gateway design docs
Work with sync gateway design docs
DocumentManage documents and attachments
Manage documents and attachments
LoggingUpdate bootstrap logging settings
Update bootstrap logging settings
ReplicationManage inter-Sync Gateway replication
Manage inter-Sync Gateway replication
ServerManage server activities
Manage server activities
SessionManage user sessions
Manage user sessions