# Organizing locations endpoints

Source: https://developer.synup.com/api/organizing-locations
Base URL: `https://api.synup.com/api/v4`

| Method | Endpoint | Path |
| --- | --- | --- |
| POST | [Add location to a tag](https://developer.synup.com/api/organizing-locations/add-location-to-a-tag) | `/locations/tags` |
| POST | [Add locations to a folder](https://developer.synup.com/api/organizing-locations/add-locations-to-a-folder) | `/locations/folders` |
| POST | [Create a new folder](https://developer.synup.com/api/organizing-locations/create-a-new-folder) | `/folders/create` |
| GET | [Default folder](https://developer.synup.com/api/organizing-locations/default-folder) | `/folders/default` |
| POST | [Delete a folder](https://developer.synup.com/api/organizing-locations/delete-a-folder) | `/folders/delete` |
| GET | [Get details of a folder](https://developer.synup.com/api/organizing-locations/get-details-of-a-folder) | `/folder-details` |
| GET | [List all folders](https://developer.synup.com/api/organizing-locations/list-all-folders) | `/folders/flat` |
| GET | [List all folders under an account in hierarchical structure](https://developer.synup.com/api/organizing-locations/list-all-folders-under-an-account-in-hierarchical-structure) | `/folders/tree` |
| GET | [List all tags](https://developer.synup.com/api/organizing-locations/list-all-tags) | `/tags` |
| GET | [List locations by tags](https://developer.synup.com/api/organizing-locations/list-locations-by-tags) | `/tags/locations` |
| GET | [List locations under a folder](https://developer.synup.com/api/organizing-locations/list-locations-under-a-folder) | `/folder-locations` |
| POST | [Remove location from a tag](https://developer.synup.com/api/organizing-locations/remove-location-from-a-tag) | `/locations/tags/remove` |
| POST | [Remove locations from a folder](https://developer.synup.com/api/organizing-locations/remove-locations-from-a-folder) | `/locations/folders/remove` |
| POST | [Rename a folder](https://developer.synup.com/api/organizing-locations/rename-a-folder) | `/locations/folders/rename` |
