Create collection #
Creates a new collection.
Examples #
The following request creates a new collection called my-collection
in the
namespace my-namespace
:
PUT /my-namespace:my-collection
Request #
PUT /[<namespace>:]<collection>
Path parameters #
<namespace>
(Optional, string) The namespace which the collection belongs to. Namespace names must meet the following criteria:- Lowercase only
- Cannot include
\
/
,*
,?
,"
,<
,>
,|
,,
,
,#
- Cannot start with
-
,_
,+
- Cannot be
.
or..
- Cannot be longer than 255 bytes (note it is bytes, so multi-byte characters will count towards the 255 limit faster)
<collection>
(Required, string) Name of the collection you wish to create. Collection names must meet the same criteria as namespace names.