---
title: "Create Custom Entity"
method: POST
path: "/custom_entity"
tags: ["Custom Entity"]
---

# Create Custom Entity

`POST /custom_entity`

Create a new custom entity

## Query parameters

- `select` string

## Request body

- object
  - `id` string, uuid — Entity ID
  - `created_at` string, timestamp with time zone — Creation date
  - `updated_at` string, timestamp with time zone — Latest update
  - `organisation_id` string, uuid — Organisation ID
  - `custom_entity_definition_id` string, uuid — Custom entity definition ID
  - `contact_id` string, uuid — Contact ID
  - `external_id` string, text, nullable — External ID
  - `data` object — Entity data matching the custom entity definition schema
  - `custom_entity_definition_key` string, text — Key of the custom entity definition. Alternative to custom_entity_definition_id.

## Response `200`

The updated Custom Entity object

- CustomEntity
  - `id` string, uuid — Entity ID
  - `created_at` string, timestamp with time zone — Creation date
  - `updated_at` string, timestamp with time zone — Latest update
  - `organisation_id` string, uuid — Organisation ID
  - `custom_entity_definition_id` string, uuid — Custom entity definition ID
  - `contact_id` string, uuid — Contact ID
  - `external_id` string, text, nullable — External ID
  - `data` object — Entity data matching the custom entity definition schema

## Other responses

- `201` — The Custom Entity was created
- `204` — No Content

---

[API](https://skmtc.dev/getmateo/apis/mateo-api.md) · [All operations](https://skmtc.dev/getmateo/apis/mateo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getmateo/mateo-api/revisions/22a9b3b009d1/schema)
