Skip to main content

Create collection

POST 

/api/collections

Creates a new empty documents collection. You need the Creator role to call this api.

Request

Body

    id uuidnullable

    A unique identifier (GUID) that identifies the collection

    title stringnullable

    Title of the collection

    description stringnullable

    A brief description of the collection

    accessMode CollectionAccessMode

    Possible values: [Everyone, MembersOnly]

    members object[]nullable

    List of members. Calling user is always added.

  • Array [
  • identity stringnullable
    privileges MemberPrivileges

    Possible values: [Reader, Owner, Contributor]

  • ]
  • tags object[]nullable

    List of tags

  • Array [
  • key stringnullable
    value nullable
  • ]

Responses

Success

Schema
    id uuid

    Collection id (GUID)

    title stringnullable

    Title of the collection

    description stringnullable

    A brief description of the collection

    jobReference stringnullable

    Internal field to track jobs associated to this collection

    accessMode CollectionAccessMode

    Possible values: [Everyone, MembersOnly]

    members object[]nullable

    Collection members

  • Array [
  • identity stringnullable
    privileges MemberPrivileges

    Possible values: [Reader, Owner, Contributor]

  • ]
  • tags object[]nullable

    List of tags

  • Array [
  • key stringnullable
    value nullable
  • ]
  • properties objectnullable

    Collection properties

    documentCount int64
    documentsUsedSpace int64
    vectorIndexCount int64
    vectorIndexUsedSpace int64
    syntacticIndexCount int64
    syntacticIndexSpace int64
Loading...