---
title: "Create Crm Map Record"
method: POST
path: "/api/bia-psi-map/crm/create"
tags: ["bia-psi-map"]
---

# Create Crm Map Record

`POST /api/bia-psi-map/crm/create`

## Request body

- BiaPsiMapCreateRequest — Request model for creating a map record.
  - `first_name` string, required — First name
  - `last_name` string, required — Last name
  - `cadastral_code` string, required — City cadastral code
  - `map_type` string, required — Map type: "psichiatra" or "bia"

## Response `200`

Successful Response

- BiaPsiMapRecordResponse — Response model for a BIA/PSI map record.
  - `id` union, required — Map record id
    - string, uuid
    - string
  - `created_at` string, date-time, required — Creation timestamp
  - `updated_at` string, date-time, nullable — Update timestamp
  - `first_name` string, required — First name
  - `last_name` string, required — Last name
  - `cadastral_code` string, required — City cadastral code
  - `map_type` string, required — Map type: "psichiatra" or "bia"
  - `created_by_user_id` union — Creator user id
    - string, uuid
    - string
  - `created_by_full_name` string, nullable — Creator full name (admin only)
  - `city_name` string, nullable — City name
  - `city_province_code` string, nullable — City province code
  - `city_latitude` string, nullable — City latitude
  - `city_longitude` string, nullable — City longitude

## Other responses

- `422` — Validation Error

---

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