Can update account name

This commit is contained in:
2025-04-09 18:47:05 +02:00
parent 8ecb5b79eb
commit 82186259d1
2 changed files with 36 additions and 3 deletions

View File

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