# CloudStorageLocations

> Where documents are stored: a SharePoint or WebDAV location.

Subject: Documents.

Where documents are stored: a SharePoint or WebDAV location.

Label in Fledge: WebDAV mappings.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/CloudStorageLocations` |
| Key | `cloud_storage_location_id` |
| Administration-specific | no |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, BEHEER |
| Write licenses | BEHEER |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/CloudStorageLocations?$select=cloud_storage_location_id,updated_by,username,created&$top=50
GET https://odata-api.fledge.nl/v2-8/CloudStorageLocations({cloud_storage_location_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `cloud_storage_location_id` (key) | Int32, not null | Volgnummer |
| `created` | DateTimeOffset | Aangemaakt op: Datum/tijd aanmaak |
| `modified` | DateTimeOffset | Gewijzigd op: Datum/tijd laatste wijziging |
| `created_by` | Int32 | Gebruiker aanmaak |
| `local_path` | String | Lokaal pad |
| `storage_config` | String | Storage configuration |
| `storage_type` | Int32 | Storage type. Values: 0 = An old WebDAV location not yet converted; it becomes 2 once a file is found on it; 1 = SharePoint; 2 = WebDAV |
| `updated_by` | Int32 | Gewijzigd door gebruiker |
| `url` | String | URL |
| `username` | String | User name |

## Relations

- `DocumentRegistrations` → [DocumentRegistrations](https://docs.fledge.nl/en/api/reference/DocumentRegistrations.md) (many)

## Actions

- `GET CloudStorageLocations/getSharePointDrives(…)` — body: `tenant_id` String; `client_id` String; `client_secret` String; `site_id` String — returns SharePointResultDto
- `GET CloudStorageLocations/getSharePointFiles(…)` — body: `tenant_id` String; `client_id` String; `client_secret` String; `site_id` String; `drive_id` String — returns SharePointResultDto
- `GET CloudStorageLocations/getSharePointSites(…)` — body: `tenant_id` String; `client_id` String; `client_secret` String — returns SharePointResultDto
- `POST CloudStorageLocations({cloud_storage_location_id})/upload` — returns DocumentRegistration

---

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