Skip to content

Commit

Permalink
Renamed management routes (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
dean-ab authored Jan 28, 2024
1 parent 33427f5 commit 0a34b3a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1358,16 +1358,16 @@ export class FireblocksSDK {

/** Gets all Users Groups for your tenant
*/
public async getUsersGroups(): Promise<UsersGroup[]> {
return await this.apiClient.issueGetRequest("/v1/management/users_groups");
public async getUserGroups(): Promise<UsersGroup[]> {
return await this.apiClient.issueGetRequest("/v1/management/user_groups");
}

/**
* Gets a Users Group by ID
* @param id The ID of the User
*/
public async getUsersGroup(id: string): Promise<UsersGroup> {
return await this.apiClient.issueGetRequest(`/v1/management/users_groups/${id}`);
public async getUserGroup(id: string): Promise<UsersGroup> {
return await this.apiClient.issueGetRequest(`/v1/management/user_groups/${id}`);
}

/**
Expand All @@ -1377,7 +1377,7 @@ export class FireblocksSDK {
*/
public async createUserGroup(groupName: string, memberIds?: string[]): Promise<UsersGroup> {
const body = { groupName, memberIds };
return await this.apiClient.issuePostRequest("/v1/management/users_groups", body);
return await this.apiClient.issuePostRequest("/v1/management/user_groups", body);
}

/**
Expand All @@ -1388,15 +1388,15 @@ export class FireblocksSDK {
*/
public async updateUserGroup(id: string, groupName?: string, memberIds?: string[]): Promise<UsersGroup> {
const body = { groupName, memberIds };
return await this.apiClient.issuePutRequest(`/v1/management/users_groups/${id}`, body);
return await this.apiClient.issuePutRequest(`/v1/management/user_groups/${id}`, body);
}

/**
* Deletes a Users Group
* @param id The ID of the Users Group
*/
public async deleteUserGroup(id: string): Promise<void> {
return await this.apiClient.issueDeleteRequest(`/v1/management/users_groups/${id}`);
return await this.apiClient.issueDeleteRequest(`/v1/management/user_groups/${id}`);
}

/**
Expand Down

0 comments on commit 0a34b3a

Please sign in to comment.