How to get Robot ID using Robot name

I tried this Gokul,I get message saying “An organization unit is required for this action” Not sure if I m missing something header or body .