Users

Assign model role to user group

Changed on
post/api/v1/user-groups/{id}/model-roles

Request

  • Base URL
    https://omniapp.co (the document declares no server; this is the origin it was published from)
  • URL
    https://omniapp.co/api/v1/user-groups/{id}/model-roles
  • Auth
    HTTP bearer

Path parameters

idstring required

User group short identifier (miniUuid)

Example:abc123

Request body

OR

Example request

{
  "connectionId": "550e8400-e29b-41d4-a716-446655440000",
  "modelId": "550e8400-e29b-41d4-a716-446655440000",
  "roleName": "VIEWER"
}

Response

Role assigned successfully

connectionIdstring uuid required

The connection ID for this role assignment

modelIdstring uuid required

The model ID for this role assignment

roleNamestring required

The assigned role name

userGroupIdstring required

The user group short identifier

Example response

{
  "roleName": "VIEWER",
  "userGroupId": "abc123"
}

Changes