# Get Endpoint - GetOneDriveFoldersById

Loads folders of OneDrive drive with provided id.

# HTTP Request

One of the following requests should be made:

GET /api/syncjobs/onedrive/drives({driveId})
GET /api/syncjobs/onedrive/drives/{driveId}

# Path parameters

Name Description
driveId required

# Query parameters

Name Description
oneDriveFolderId optional. OneDrive id to which the item belongs for that the preview url should be loaded.

# Request headers

Name Description
Authorization required Bearer {token}. See authorization

# Responses

Code Description Type
200 List of folders. array OneDriveItemDto
401 If access is not allowed with the given credentials/data.
500 Loading OneDrive drive folders has failed due to an internal server error.
Last updated: May 15, 2025 at 6:02 PM