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;
    }
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;
    }
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 ; }
Edit an item with option to create if it doesn't exist

@param int   $id
@param array $parameters
@param bool  $createIfNotExists = false

@return array|mixed
Edit an item with option to create if it doesn t exist