User group assigment

The user group assigment.

Create a user group assignment

Create a new user group assignment for a user and a group.

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing user group assignment information.

user_id
required
integer >= 1

The user of the new user group assignment.

Without a user id the request will always return a 403 Forbidden response.

group_id
required
integer >= 1

The group of the new user group assignment.

Without a group id the request will always return a 403 Forbidden response.

Responses
201

Successful operation

422

Unprocessable Content

post/usergroupassignment
Request samples
application/json
{
  • "user_id": 6,
  • "group_id": 8
}
Response samples
application/json
{
  • "success": true,
  • "hash": "4d24fdb8b7685c86c4ddcb74a7b503fa7e4c3763",
  • "data": {
    },
  • "timestamp": 1661948139963
}

Get all user group assignments

Get all user group assignments of the authenticated hub.

SecurityJWT
Request
query Parameters
group
string or integer

Filter the user group assignment list for a group.

Responses
200

Successful operation

404

Not Found

get/usergroupassignment
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "ba9031f23a3459812c9dd3ce9d5e650e70d8b07e",
  • "data": [
    ],
  • "timestamp": 1661948985925
}

Get a user group assignment

Get a user group assignment.

SecurityJWT
Request
path Parameters
usergroupassignment
required
string

The hash of the user group assignment.

Responses
200

Successful operation

404

Not Found

get/usergroupassignment/{usergroupassignment}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "265d9f6fcb0cdb1dd438ac11a5919642838a1450",
  • "data": {
    },
  • "timestamp": 1661949528292
}

Delete a user group assignment

Delete a user group assignment.

SecurityJWT
Request
path Parameters
usergroupassignment
required
string

The hash of the user group assignment.

Responses
200

Successful operation

404

Not Found

delete/usergroupassignment/{usergroupassignment}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
  • "data": [ ],
  • "timestamp": 1661438926362
}