Assign a Users to a specific Project Role.
Here "ownerId refers to the "contactId of the project.
Security
bearerAuth
Add a Users to a specific Project Role. Accepted RoleId: PROJECT_ADMIN, ANALYST, REVIEWER, OBSERVER
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/projects/{projectId}/users
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/projects/{projectId}/users
curl -i -X POST \
https://codeinsightapi.redocly.app/_mock/swagger/projects/1/users \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ownerId": "admin",
"securityContactId": "admin",
"developerContactId": "admin",
"legalContactId": "admin",
"userRoles": {
"roleId": "ANALYST",
"users": [
"string"
]
},
"legalContact": "string"
}'