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)); } }