SevenShores\Hubspot\Resources\Files::move PHP Method

move() public method

Parameters: folder_path string The path of the folder to move the file into. Use this OR folder_id - not both. folder_id string The id of the folder to move the file into. Use this OR folder_path - not both. name string The new name of the file.
public move ( integer $file_id, array $params = [] ) : Response
$file_id integer
$params array
return SevenShores\Hubspot\Http\Response
    function move($file_id, $params = [])
    {
        $endpoint = "https://api.hubapi.com/filemanager/api/v2/files/{$file_id}/move-file";
        $options['json'] = $params;
        return $this->client->request('post', $endpoint, $options);
    }