Get list of Screen Fields

In jira cloud we have 2 types of projects ( Team managed and Company managed )
When i try to get screen tabs then fields from tabs of a project company managed from the atlassian connect api i get the data but when i try the same thing for a project team managed i get an error 400 Bad Request
So how can i get the fields of a project team managed with the connect api ? Thank you