1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

purge org vault apis

This commit is contained in:
Kyle Spearrin
2018-09-25 09:12:11 -04:00
parent d81273c44f
commit d1847690f2
3 changed files with 8 additions and 4 deletions

View File

@@ -380,8 +380,12 @@ export class ApiService implements ApiServiceAbstraction {
return this.send('PUT', '/ciphers/' + id + '/collections-admin', request, true, false);
}
postPurgeCiphers(request: PasswordVerificationRequest): Promise<any> {
return this.send('POST', '/ciphers/purge', request, true, false);
postPurgeCiphers(request: PasswordVerificationRequest, organizationId: string = null): Promise<any> {
let path = '/ciphers/purge';
if (organizationId != null) {
path += '?organizationId=' + organizationId;
}
return this.send('POST', path, request, true, false);
}
postImportCiphers(request: ImportCiphersRequest): Promise<any> {