Crear colección

Crea una nueva colección dentro de la base de datos indicada.

Autenticación

Requiere Api-Key y Api-Secret, o un token Glue de owner cuando el propietario de la base de datos está permitido.

Solicitud HTTP

1POST /v1/databases/a1b2c3d4-e5f6-7890-abcd-ef1234567890/collections HTTP/1.1
2Host: api.hola.cloud
3Api-Key: 1abbe476-6ad6-4b97-9cca-6deb6ab2901d
4Api-Secret: 4bda6d52-762b-4e5d-bed7-85614c13b8bf
5Content-Type: application/json
6
7{
8  "name": "mi-coleccion"
9}

Respuesta

1{
2  "name": "mi-coleccion",
3  "total": 0,
4  "indexes": 0,
5  "defaults": {
6    "id": "uuid()"
7  }
8}

Comentarios

Deja un comentario