Can update account name
This commit is contained in:
@ -49,4 +49,17 @@ export class AccountApi {
|
||||
method: "PUT",
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Update account
|
||||
*/
|
||||
static async Update(account: Account): Promise<void> {
|
||||
await APIClient.exec({
|
||||
uri: `/account/${account.id}`,
|
||||
method: "PUT",
|
||||
jsonData: {
|
||||
name: account.name,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user