---
title: "POST /api/tag-assignments"
method: POST
path: "/api/tag-assignments"
tags: ["TagAssignments"]
---

# POST /api/tag-assignments

`POST /api/tag-assignments`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/api/tag-assignments`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/api/tag-assignments/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- CreateTagAssignmentRequest
  - `tagId` string
  - `entityType` string: "Patient", "Client", "Appointment", "Invoice", "Visit".
  - `entityId` string
  - `value` string, nullable
  - `note` string, nullable

## Response `201`

Created

- TagAssignmentDto
  - `id` string
  - `tagId` string
  - `tagName` string
  - `tagColor` string, nullable
  - `tagIcon` string, nullable
  - `tagSeverity` integer
  - `entityType` string
  - `entityId` string
  - `value` string, nullable
  - `note` string, nullable
  - `assignedByUserId` string, nullable
  - `assignedByName` string, nullable
  - `assignedAt` string, date-time

## Other responses

- `400`: Bad Request
- `409`: Conflict

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
