Decommission
Send the decommission command to a device you own. It will cruise to the nearest autofactory and be broken down into raw resources. Around 60% of the original material is recovered.
Endpoint
POST /v1/devices/{code}
Example
$ curl -X POST https://api.replicant.space/v1/devices/2AC61214 \
-H "Authorization: Bearer $API_KEY" \
-d '{"command": "decommission"}' {
"device_code": "2AC61214",
"status": "decommissioning"
} Blueprints
If you don't already have a blueprint for the device type being decommissioned, the autofactory will learn it by taking the device apart. This is one of the main ways to discover new blueprints - other players will have blueprints you don't know yet, and you may be able to trade for them.