add dleete image projects

This commit is contained in:
Phuoc Nguyen
2025-11-28 13:47:47 +07:00
parent 6e7e848ad6
commit ed6cc4cebc
6 changed files with 300 additions and 39 deletions

View File

@@ -315,6 +315,11 @@ class ApiConstants {
static const String getProjectDetail =
'/building_material.building_material.api.project.get_detail';
/// Delete project file/attachment (requires sid and csrf_token)
/// POST /api/method/frappe.desk.form.utils.remove_attach
/// Form-data: { "fid": "file_id", "dt": "Architectural Project", "dn": "project_name" }
static const String removeProjectFile = '/frappe.desk.form.utils.remove_attach';
/// Create new project (legacy endpoint - may be deprecated)
/// POST /projects
static const String createProject = '/projects';