You want to add a role or resource in the Team / Staff tab using the REST API. Is there an example REST call to reference?
All Clarity releases
Here is an example:
Request URL:
5086214 is the id of the project
https://yourservernamehere/ppm/rest/v1/projects/5086214/teams
Request Method:
POST
Request body (5059409 is the id of the role) :
{"resource":5059409}
This is valid for all releases after 16.x