save email as pdf likae attachment version 2
This commit is contained in:
@@ -506,6 +506,14 @@ export const cachedEmailApi = {
|
||||
);
|
||||
return res.data;
|
||||
},
|
||||
// E-Mail als PDF speichern
|
||||
saveEmailAsPdf: async (emailId: number, params: { entityType: string; entityId?: number; targetKey: string }) => {
|
||||
const res = await api.post<ApiResponse<{ path: string; filename: string; size: number }>>(
|
||||
`/emails/${emailId}/save-as-pdf`,
|
||||
params
|
||||
);
|
||||
return res.data;
|
||||
},
|
||||
};
|
||||
|
||||
// Contracts - Vertragsbaum für Kundenansicht
|
||||
|
||||
Reference in New Issue
Block a user