Creating a Project Role on a Team Managed project


In the documentation for creating a Project Role it says:
a new project role is available to all projects upon creation

But after testing around with this it appears that is not true and it only applies to Company Managed projects. How do I add a Project Role to a Team Managed Project?

Or is this a bug with the Project Role endpoint?