I don't recommend you doing that. My mother put some kitchenaid attachments in the dishwasher and the dishwasher discolored them.
Other than that it didn't harm the attachments and they were still usable.
But I would just wash them out in the sink by hand. I don't believe that kitchenaid attachments are meant to go into the dishwasher.