From 61741980ad5375ee66167b61abd18cb1e2072b37 Mon Sep 17 00:00:00 2001 From: Ramon Candel Date: Tue, 7 May 2024 17:53:40 +0200 Subject: [PATCH] Change decline invitation call --- src/workspaces/index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/workspaces/index.ts b/src/workspaces/index.ts index 459a24a..92ffd0a 100644 --- a/src/workspaces/index.ts +++ b/src/workspaces/index.ts @@ -151,13 +151,7 @@ export class Workspaces { } public declineInvitation(inviteId: string, token: string): Promise { - return this.client.post( - 'workspaces/invitations/decline', - { - inviteId, - }, - this.getRequestHeaders(token), - ); + return this.client.delete(`workspaces/invitations/${inviteId}`, this.getRequestHeaders(token)); } }