deblokemaitra
Level 2

Need Info on assignProjectRole REST API

Jump to solution

I am trying to write a REST client that would assign users to Project as PROJECT_ADMIN. 

I am referring to following API SPEC but it is missing the what needs to be passed in the userRoles field:

https://docs.revenera.com/fnci2022r1/api/index.html#api-ProjectAPI-assignProjectRole

Can someone please share what the json body should look like?


Labels (2)
0 Kudos
1 Solution
sgeary
Revenera
Revenera
 

Please try using something similar to this body to assign user to the project admin

            {

                "userRoles": {
                    "roleId""PROJECT_ADMIN",
                    "users": ["ssecurity""lgull"]
                }
            }

which will assign both users to be project admins for the project within the Post request

View solution in original post

2 Replies
sgeary
Revenera
Revenera
 

Please try using something similar to this body to assign user to the project admin

            {

                "userRoles": {
                    "roleId""PROJECT_ADMIN",
                    "users": ["ssecurity""lgull"]
                }
            }

which will assign both users to be project admins for the project within the Post request

That worked. Thanks!

0 Kudos