When did Texas try to capture New Mexico?

In 1841, an expedition of 300 people from the Republic of Texas (independent from 1836 to 1845) traveled to Santa Fe to encourage New Mexicans to revolt against Mexico.

The Texans failed to convince anyone to revolt and were imprisoned as invaders.

They were only released after strong protests from the U.S. and Britain.