Update project's information.

@see http://www.redmine.org/projects/redmine/wiki/Rest_Projects

@param string $id     the project id
@param array  $params

@return string|false
546279
public function update($id, array $params)
    {
        $defaults = [
            'id' => $id,
            'name' => null,
            'identifier' => null,
            'description' => null,
        ];
        $params = $this->sanitizeParams($defaults, $params);

        $xml = $this->prepareParamsXml($params);

        return $this->put('/projects/'.$id.'.xml', $xml->asXML());
    }
523889
public function show($id, array $params = array())
    {
        return $this->get($this->getPath().'/'.rawurlencode($id), $params);
    }
1278887
public function downloadPreview(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::DOWNLOAD_PREVIEW,
            $params,
            $id
        );
    }
879668
public function getList($id, array $params = array())
    {
        return $this->get($this->getPath().'/'.rawurlencode($id).'/list', $params);
    }
369867
public static function update($sub_app_id, $params, $options = null)
    {
        $url = static::instanceUrlWithId($sub_app_id);
        return static::_directRequest('put', $url, $params, $options);
    }
936084
public function copy(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::POST,
            ResourceMethodEnum::COPY,
            $params,
            $id
        );
    }
899543
public function delete($id, $params = [])
    {
        return $this->gateway->commit('delete', $this->gateway->buildUrlFromString('webhooks/'.$id));
    }
12381
public function update($id,Request $request)
    {
        $email = $this->emails->update( $request->all() );

        alert()->success('Email mis à jour');

        return redirect('build/liste/'.$email->list_id);
    }
997175
public function edit($id, array $parameters, $createIfNotExists = false)
    {
        $method    = $createIfNotExists ? 'PUT' : 'PATCH';
        $supported = $this->isSupported('edit');

        return (true === $supported) ? $this->makeRequest($this->endpoint.'/'.$id.'/edit', $parameters, $method) : $supported;
    }
37864
public function getCard($id, array $params = array())
    {
        return $this->get($this->getPath().'/'.rawurlencode($id).'/card', $params);
    }
527700
public function update($params)
    {
        $promotionTierId = "";

        if (is_array($params)) {
            $promotionTierId = $params["id"];
        }
        elseif (is_object($params)) {
            $promotionTierId = $params->id;
        }

        return $this->client->put("/promotions/tiers/" . rawurlencode($promotionTierId), $params, null);
    }
84098
public function getPublicUrl(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::GET_PUBLIC_URL,
            $params,
            $id
        );
    }
280121
public function delete(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::DELETE,
            ResourceMethodEnum::DELETE,
            $params,
            $id
        );
    }
634789
public function update(string $key, array $params = [])
    {
        $path = $this->buildBuildPath(...explode('/', $key));

        return $this->put($path, $params);
    }
691760
public function update($params = [])
    {
        $response = Guzzle::put("tournaments/{$this->id}", $params);
        return $this->updateModel($response->tournament);
    }
1159047
public function update(Request $request, $id)
    {
        $name = \Transliteration::clean_filename(strtolower($request->label));
        $label = $request->label;

        try
        {
          WorkflowState::where('id',$id)->update(['label' => $label, 'name' => $name]);
        }
        catch(\Illuminate\Database\QueryException $e){
            // do what you want here with $e->getMessage();
            return redirect()->route('state')->with('message', 'Error');
        }

        return redirect()->route('state')->with('message', 'Update data success');
    }
1297184
public function update($id = NULL, $options = NULL) {
        return $this->request("PATCH", self::URL_PLANS . $id . "/", $api_key = $this->culqi->api_key, $options);
    }