Get all user hub permissions of the authenticated hub.
Successful operation
{- "success": true,
- "hash": "2bdfd25d636c844332bab8117b1cb191f1ec7c83",
- "data": [
- {
- "hash": "79cadf502e6f6b8e9b8f70fa4a24159f15efbbd0",
- "umask": 1,
- "created_time": "2022-06-27T11:02:43.000000Z",
- "modified_time": "2022-06-27T11:02:43.000000Z",
- "modified_user_time": "2022-06-27T11:02:43.000000Z",
- "model": "UserHubPermission",
- "user": {
- "id": 2,
- "hash": "a13b1b362d914d12bbcf5de981e3a7f53d00a8d0",
- "name": "Uli Hoeneß",
- "first_name": "Uli",
- "last_name": "Hoeneß",
- "position": "CEO",
- "department": "Sausage factory",
- "organization": "Nordantech",
- "email": "knacki@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T11:01:10.000000Z",
- "modified_time": "2022-08-22T16:10:03.000000Z",
- "modified_user_time": "2022-08-22T16:10:03.000000Z",
- "model": "User"
}, - "hub": {
- "id": 1,
- "hash": "1daa7da5ba074972eb3d4552414928f5201541f3",
- "name": "Nordantech",
- "status": 1,
- "created_time": "2022-06-27T09:48:05.000000Z",
- "modified_time": "2022-08-22T10:09:16.000000Z",
- "modified_user_time": "2022-08-22T10:09:16.000000Z",
- "model": "Hub"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - {
- "hash": "a48e32fef60bce912fe39d7ce8e7c0c0b0bd5a6f",
- "umask": 0,
- "created_time": "2022-06-27T12:11:04.000000Z",
- "modified_time": "2022-06-27T12:11:52.000000Z",
- "modified_user_time": "2022-06-27T12:11:52.000000Z",
- "model": "UserHubPermission",
- "user": {
- "id": 4,
- "hash": "59a3ef6ef6bc76e50b85b3ecd2d3d9eb8691e576",
- "name": "Franz Beckenbauer",
- "first_name": "Franz",
- "last_name": "Beckenbauer",
- "position": "Imperator",
- "department": "Anti-corruption",
- "organization": "Nordantech",
- "email": "derkaiser@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T12:11:04.000000Z",
- "modified_time": "2022-08-22T10:40:45.000000Z",
- "modified_user_time": "2022-08-01T15:23:51.000000Z",
- "model": "User"
}, - "hub": {
- "id": 1,
- "hash": "1daa7da5ba074972eb3d4552414928f5201541f3",
- "name": "Nordantech",
- "status": 1,
- "created_time": "2022-06-27T09:48:05.000000Z",
- "modified_time": "2022-08-22T10:09:16.000000Z",
- "modified_user_time": "2022-08-22T10:09:16.000000Z",
- "model": "Hub"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}
], - "meta": {
- "page": 1,
- "first": 1,
- "last": 2,
- "total": 2,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1661356191055
}
Get a user hub permission.
Successful operation
Not Found
{- "success": true,
- "hash": "20bb244e10c41a38bab9aec28126f4491f00d42e",
- "data": {
- "hash": "79cadf502e6f6b8e9b8f70fa4a24159f15efbbd0",
- "umask": 1,
- "created_time": "2022-06-27T11:02:43.000000Z",
- "modified_time": "2022-06-27T11:02:43.000000Z",
- "modified_user_time": "2022-06-27T11:02:43.000000Z",
- "model": "UserHubPermission",
- "user": {
- "id": 2,
- "hash": "a13b1b362d914d12bbcf5de981e3a7f53d00a8d0",
- "name": "Uli Hoeneß",
- "first_name": "Uli",
- "last_name": "Hoeneß",
- "position": "CEO",
- "department": "Sausage factory",
- "organization": "Nordantech",
- "email": "knacki@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T11:01:10.000000Z",
- "modified_time": "2022-08-22T16:10:03.000000Z",
- "modified_user_time": "2022-08-22T16:10:03.000000Z",
- "model": "User"
}, - "hub": {
- "id": 1,
- "hash": "1daa7da5ba074972eb3d4552414928f5201541f3",
- "name": "Nordantech",
- "status": 1,
- "created_time": "2022-06-27T09:48:05.000000Z",
- "modified_time": "2022-08-22T10:09:16.000000Z",
- "modified_user_time": "2022-08-22T10:09:16.000000Z",
- "model": "Hub"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1661357400852
}
Update a user hub permission.
Successful operation
Not Found
Unprocessable Content
{- "umask": 1
}
{- "success": true,
- "hash": "112ce67301a71532e4b74b07690bf65fecd911d5",
- "data": {
- "hash": "a48e32fef60bce912fe39d7ce8e7c0c0b0bd5a6f",
- "umask": 1,
- "created_time": "2022-06-27T12:11:04.000000Z",
- "modified_time": "2022-08-25T07:56:26.000000Z",
- "modified_user_time": "2022-08-25T07:56:26.000000Z",
- "model": "UserHubPermission",
- "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1661414187274
}
Delete a user hub permission.
A JSON object containing user hub permission information
Successful operation
Not Found
Unprocessable Content
{- "user": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "finished": false
}
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1661420192006
}