# party.json

> Personen und Organisationen: Rollen, Kontakt, Einwilligungen.

Quelle: https://bauzertifikate.de/docs/bzf/schemas/party · BZF 0.3.0 (https://github.com/bauzertifikate/bzf/tree/fe92cf4342f2e9140f14f66262c2f5a30a99be45) · Weitere Seiten: https://bauzertifikate.de/llms.txt

- **Status:** Entwurf
- **Klasse:** party – Personendaten, verlassen die Organisation nie
- **Ablage:** `Daten/parties/<id>.json`
- **$id:** `https://bauzertifikate.de/schema/bzf/1/party.json`
- **Schema laden:** [/schema/bzf/1/party.json](https://bauzertifikate.de/schema/bzf/1/party.json) (JSON Schema 2020-12)

## Beschreibung

A person or an organisation the project deals with, `parties/<id>.json`: the owner, the client, tenants, the Energieberater, a trade, with their roles, contact and the consents they gave. A party document never leaves the organisation that holds it; building documents name no person, and a share names the consent it relies on by this document's id and the consent's (versand.json). This schema describes documents of schema version 1.x; a document of another major version is only required to say which.

## Das Dokument

Ein Dokument der Hauptversion 1 (`"schema": "1.x"`) hat die folgenden Felder, die des Typs [`party`](#party). Eine andere Hauptversion muss nur sagen, welche sie ist.

| Feld | Typ | Beschreibung |
|---|---|---|
| `schema` **Pflicht** | [`schemaVersion`](https://bauzertifikate.de/docs/bzf/schemas/common.md#schemaversion) | A document's schema version, major.minor. |
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | An item's identity for life. |
| `kind` | `string`, offen | Bekannte Werte: `person`, `organisation`; ein neuerer Wert ist gültig. |
| `name` | `string` | – |
| `roles` | Liste von `string`, offen | Its roles in the project. The owner is the principal owner of the building's data (the CEN logbook request's Part A). |
| `address` | [`address`](https://bauzertifikate.de/docs/bzf/schemas/common.md#address) | A postal address. |
| `email` | `string` | – |
| `phone` | `string` | – |
| `identifiers` | Liste von [`identifier`](https://bauzertifikate.de/docs/bzf/schemas/common.md#identifier) | Its ids elsewhere: an Energieberater's number on the Energieeffizienz-Expertenliste, a company register entry. |
| `consents` | Liste von [`consent`](#consent) | – |

## Typen

Die Typen dieses Schemas, auf die seine Felder verweisen.

### `party`

| Feld | Typ | Beschreibung |
|---|---|---|
| `schema` **Pflicht** | [`schemaVersion`](https://bauzertifikate.de/docs/bzf/schemas/common.md#schemaversion) | A document's schema version, major.minor. |
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | An item's identity for life. |
| `kind` | `string`, offen | Bekannte Werte: `person`, `organisation`; ein neuerer Wert ist gültig. |
| `name` | `string` | – |
| `roles` | Liste von `string`, offen | Its roles in the project. The owner is the principal owner of the building's data (the CEN logbook request's Part A). |
| `address` | [`address`](https://bauzertifikate.de/docs/bzf/schemas/common.md#address) | A postal address. |
| `email` | `string` | – |
| `phone` | `string` | – |
| `identifiers` | Liste von [`identifier`](https://bauzertifikate.de/docs/bzf/schemas/common.md#identifier) | Its ids elsewhere: an Energieberater's number on the Energieeffizienz-Expertenliste, a company register entry. |
| `consents` | Liste von [`consent`](#consent) | A consent the party gave. |

### `consent`

A consent the party gave: to whom, for what, covering which documents, when, and when it was withdrawn. A withdrawn consent stays, with its withdrawal, as the record of what was allowed when.

| Feld | Typ | Beschreibung |
|---|---|---|
| `id` **Pflicht** | [`id`](https://bauzertifikate.de/docs/bzf/schemas/common.md#id) | An item's identity for life. |
| `to` | `string` | To whom: another party's id, or a name where it has no party document. |
| `purpose` | `string` | What for: "Angebot Dachsanierung", "Energieausweis für den Verkauf". |
| `documents` | Liste von `string` | The documents it covers, by path or path prefix ("buildings/", "roadmaps/0193….json"); all building documents where absent. |
| `given` **Pflicht** | [`time`](https://bauzertifikate.de/docs/bzf/schemas/common.md#time) | A time in RFC 3339, local time with its offset. |
| `until` | [`date`](https://bauzertifikate.de/docs/bzf/schemas/common.md#date) | Until when it holds, where limited. |
| `withdrawn` | [`time`](https://bauzertifikate.de/docs/bzf/schemas/common.md#time) | A time in RFC 3339, local time with its offset. |
| `source` | [`source`](https://bauzertifikate.de/docs/bzf/schemas/common.md#source) | Where it is recorded: a signed form among the received files. |

## Lesen und prüfen

Die Beschreibungen stammen unverändert aus dem Schema und sind wie die Spezifikation englisch. Jedes Objekt lässt weitere Felder zu (`additionalProperties: true`): Programme bewahren Felder und Werte, die sie nicht kennen. Wie ein Dokument geprüft wird, steht im [Schnellstart](https://bauzertifikate.de/docs/bzf/schnellstart.md#pruefen).
