Skip to main content

Restore a retired system

PUT 

/systems/:targetComputerId

Moves a retired (archived) system back to the active systems list under its original id.

targetComputerId is the original id of the system (the old_id of the retired record). By default the retired copy is deleted after a successful restore. The same operation is available at POST /computers/archived/{targetComputerId}/restore. The request has no body.

Required role: admin or superadmin.

active is parsed only as a boolean flag: any value other than false restores. With preservecopy=true the retired record stays in the retired list and a second call returns 409 because the system is now active. The 200 body is {message, restoredId} as documented.

Request​

Responses​

Restored.