How to change rights on the directory in ISP Manager?

Work with the panel through the API. Download the archive from the website and unpack a file.extract. The website successfully stands up, but not through the admin panel to upload new photos, because there is no write permission in the directory /img/ that were unpacked from the archive. The owner of the checked out root directory. PHP, as I understand it works under another user.
Need without going to the dashboard via API to change the rights on the specified directory. Is this possible or another solution I described problem?

Thanks in advance for your help with the answer!
June 27th 19 at 15:36

Find more questions by tags ISPmanager