---
title: "Create a new entity"
method: POST
path: "/api/v1/entities/{templateIdentifier}"
tags: ["Entities Management"]
---

# Create a new entity

`POST /api/v1/entities/{templateIdentifier}`

Create a new entity in the system with the provided information

## Path parameters

- `templateIdentifier` string, required

## Request body

- EntityCreateDtoIn — Input DTO for creating an entity
  - `identifier` string, required — Unique identifier of the entity within the template scope
  - `name` string, required — Name of the entity
  - `properties` object — Map of property name to value for this entity
  - `relations` RelationDtoIn[] — List of relations for this entity
    - `name` string, required — Name of the relation (must match a template relation definition)
    - `target_entity_identifiers` string[], required — List of target entity identifiers for this relation

## Response `201`

Entity created successfully

## Other responses

- `400` — Invalid entity data provided
- `401` — Unauthorized - Missing or invalid token
- `403` — Insufficient rights
- `404` — Template not found with the provided identifier
- `409` — Entity already exists in this template
- `500` — Unexpected server-side failure

---

[API](https://skmtc.net/decathlon/apis/idp-core-api.md) · [All operations](https://skmtc.net/decathlon/apis/idp-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/decathlon/idp-core-api/versions/7e634c43bc1b/schema)
