The answer is: joint occupation
Join occupation refers to an agreement between two nations to share control or ownership over a certain area.
To form a join occupation, both nations involved typically required to specify several things in their agreement. Including Borders, division of resources, peace agreement to not initiate military attack, etc.