Naya Rivera and her husband Ryan Dorsey will share joint custody of their son.

Court documents obtained by The Blast has revealed that the estranged couple are set to share custody of their little boy Josey Hollis Dorsey and Ryan has agreed to consult with his ex-wife ''on all major decisions related to the child's health, education, and welfare''.

A representative added to PEOPLE magazine: ''The family is working together peacefully and all matters have been amicably resolved.''

Naya recently refiled for divorce from Ryan - two months after she withdrew her previous papers. She has now filed papers to restart the termination of their marriage, citing ''irreconcilable differences''.

Ryan recently posted a statement about the alleged domestic battery incident - where she allegedly struck the 'Blood' actor over the head and in the mouth during a walk with their two-year-old son Josey in West Virginia - on his social media accounts, where he asked for ''positivity and love'' during this ''difficult time''.

He wrote: ''This is a difficult time for everyone in the family especially for Naya and I. This isn't some reality show, this is our life, and I ask that everyone especially the media please respect our privacy and treat us/this situation how you would want a loved one to be treated. Perhaps with kindness, respect, without judgment, and as negative a situation this is, with positivity and love. Thanks.''

Neither Ryan or Naya have commented on the new divorce filing but after papers were filed in 2016, they released a joint statement in which they said they would continue to be ''great co-parenting partners'' for their son.

The statement read: ''After much consideration, we have made the decision to end our marriage. Our priority is and always will be our beautiful son that we share together. We will continue to be great co-parenting partners for him. We ask for respect and privacy for our family during this difficult time.''