Create a new user measure permission for a user and a measure.
If the user measure permission for the measure and the user already exists, it will be updated if necessary.
A JSON object containing user measure permission information.
Successful operation
Successful operation
Unprocessable Content
{- "user": 2,
- "measure": 3,
- "umask": 1
}
{- "success": true,
- "hash": "4fef52b4aa46666b18870f3ce0b506405b3ea212",
- "data": {
- "hash": "b796e308d36c4f0773ab146a87fa01fce6a269e2",
- "umask": 1,
- "created_time": "2022-08-30T14:55:21.000000Z",
- "modified_time": "2022-08-30T14:55:21.000000Z",
- "modified_user_time": "2022-08-30T14:55:21.000000Z",
- "model": "UserMeasurePermission",
- "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",
- "user_hub_permission": {
- "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"
}
}, - "measure": {
- "id": 3,
- "hash": "9524cb0c90bc533294974c5c6ee8766977f9d07d",
- "name": "Machinery hall",
- "description": "Through the sale of old machines and the integration of new future-oriented technologies, the machine park will be significantly improved in terms of efficiency, production accuracy and speed as well as cutting down on waste.",
- "targets": "",
- "assumptions": "",
- "miscellaneous": "",
- "paused": false,
- "locked": false,
- "guarded": false,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-08-22T10:09:17.000000Z",
- "modified_user_time": "2022-08-22T10:09:17.000000Z",
- "model": "Measure"
}
}, - "timestamp": 1681292803660
}
Get all user measure permissions of the authenticated hub.
Successful operation
Unprocessable Content
{- "success": true,
- "hash": "9308116e670e61d1ce4c5965cce7cad011f60e79",
- "data": [
- {
- "hash": "b796e308d36c4f0773ab146a87fa01fce6a269e2",
- "umask": 1,
- "created_time": "2022-08-30T14:55:21.000000Z",
- "modified_time": "2022-08-30T14:55:21.000000Z",
- "modified_user_time": "2022-08-30T14:55:21.000000Z",
- "model": "UserMeasurePermission",
- "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",
- "user_hub_permission": {
- "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"
}
}, - "measure": {
- "id": 3,
- "hash": "9524cb0c90bc533294974c5c6ee8766977f9d07d",
- "name": "Machinery hall",
- "description": "Through the sale of old machines and the integration of new future-oriented technologies, the machine park will be significantly improved in terms of efficiency, production accuracy and speed as well as cutting down on waste.",
- "targets": "",
- "assumptions": "",
- "miscellaneous": "",
- "paused": false,
- "locked": false,
- "guarded": false,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-08-22T10:09:17.000000Z",
- "modified_user_time": "2022-08-22T10:09:17.000000Z",
- "model": "Measure"
}, - "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": "7c889da0e844345f44cde3032edd99ec4da35585",
- "umask": 1,
- "created_time": "2022-08-30T15:03:19.000000Z",
- "modified_time": "2022-08-30T15:03:19.000000Z",
- "modified_user_time": "2022-08-30T15:03:19.000000Z",
- "model": "UserMeasurePermission",
- "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",
- "user_hub_permission": {
- "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"
}
}, - "measure": {
- "id": 2,
- "hash": "952d544cd1d50a3937b903ee9f0322808baba201",
- "name": "Turnover",
- "description": "ABC and XYZ analyses, the improvement of the forecast accuracy and the adjustment of order quantities and order rhythms should positively influence the turnover rate of the warehouse and ideally even provide free space for planned expansions in the coming year.",
- "targets": "",
- "assumptions": "",
- "miscellaneous": "",
- "paused": false,
- "locked": false,
- "guarded": false,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-08-22T10:09:17.000000Z",
- "modified_user_time": "2022-08-09T08:40:09.000000Z",
- "model": "Measure"
}, - "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": 1661872354974
}
Get a user measure permission.
Successful operation
Not Found
{- "success": true,
- "hash": "7f3358a31595632c27b875177c212e91bef57302",
- "data": {
- "hash": "b796e308d36c4f0773ab146a87fa01fce6a269e2",
- "umask": 1,
- "created_time": "2022-08-30T14:55:21.000000Z",
- "modified_time": "2022-08-30T14:55:21.000000Z",
- "modified_user_time": "2022-08-30T14:55:21.000000Z",
- "model": "UserMeasurePermission",
- "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",
- "user_hub_permission": {
- "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"
}
}, - "measure": {
- "id": 3,
- "hash": "9524cb0c90bc533294974c5c6ee8766977f9d07d",
- "name": "Machinery hall",
- "description": "Through the sale of old machines and the integration of new future-oriented technologies, the machine park will be significantly improved in terms of efficiency, production accuracy and speed as well as cutting down on waste.",
- "targets": "",
- "assumptions": "",
- "miscellaneous": "",
- "paused": false,
- "locked": false,
- "guarded": false,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-08-22T10:09:17.000000Z",
- "modified_user_time": "2022-08-22T10:09:17.000000Z",
- "model": "Measure"
}, - "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": 1661873315818
}
Update a user measure permission.
Successful operation
Not Found
Unprocessable Content
{- "umask": 0
}
{- "success": true,
- "hash": "eaf0e4418beed0a86550dbb3cc24ed2d0bd2c2f9",
- "data": {
- "hash": "b796e308d36c4f0773ab146a87fa01fce6a269e2",
- "umask": 0,
- "created_time": "2022-08-30T14:55:21.000000Z",
- "modified_time": "2022-08-30T15:35:52.000000Z",
- "modified_user_time": "2022-08-30T15:35:52.000000Z",
- "model": "UserMeasurePermission",
- "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": 1661873752387
}
Delete a user measure permission.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1661874432410
}