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

archive() public method

Archive a file.
public archive ( integer $file_id ) : Response
$file_id integer The file ID
return SevenShores\Hubspot\Http\Response
    function archive($file_id)
    {
        $endpoint = "https://api.hubapi.com/filemanager/api/v2/files/{$file_id}/archive";
        return $this->client->request('post', $endpoint);
    }