patients

Delete users by ids: disable Keycloak + mark deleted in DB

Admin only. For each user UUID: disables the account in Keycloak (if present), disables the user and stamps users.deleted_at. This is a reversible deactivation (see /patients/restore-by-user-ids)At most 50 IDs per request. Operator users are rejected. Works for any patient user, including when deletion_requested_at is null (admin-initiated deletion).

post/api/patients/delete-by-user-ids

Request body

user_idsstring[] required

Response

Successful Response

{"stackTrail":"paths:/api/patients/delete-by-user-ids:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes