'Heroku API: Add collaborator to app and set his permissions to Deploy, Operate and Manage

I am using Heroku's Platform API to create apps and I am adding collaborators to the app by calling Collaborator Create, passing the app name and collaborator's email.

It works but the issue is that I can't set the collaborator's privileges directly through the API call, the collaborator just has View permissions on the app but I also want him to have Deploy and Operate.

I tried sending extra parameters but Heroku rejects and returns 422.

Is this a limitation of the API? Is there an alternative?



Solution 1:[1]

Nevermind, use the Team COllaborator Create

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alexandre Borela