From b2c700ad285d9336426284f766b434be8c509f0a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 16 Jul 2018 12:41:54 -0400 Subject: [PATCH] org delete apis --- src/abstractions/api.service.ts | 2 +- src/services/api.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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