- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Apr 06, 2022
01:05 PM
That worked. Thanks!
