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

# Update Crm Map Record

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

## Request

- Base URL: `https://api.corabea.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.corabea.it/api/bia-psi-map/crm/update`
- Auth: HTTP bearer

Edit one pin -> record's creator, or an admin.

## Request body

- BiaPsiMapUpdateRequest: Request model for editing a map record. Same fields as creating one, validated the same way, plus the id. Only the record's creator or an admin may send it.
  - `cadastral_code` string, required: City cadastral code
  - `map_type` string, required: Map type: "psichiatra", "bia" or "centro_territoriale"
  - `name` string, nullable: Centre name (centro_territoriale)
  - `first_name` string, nullable: First name (person)
  - `last_name` string, nullable: Last name (person)
  - `id` string, required: Map record id

## 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
  - `name` string, nullable: Display name, whatever the type
  - `first_name` string, nullable: First name (person only)
  - `last_name` string, nullable: Last name (person only)
  - `cadastral_code` string, required: City cadastral code
  - `map_type` string, required: Map type: "psichiatra", "bia" or "centro_territoriale"
  - `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_region` string, nullable: City region
  - `city_latitude` string, nullable: City latitude
  - `city_longitude` string, nullable: City longitude

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-11** `6afa01417695`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/corabea/apis/corabea-api/changes/api/bia-psi-map/crm/update/post.md)

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corabea/apis/corabea-api/revisions/d8cdee1d5474?raw)
