Skip to main content

RestoreUser

POST 

/v1/users/:user_id/restore

RestoreUser reverses DeleteUser: it clears deleted_at/deleted_by, and lifts the USER_DELETED ban the delete wrote. It does not touch an operator's separate suspension (a ban whose reason is not the USER_DELETED sentinel survives a restore), and it does not resurrect the revoked API keys or deleted sessions -- those stay revoked, and the user mints new credentials on next login. NOT_FOUND when the user_id has no row or carries no deleted_at (shaped as "not deleted").

Request

Responses

Success