Kavita/API/DTOs/ScanFolderDto.cs
2025-05-04 07:14:44 -07:00

18 lines
489 B
C#

namespace API.DTOs;
/// <summary>
/// DTO for requesting a folder to be scanned
/// </summary>
public sealed record ScanFolderDto
{
/// <summary>
/// Api key for a user with Admin permissions
/// </summary>
public string ApiKey { get; set; } = default!;
/// <summary>
/// Folder Path to Scan
/// </summary>
/// <remarks>JSON cannot accept /, so you may need to use // escaping on paths</remarks>
public string FolderPath { get; set; } = default!;
}