/layer/id PUT. Implementation + tests