API.Parts: Implement edit_parts.