Dependent

So my question is that this past tax year my daughter was with her godfather so he claimed her on his taxes. But how do I change it seeing as how I have had full custody of her since January of 2021. When I try to do an ammendment its saying I can't because he already had claimed her.