Collection create
POST {{url}}/collections
Request Body
{"name"=>"places", "fields"=>[{"name"=>"title", "type"=>"string"}, {"name"=>"points", "type"=>"int32"}, {"name"=>"location", "type"=>"geopoint"}], "default_sorting_field"=>"points"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
X-TYPESENSE-API-KEY | string |