---
title: "Batch Create Entitlements"
method: POST
path: "/resources/entitlements/v2/batch"
tags: ["Entitlements"]
---

# Batch Create Entitlements

`POST /resources/entitlements/v2/batch`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/entitlements/v2/batch`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/entitlements/v2/batch/post.ts> (a function with typed inputs; its response is checked against the schema)

Batch create multiple entitlements in a single request

## Request body

- CreateManyEntitlementsDto
  - `entitlements` CreateEntitlementDto[], required: Array of entitlements to create
    - `planId` string, required: UUID string that represents the plan ID
    - `tenantId` string, required: UUID string that represents the tenant ID
    - `userId` string: UUID string that represents the user ID
    - `expirationDate` string, date-time: Date of entitlement expiration

## Response `200`

- EntitlementIdsDto
  - `entitlementIds` string[], required: UUID string that represents the entitlement ID

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
