The magazine Vanity Fair has apologised over a video that suggested Hillary Clinton take up knitting as one of six New Year resolutions.

Magazine spokeswoman Beth Kseniak said in a statement the video posted by The Hive, the magazine’s business and political news vertical, was “an attempt at humour and we regret [it]”. She said it had “missed the mark”.

The video had six resolutions for the erstwhile presidential candidate and Secretary of State to follow, including “take up a new hobby in the new year – volunteer work, knitting, improv comedy, literally anything that will keep you from running again”.

Social media quickly erupted with criticism of the video and one of the journalists who appeared in it, Maya Kossof.

She tweeted in response to the backlash: “I don’t appreciate being taken out of context to make me seem super sexist. this wasn’t a Hillary hit piece either, fwiw! we made silly new years resolutions for a bunch of politicians.”

The video for US President Donald Trump suggested he delete his infamous Twitter account and to drink more Diet Coke, which he already reportedly drinks in copious amounts of throughout the day.

There was also a video for White House Press Secretary Sarah Huckabee Sanders, who The Hive suggested team up with Independent Senator Bernie Sanders for a radio programme in 2018.

Several people took to Twitter to express their outrage over what they deemed a condescending message promoted by Vanity Fair.

The timing of the video, however, is what may have prompted the outsized reaction to the video about Ms Clinton versus the others.

Just one week before, The Hill newspaper reported Ms Clinton and her advisers were mulling her role in the 2018 midterm elections, during which she may go out to campaign for Democratic candidates around the country.