---
title: "Upsert a concept in a vocabulary"
method: PUT
path: "/terminology/v1/vocabularies/{vocabularyKey}/concepts/{conceptCode}"
tags: ["Vocabularies"]
---

# Upsert a concept in a vocabulary

`PUT /terminology/v1/vocabularies/{vocabularyKey}/concepts/{conceptCode}`

## Request

- Base URL: `https://.clinia.cloud`
- URL: `https://.clinia.cloud/terminology/v1/vocabularies/{vocabularyKey}/concepts/{conceptCode}`
- Auth: API key in header `X-Clinia-API-Key`

Upsert a concept in a vocabulary.

## Path parameters

- `vocabularyKey` string, required
- `conceptCode` string, required

## Request body

- V1Concept
  - `vocabularyKey` string, required
  - `code` string, required
  - `definition` string, required
  - `designation` object, required

## Response `200`

A successful response when the concept is replaced.

- V1Concept
  - `vocabularyKey` string, required
  - `code` string, required
  - `definition` string, required
  - `designation` object, required

## Other responses

- `201`: A successful response when the concept is created.
- `400`: Returned when the request is malformed or invalid.
- `404`: Returned when the vocabulary does not exist.
- `413`: Returned when the payload exceeds the max content size (100kB).

---

[API](https://skmtc.dev/clinia/apis/terminology-api.md) - [All operations](https://skmtc.dev/clinia/apis/terminology-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clinia/apis/terminology-api/revisions/3fce2e6b0ae5?raw)
