To detach the cap, insert tip of sharp pointed tool to the recess between cap and pedal body (shown on the photograph as red point), then lever out the cap gently.. Please be careful not to scratch pedal or your own body.
To attach the cap, adjust small protrusion of the cap and recess of the body, then push into the position.