Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed management routes #248

Merged
merged 1 commit into from
Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1351,16 +1351,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 @@ -1370,7 +1370,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 @@ -1381,15 +1381,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
Loading