First of all, you need to know whether it needs a fire rating and if so, whether it is 1 hour or 2 hour. After you get that answer from the code, there are books full of assemblies. I like the UL manual of fire resistive construction but others are available from The Gypsum Association, Factory Mutual and others. They describe materials, fasteners, joint treatment, and all the details of construction. Since you asked, you are obviously interested in doing it right. Any deviation from the tested assemblies in the book means it has no fire rating. The wall has to be built from deck to deck, and be fire and smoke tight. Also you need to properly fire stop penetrations like wires and pipes. I like Hilti intumescent fire caulk, it does 90% of what is usually there. Don’t forget to look for fire rating labels on doors and frames. 1 hour walls get 3/4 hour doors, 2 hour walls get 1 1/2 hour doors. I should also mention that this involves an exiting feature and a fire safety feature, both of which trigger the requirement for a building permit in NYS. I give you credit for wanting to do it right, but if you touch it without a permit you are taking responsibility for it.