public function updateInputControlOrder($uri, array $controls)
    {
        $url = $this->service_url . '/reports' . $uri . '/inputControls';
        $body = array("inputControl" => array());
        foreach ($controls as $control) {
            if ($control instanceof InputControl) {
                $body['inputControl'][] = $control->jsonSerialize();
            }
        }
        $response = $this->service->prepAndSend($url, array(200), 'PUT', json_encode($body), true);

        $json_obj = json_decode($response);
        $result = array();
        foreach ($json_obj->inputControl as $control) {
            $result[] = InputControl::createFromJSON($control);
        }
        return $result;
    }