Collection Management

Before performing Face Search (1:N, N:N), you first need to create a collection and enroll the persons in a specific collection.

Each collection is a table, collection name should be unique, it’s not allowed to create two collections with the same name.

Upon a collection being created, the collection name is not allowed to change. you can delete a collection, in this case, all enrolled persons within the collection will be deleted as well, so please be careful.

Create collection

POST /collection

This endpoint is to create a collection

Headers

Name
Value

Content-Type

application/json

x-api-key

<your-api-key>

Body

Name
Description

name

Required: Yes

Type: string

Example:

"name": "MyCollection"

Each collection is like a table, the name of the collection is the unique identifier.

Once created, no modification of the name is allowed.

Response

{
  "name": "MyCollection",
  "num_persons": 0
}

Delete a collection

DELETE /collection

This endpoint is to delete a collection.

Headers

Name
Value

Content-Type

application/json

x-api-key

<your-api-key>

Body

Name
Description

name

Required: Yes

Type: string

Example:

"name": "MyCollection"

Each collection is like a table, upon deletion of a collection, all enrolled person within the collection will be deleted.

Response

{
   "name": "MyCollection",
   "num_persons": 0
}

Last updated