public function update(Theme &$theme)
    {
        $data = $theme->exportData();
        $endpoint = '/admin/themes/'.$theme->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'theme' => $data
            )
        );
        $theme->setData($response['theme']);
    }