User
Delete Expired Users
Changed onDelete cleanup-target users in the specified scope.
- target: expired | limited | on_hold | disabled | inactive
- expired_after / expired_before UTC datetime (optional)
- For expired: filters by expiration date.
- For limited / on_hold / disabled: filters by last_status_change (when they entered that status).
- For inactive: filters by last activity (online_at, or created_at if never online); expired_before is required.
- dry_run: if true, returns users that would be deleted without deleting them.
delete/api/users/expired
Request
- Base URLhttps://api.ha-man2.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.ha-man2.com/api/users/expired
- AuthOAuth 2PasswordToken URL: /api/admin/token
Query parameters
admin_usernamestring nullable
target'expired' | 'limited' | 'on_hold' | 'disabled' | 'inactive'
expired_afterstring date-time nullable
Example:2024-01-01T00:00:00+03:30
expired_beforestring date-time nullable
Example:2024-01-31T23:59:59+03:30
dry_runboolean
Response
Successful Response
Changes
- info
added the new optional
queryrequest parameterdry_run - info
added the new enum value
disabledto thequeryrequest parametertarget - info
added the new enum value
inactiveto thequeryrequest parametertarget - info
added the new enum value
on_holdto thequeryrequest parametertarget
- info