From ed67b46d084468ce98e623646ee7cb00d7844c0d Mon Sep 17 00:00:00 2001 From: Justin Dalrymple Date: Wed, 22 Nov 2023 13:38:55 -0500 Subject: [PATCH] Fixing Group SAML Links API for the show and remove methods (#3474) --- packages/core/src/resources/GroupSAMLLinks.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/packages/core/src/resources/GroupSAMLLinks.ts b/packages/core/src/resources/GroupSAMLLinks.ts index a679c9b3..5940acae 100644 --- a/packages/core/src/resources/GroupSAMLLinks.ts +++ b/packages/core/src/resources/GroupSAMLLinks.ts @@ -48,12 +48,11 @@ export class GroupSAMLLinks extends BaseResource { samlGroupName: string, options?: Sudo & ShowExpanded, ): Promise> { - return RequestHelper.del()(this, endpoint`groups/${groupId}/saml_group_links`, { - searchParams: { - samlGroupName, - }, - ...options, - }); + return RequestHelper.del()( + this, + endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`, + options, + ); } show( @@ -63,11 +62,8 @@ export class GroupSAMLLinks extends BaseResource { ): Promise> { return RequestHelper.get()( this, - endpoint`groups/${groupId}/saml_group_links`, - { - samlGroupName, - ...options, - }, + endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`, + options, ); } }