Make a PUT request to the specified path.

@param string $path The path to the desired resource
@param array $params Parameters to send in the PUT data
@return TiendaNube/API/Response
507881
public function put($path, $params = []){
        $json = json_encode($params);
        
        return $this->_call('PUT', $path, $json);
    }
599117
public Response put(String path, Object payload) throws IOException, RESTException {
        return put(path, payload, null);
    }
1222779
protected function put($path, array $parameters = array(), $requestHeaders = array())
    {
        foreach ($parameters as $name => $parameter) {
            if (is_bool($parameter)) {
                $parameters[$name] = $parameter ? 'true' : 'false';
            }
        }

        $response = $this->client->getHttpClient()->put(
            $path,
            $this->createParametersBody($parameters),
            $requestHeaders
        );

        return ResponseMediator::getContent($response);
    }
991626
protected function buildRequest($path)
    {
        $request = new Request();
        $apiToken = $this->getApiToken();
        if ($apiToken !== '') {
            $request->getHeaders()->addHeaders(['API-Token' => $apiToken]);
        }
        $path = (string) $path;
        if ($path !== '' && $path[0] !== '/') {
            $path = '/' . $path;
        }
        $request->setUri($this->getEntryPoint() . $path);

        return $request;
    }
1254586
protected function post($path, array $parameters = array(), $requestHeaders = array())
    {
        return $this->postRaw(
            $path,
            $this->createParametersBody($parameters),
            $requestHeaders
        );
    }
1090609
public function updateByPath($path)
    {
        $response = $this->httpRequest($path, Requests::PUT, $this);

        return $this->populate($response);
    }
1366800
public Response put(String path) throws IOException, RESTException {
        return put(path, null, null);
    }
1044940
function put($path, $body, $contentType = null)
	{
		return $this->_dispatchRequest(
			$this->_buildRequest('PUT', $path, $body, $contentType)
		);
	}
151112
public function get($path, $params = [])
    {
        return $this->ttools->makeRequest(
            TTools::API_BASE . '/' . TTools::API_VERSION . $path,
            $params,
            'GET',
            false
        );
    }
219535
public function put($url, array $params = [])
    {
        return $this->request($this->createUrl($url), self::METHOD_PUT, $params);
    }
336366
public function post($path, $parameters)
    {
        $request = $this->getRequest(static::HTTP_POST, $path, $parameters);

        return $this->sendRequest($request);
    }
1214715
public function post($path, array $parameters = [], array $headers = [], $body = null)
	{
		$this->setQuery($parameters);
		$this->setHeaders($headers);
		if ($body instanceof BodyMultipart) {
			$this->setMultipart($body);
		} elseif (is_array($body)) {
			$this->setFormParams($body);
		}

		return  $this->client->request('POST', $path, $this->headers);
	}
926379
public function put($url, $params = null) {
    $this->params = $params;
    $this->method = 'PUT';
    $this->url = $url;

    return $this->request();
  }
767403
protected function post(string $path, array $params = [], array $headers = [])
    {
        $body = self::createJsonBody($params);

        if ($body) {
            $headers = self::addJsonContentType($headers);
        }

        return $this->postRaw($path, $body, $headers);
    }
1104722
function put($path, $body, $contentType = null)
    {
        return $this->dispatchRequest(
            $this->buildRequest('PUT', $path, $body, $contentType)
        );
    }
971443
public JSONObject put(String path, Map<String, Object> params) throws APIError {
        return request(Verb.PUT, path, params);
    }
1291085
protected function post($path, array $parameters = array(), $body = array())
    {
        if (count($parameters) > 0) {
            $path .= '?' . http_build_query($parameters);
        }

        $body = json_encode($body);

        $response = $this->client->getHttpClient()->post($path, [], $body);

        return $this->parseResponse($response);
    }