Can remove a user from a family

This commit is contained in:
2023-07-09 17:25:53 +02:00
parent addaca1b0e
commit b82a48d2aa
2 changed files with 133 additions and 4 deletions

View File

@ -176,4 +176,14 @@ export class FamilyApi {
},
});
}
/**
* Remove a member from the family
*/
static async RemoveUser(user: FamilyUser): Promise<void> {
await APIClient.exec({
method: "DELETE",
uri: `/family/${user.family_id}/user/${user.user_id}`,
});
}
}