---
title: "Create a concept"
method: POST
path: "/concept"
tags: ["Concept"]
---

# Create a concept

`POST /concept`

## Request body

- object
  - `name` string — The name of new concept
  - `tokens` Condition[]
    - `string` string
    - `type` 0 | 1 | 2 | 3 — The type of the condition. Available types can be fetched with a get request to \keytype
    - `TYPE_` 'TOKEN' | 'REGEXP' | 'CONCEPT' | 'NER' — String description of the condition type
    - `case_sensitive` boolean

## Response `200`

OK

## Changes

- **2020-10-23** `48abc59a8b40` — 1 info
  - api operation id `idea2.create_concept` removed and replaced with `endpoints.create_concept`
- **2020-02-20** `5e2e07fbaa35` — 1 info
  - api operation id `endpoints.create_concept` removed and replaced with `idea2.create_concept`

[Change history](https://skmtc.dev/megagonlabs/apis/ruler-api-specification/changes/concept/post.md)

---

[API](https://skmtc.dev/megagonlabs/apis/ruler-api-specification.md) · [All operations](https://skmtc.dev/megagonlabs/apis/ruler-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/megagonlabs/ruler-api-specification/revisions/3dab7cc0d48e/schema)
