Looking at https://www.dropbox.com/developers/documentation/http/teams#file_properties-templates-list_for_team
it says the API requires the files.team_metadata.write.
I can't find this exact entry in the apps permissions settings page. So I just ticked everything. But it still returns app not authorized.
request:
curl -X POST https://api.dropboxapi.com/2/file_properties/templates/list_for_team \
--header "Authorization: Bearer xxxxx
response:
Error in call to API function "file_properties/templates/list_for_team": Your app is not authorized to use this endpoint.