Skip to content

Assign Role

Request

Assign a Users to a specific Project Role.
Here "ownerId refers to the "contactId of the project.

Security
bearerAuth
Path
projectIdinteger, (int64), >= 1required

ID of the Project

Example:1
Bodyapplication/jsonrequired

Add a Users to a specific Project Role. Accepted RoleId: PROJECT_ADMIN, ANALYST, REVIEWER, OBSERVER

ownerIdstring

ownerId

Example:"admin"
securityContactIdstring

securityContactId

Example:"admin"
developerContactIdstring

developerContactId

Example:"admin"
legalContactIdstring

legalContactId

Example:"admin"
userRolesobject(usersRole)
legalContactstringwrite-only
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"
  }'

Responses

OK