Add 401 error response for password requirement in export endpoints
This commit is contained in:
parent
9f1a7694a3
commit
a7e36e98d7
2 changed files with 28 additions and 0 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue