Newbie trying API to turn on/off a switch

Thanks. Per some of the earlier responses, I’m not sure how to send the authorization from Synology.