You will need to petition the court for permission to amend the custody agreement.