This web API changes the precedence of a script (move up/down), it does not upload a new script.
It takes a <script-source> parameter, which should have the bot's id (instance), and the scripts id (id) set,
<script-source application="..." user="..." token="..." instance="1234" id="4567"/>