How to send busy to incoming call over ari

I use Asterisk for test automation to generate calls. Asterisk handle outgoing and incoming calls also.
I use ARI to interact/command Asterisk and execute custom test scenarios.

In one case, I need to send back busy for incoming call. Unfortunately I can’t hard code into the dial plan.

So my questions is about, how to send back busy over ARI?
I found an option in ARI documentation, but I am not sure how can I use this for my channel resource.
PUT /deviceStates/{deviceName}

Define “send busy back”. If you are referring to a call then there is an ARI route that allows you to hang it up and provide a reason (such as busy). Device state is for exactly that, device state.

Thank you, yep that what I missed. Send hangup with busy reason.

A post was split to a new topic: Valid reasons for channel delete in ARI