No user is available to manage TLD except the Admin user, it means that "x-auth-sudo-project-id and x-auth-all-projects" are not relevant for TLD section and needed to be removed from: https://docs.openstack.org/api-ref/dns/?expanded=set-floatingip-s-ptr-record-detail,unset-floatingip-s-ptr-record-detail,create-zone-detail,delete-tld-detail#tld APIs.
TLD are global and not tied to a specific project ID, so those headers have no meaning. API-ref docs bug.