Scopes and Collections API

    +
    Scopes and collections can be managed with the REST API.

    APIs in this Section

    The REST API allows buckets to be created, edited, flushed, and deleted. For a list of all methods and URIs covered in this section, see the table provided below.

    HTTP Method URI Documented at

    POST

    /pools/default/buckets/<bucket_name>/scopes

    Creating a Scope

    POST

    /pools/default/buckets/<bucket_name>/scopes/<scope_name>/collections

    Creating a Collection

    GET

    /pools/default/buckets/<bucket_name>/scopes/

    Listing Scopes and Collections

    DELETE

    /pools/default/buckets/<bucket_name>/scopes/<scope_name>/collections/<collection_name>

    Dropping a Collection

    DELETE

    /pools/default/buckets/<bucket_name>/scopes/<scope_name>

    Dropping a Scope