diff --git a/src/abstractions/api.service.ts b/src/abstractions/api.service.ts index 8b2a39f098..7809b9e397 100644 --- a/src/abstractions/api.service.ts +++ b/src/abstractions/api.service.ts @@ -198,7 +198,7 @@ export abstract class ApiService { putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise; postLeaveOrganization: (id: string) => Promise; postOrganizationLicense: (data: FormData) => Promise; - deleteOrganization: (id: string) => Promise; + postDeleteOrganization: (id: string, request: PasswordVerificationRequest) => Promise; getEvents: (start: string, end: string, token: string) => Promise>; getEventsCipher: (id: string, start: string, end: string, token: string) => Promise>; diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 06d0c299e6..8b0c6fd825 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -651,8 +651,8 @@ export class ApiService implements ApiServiceAbstraction { return new OrganizationResponse(r); } - deleteOrganization(id: string): Promise { - return this.send('DELETE', '/organizations/' + id, null, true, false); + postDeleteOrganization(id: string, request: PasswordVerificationRequest): Promise { + return this.send('POST', '/organizations/' + id + '/delete', request, true, false); } // Event APIs