Skip to main content

Validate Gdrive Items

POST 

/v1/gdrive/:workspace_id/validate

Validates if the provided Google Drive root items are accessible using the specified credentials.

It checks if the credential belongs to the user's organization and enforces the presence of 'target_principal' if the credential type is impersonated.

Args

workspace_id (str): The ID of the workspace. user (TokenData): The token data of the authenticated user. req_body (GDriveValidateItemsRequestBody): The request body containing root_item_ids, credential_id, and optional target_principal.

Returns

GDriveValidateItemsResponseModel: A model containing the list of discovered items and a boolean indicating if the validation was successful.

Request

Responses

Successful Response