This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- Code Insight
- :
- Code Insight Forum
- :
- Re: Need Info on assignProjectRole REST API
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Apr 06, 2022
11:34 AM
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?
- Tags:
- Code Insight 2022 R1
(1) Solution
Apr 06, 2022
11:56 AM
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
(2) Replies
Apr 06, 2022
11:56 AM
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
Apr 06, 2022
01:05 PM
That worked. Thanks!