---
title: "Admin Create Org Rekognition Collection"
method: POST
path: "/admin/organizations/{organization_id}/create-rekognition-collection"
---

# Admin Create Org Rekognition Collection

`POST /admin/organizations/{organization_id}/create-rekognition-collection`

Create a new Rekognition collection for this organization and save its ID to the DB.
Auto-generates the collection ID as 'pavoot-{env}-{org-name-slug}' where env comes
from the request body (dev/staging/prod, detected client-side from the browser hostname).
Returns an error if the org already has a custom collection set.
Migrates existing faces from the org's projects into the new collection as a background task.

## Path parameters

- `organization_id` integer, required

## Request body

- CreateCollectionBody
  - `env` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/pavoot/apis/fastapi.md) · [All operations](https://skmtc.dev/pavoot/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pavoot/fastapi/revisions/21bae6010639/schema)
