Add 401 error response for password requirement in export endpoints

This commit is contained in:
Jakub Trávník 2025-12-03 08:33:50 +01:00
parent 9f1a7694a3
commit a7e36e98d7
2 changed files with 28 additions and 0 deletions

View file

@ -2691,6 +2691,12 @@ export type ExportVolumesErrors = {
400: {
error: string;
};
/**
* Password required for export
*/
401: {
error: string;
};
/**
* Volume not found
*/
@ -2849,6 +2855,12 @@ export type ExportBackupSchedulesErrors = {
400: {
error: string;
};
/**
* Password required for export
*/
401: {
error: string;
};
/**
* Backup schedule not found
*/

View file

@ -133,6 +133,14 @@ export const volumesExportDto = describeRoute({
},
},
},
401: {
description: "Password required for export",
content: {
"application/json": {
schema: resolver(errorResponseSchema),
},
},
},
404: {
description: "Volume not found",
content: {
@ -269,6 +277,14 @@ export const backupSchedulesExportDto = describeRoute({
},
},
},
401: {
description: "Password required for export",
content: {
"application/json": {
schema: resolver(errorResponseSchema),
},
},
},
404: {
description: "Backup schedule not found",
content: {