---
title: "Update Custom Entity Definition"
method: PATCH
path: "/custom_entity_definition"
tags: ["Custom Entity Definition"]
---

# Update Custom Entity Definition

`PATCH /custom_entity_definition`

Update an existing custom entity definition

## Query parameters

- `select` string
- `id` string
- `created_at` string
- `updated_at` string
- `organisation_id` string
- `key` string
- `name` string
- `schema` string

## Request body

- CustomEntityDefinition
  - `id` string, uuid — Custom entity definition 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
  - `key` string, text — Unique key for the custom entity definition
  - `name` string, text — Name of the custom entity definition
  - `schema` object — JSON Schema defining the custom entity data structure

## Response `200`

The updated Custom Entity Definition object

- CustomEntityDefinition
  - `id` string, uuid — Custom entity definition 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
  - `key` string, text — Unique key for the custom entity definition
  - `name` string, text — Name of the custom entity definition
  - `schema` object — JSON Schema defining the custom entity data structure

## Other responses

- `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)
