DriveSyncRequest
Drive sync request model
Properties
| Property | Type | Required | Description |
|---|---|---|---|
folder_id | string | β Yes | Google Drive folder ID |
sync_all | boolean | β No | Sync all files or only new ones |
auto_embed | boolean | β No | Automatically embed after sync |
Example
{
"folder_id": "example",
"sync_all": false,
"auto_embed": false
}Used In
Code Examples
TypeScript
interface DriveSyncRequest {
folder_id: string;
sync_all?: boolean;
auto_embed?: boolean;
}
// Usage example
const data: DriveSyncRequest = {
"folder_id": "example",
"sync_all": false,
"auto_embed": false
};Python
from data_layer.schemas import DriveSyncRequest
# Create instance
data = DriveSyncRequest(
# Add your field values here
)cURL
curl -X POST "https://altsportsleagues-backend-2qcdjegnaa-uc.a.run.app/api/endpoint" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{ "folder_id": "example", "sync_all": false, "auto_embed": false }'Validation Rules
Required Fields: folder_id
Additional Information
- Type: object
- Source: Generated from Pydantic models in
data_layer/schemas/ - Auto-validated: All fields are validated by FastAPI
This documentation is auto-generated from the OpenAPI specification.