---
title: "Update estate diagnostic"
method: PUT
path: "/places/{place_id}/estates/{estate_id}/diagnostics/{diagnostic_id}"
tags: ["Estate Diagnostics"]
---

# Update estate diagnostic

`PUT /places/{place_id}/estates/{estate_id}/diagnostics/{diagnostic_id}`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/places/{place_id}/estates/{estate_id}/diagnostics/{diagnostic_id}`
- Auth: HTTP bearer

Updates an existing estate diagnostic

## Path parameters

- `place_id` string, uuid, required
- `estate_id` string, uuid, required
- `diagnostic_id` string, uuid, required

## Request body

- UpdateEstateDiagnostic: Data for updating an existing estate diagnostic. All fields are optional. Only provided fields will be updated.
  - `media_id` string, uuid, nullable: Media ID of the uploaded diagnostic PDF document
  - `name` string, nullable: Name/title of the diagnostic
  - `description` string, nullable: Optional description or notes
  - `performed_at` string, date, nullable: Date when the diagnostic was performed
  - `expires_at` string, date, nullable: Expiry date of the diagnostic
  - `is_active` boolean, nullable: Whether this diagnostic is currently active

## Response `200`

Estate diagnostic updated successfully

- EstateDiagnostic: Estate diagnostic document (lead, asbestos, electrical, gas, risk assessment, co-ownership rules)
  - `id` string, uuid, required: Unique identifier of the diagnostic
  - `estate_id` string, uuid, required: Property (estate) ID this diagnostic belongs to
  - `diagnostic_type` 'DIAGNOSTIC_PLOMB' | 'DIAGNOSTIC_AMIANTE' | 'DIAGNOSTIC_ELECTRICITE' | 'DIAGNOSTIC_GAZ' | 'ETAT_RISQUES' | 'REGLEMENT_COPROPRIETE' | 'PERMIS_LOUER' | 'CUSTOM', required: Type of estate diagnostic
  - `media_id` string, uuid, required: Media ID of the uploaded diagnostic PDF document
  - `name` string, required: Name/title of the diagnostic
  - `description` string, nullable: Optional description or notes
  - `performed_at` string, date, nullable: Date when the diagnostic was performed
  - `expires_at` string, date, nullable: Expiry date of the diagnostic
  - `is_active` boolean, required: Whether this diagnostic is currently active
  - `created_at` string, date-time, required: Creation date
  - `updated_at` string, date-time, required: Last modification date

## Other responses

- `400`: Invalid data
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/faireplace/apis/faireplace-property-management-api.md) · [All operations](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/revisions/69de39762919?raw)
