Can we change the segment status from "Context Match" to "Perfect Match" by Trados Studio API?

Can we change the segment status from "Context Match" to "Perfect Match" by Trados Studio API?

Thank you,