# DocumentRegistrations

> One stored file (document).

Subject: Documents.

One stored file (document). It is attached to rows by DocumentLinks and sorted into categories by DocumentCategoryLinks.

Label in Fledge: Document registratie.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/DocumentRegistrations` |
| Key | `administration_id`, `document_registration_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, URENPC |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/DocumentRegistrations?$filter=administration_id eq 1&$select=document_registration_id,cloud_storage_location_id,date_created,description_1&$top=50
GET https://odata-api.fledge.nl/v2-8/DocumentRegistrations(administration_id=1,document_registration_id={document_registration_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `document_registration_id` (key) | Int32, not null | Nummer |
| `changed_by_user_code` | String | Gebr.wijzig: Gebruikerscode van gebruiker laatste wijziging |
| `changed_by_user_id` | Int32 | Gebruiker wijziging: Gebruiker laatste wijziging |
| `cloud_storage_location_id` | Int32 | Volgnummer WebDav. The storage location. 0 on old documents until the file is first opened through the Fledge API, which then stores the location it found the file on. |
| `created_by_user_code` | String | Gebr.aanm.: Gebruikerscode van gebruiker aanmaak |
| `created_by_user_id` | Int32 | Gebruiker aanmaak |
| `date_changed` | Date | Datum wijziging: Datum laatste wijziging |
| `date_created` | Date | Datum aanmaak. The upload date. For files uploaded through the Fledge API (the app does so) it is the UTC date. |
| `description_1` | String | Omschrijving 1. The description; the app fills it with the file name. |
| `description_2` | String | Omschrijving 2 |
| `description_3` | String | Omschrijving 3 |
| `filename` | String | Bestandsnaam exclusief pad. The file name, without the path. |
| `keywords` | String | Keywords van het document |
| `memo` | String | Memo |
| `report` | String | Volledige bestandsnaam. The full stored path of the file, not a report. |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `CreatedBy` → [Users](https://docs.fledge.nl/en/api/reference/Users.md) (one)
- `UpdatedBy` → [Users](https://docs.fledge.nl/en/api/reference/Users.md) (one)
- `CategoryLinks` → [DocumentCategoryLinks](https://docs.fledge.nl/en/api/reference/DocumentCategoryLinks.md) (many)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)

---

Source: https://docs.fledge.nl/en/api/reference/DocumentRegistrations
