---
title: "Bulk Create Tenants"
method: POST
path: "/v2/facts/{proj_id}/{env_id}/bulk/tenants"
tags: ["Bulk Operations"]
---

# Bulk Create Tenants

`POST /v2/facts/{proj_id}/{env_id}/bulk/tenants`

## Request

- Base URL: `https://api.permit.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.permit.io/v2/facts/{proj_id}/{env_id}/bulk/tenants`
- Auth: HTTP bearer

## Path parameters

- `proj_id` string, required: Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `env_id` string, required: Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

## Request body

- TenantCreateBulkOperation
  - `operations` TenantCreate[], required
    - `key` string, required: A unique id by which Permit will identify the tenant. The tenant key must be url-friendly (slugified).
    - `name` string, required: A descriptive name for the tenant
    - `description` string: an optional longer description of the tenant
    - `attributes` object: Arbitraty tenant attributes that will be used to enforce attribute-based access control policies.

## Response `200`

Successful Response

- TenantCreateBulkOperationResult

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/permit/apis/permit-io-api.md) - [All operations](https://skmtc.dev/permit/apis/permit-io-api/llms.txt) - [OpenAPI document](https://skmtc.dev/permit/apis/permit-io-api/revisions/fa0edf4238b3?raw)
