Using REST api to send a mac command

There is already an other topic with the same question: Sending MAC commands with the Application Server REST API.