Kelly Rutherford and her ex-husband Daniel Giersch have settled their custody battle, reports.

In paperwork filed in Los Angeles, the two have agreed to relocate to New York while Rutherford shoots Gossip Girl there. They will share joint custody of their two children, according to

Rutherford, who filed for divorce in December, gave birth to the couple’s second child, Helena Grace, in June.

At the height of the pair’s custody battle, Rutherford accused her ex of being “angry” all the time and admitted she had hired a private detective to install cameras in her ex’s Los Angeles home — to check on his parenting techniques.

In the midst of the court battle, Rutherford asked a judge to help the parents settle a toilet-training disagreement.