Create a new user measure package permission for a user and a measure package.
If the user measure package permission for the package and the user already exists, it will be updated if necessary.
A JSON object containing user measure package permission information.
Successful operation
Successful operation
Unprocessable Content
{- "user": 6,
- "measure_package": 3,
- "umask": 2
}
{- "success": true,
- "hash": "93bbc1cf64af64006c513b56b26344be5c163b64",
- "data": {
- "hash": "5d05d4d7356aa92995ca41794b40b4e0b0aae766",
- "umask": 2,
- "created_time": "2022-08-31T08:14:41.000000Z",
- "modified_time": "2022-08-31T08:14:41.000000Z",
- "modified_user_time": "2022-08-31T08:14:41.000000Z",
- "model": "UserMeasurePackagePermission",
- "user": {
- "id": 6,
- "hash": "49dd34eb82cc77ca8bccb35dd9a188f79d5c4026",
- "name": "Hasan Salihamidžić",
- "first_name": "Hasan",
- "last_name": "Salihamidžić",
- "position": "Scapegoat",
- "department": "Board",
- "organization": "Nordantech",
- "email": "brazzo@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T12:46:12.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-03T15:17:06.000000Z",
- "model": "User",
- "user_hub_permission": {
- "hash": "8e9b7cae66f502fb8e9b59f8f7f41a4a15efbbd0",
- "umask": 1,
- "created_time": "2022-06-27T11:03:13.000000Z",
- "modified_time": "2022-06-27T11:03:13.000000Z",
- "modified_user_time": "2022-06-27T11:03:13.000000Z",
- "model": "UserHubPermission"
}
}, - "measure_package": {
- "id": 3,
- "hash": "950870b767420110ddd95b169b6b105493556b36",
- "name": "Procurement",
- "description": "The procurement measures are aimed at broadening the supplier base (also from a risk perspective) and renegotiating central supplier contracts.",
- "targets": "",
- "assumptions": "",
- "miscellaneous": "",
- "paused": false,
- "locked": false,
- "guarded": false,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-22T10:09:18.000000Z",
- "model": "MeasurePackage"
}
}, - "timestamp": 1681292387645
}
Get all user measure package permissions of the authenticated hub.
Successful operation
Unprocessable Content
{- "success": true,
- "hash": "f5f28431fc2e91facc0972270ff4c0f469ab1995",
- "data": [
- {
- "hash": "d61608198e84fefb43c640548c4977c26b62e738",
- "umask": 1,
- "created_time": "2022-08-31T08:28:04.000000Z",
- "modified_time": "2022-08-31T08:28:04.000000Z",
- "modified_user_time": "2022-08-31T08:28:04.000000Z",
- "model": "UserMeasurePackagePermission",
- "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_package": {
- "id": 2,
- "hash": "7c2638758ccd704cc9320e3495db3850d9c19a99",
- "name": "Production",
- "description": "Through the sale of old machines and the integration of new future-oriented technologies, the machine park is to be significantly improved in terms of efficiency, production accuracy and speed as well as material waste.",
- "targets": "",
- "assumptions": "",
- "miscellaneous": "",
- "paused": false,
- "locked": false,
- "guarded": false,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-02T12:27:43.000000Z",
- "model": "MeasurePackage"
}, - "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": "5d05d4d7356aa92995ca41794b40b4e0b0aae766",
- "umask": 2,
- "created_time": "2022-08-31T08:14:41.000000Z",
- "modified_time": "2022-08-31T08:14:41.000000Z",
- "modified_user_time": "2022-08-31T08:14:41.000000Z",
- "model": "UserMeasurePackagePermission",
- "user": {
- "id": 6,
- "hash": "49dd34eb82cc77ca8bccb35dd9a188f79d5c4026",
- "name": "Hasan Salihamidžić",
- "first_name": "Hasan",
- "last_name": "Salihamidžić",
- "position": "Scapegoat",
- "department": "Board",
- "organization": "Nordantech",
- "email": "brazzo@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T12:46:12.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-03T15:17:06.000000Z",
- "model": "User",
- "user_hub_permission": {
- "hash": "8e9b7cae66f502fb8e9b59f8f7f41a4a15efbbd0",
- "umask": 1,
- "created_time": "2022-06-27T11:03:13.000000Z",
- "modified_time": "2022-06-27T11:03:13.000000Z",
- "modified_user_time": "2022-06-27T11:03:13.000000Z",
- "model": "UserHubPermission"
}
}, - "measure_package": {
- "id": 3,
- "hash": "950870b767420110ddd95b169b6b105493556b36",
- "name": "Procurement",
- "description": "The procurement measures are aimed at broadening the supplier base (also from a risk perspective) and renegotiating central supplier contracts.",
- "targets": "",
- "assumptions": "",
- "miscellaneous": "",
- "paused": false,
- "locked": false,
- "guarded": false,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-22T10:09:18.000000Z",
- "model": "MeasurePackage"
}, - "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": 1661935724423
}
Get a user measure package permission.
Successful operation
Not Found
{- "success": true,
- "hash": "e2827b27f0f2cbd851b969e0aa1ddaa310d97eed",
- "data": {
- "hash": "5d05d4d7356aa92995ca41794b40b4e0b0aae766",
- "umask": 2,
- "created_time": "2022-08-31T08:14:41.000000Z",
- "modified_time": "2022-08-31T08:14:41.000000Z",
- "modified_user_time": "2022-08-31T08:14:41.000000Z",
- "model": "UserMeasurePackagePermission",
- "user": {
- "id": 6,
- "hash": "49dd34eb82cc77ca8bccb35dd9a188f79d5c4026",
- "name": "Hasan Salihamidžić",
- "first_name": "Hasan",
- "last_name": "Salihamidžić",
- "position": "Scapegoat",
- "department": "Board",
- "organization": "Nordantech",
- "email": "brazzo@nordantech.com",
- "status": 1,
- "created_time": "2022-06-27T12:46:12.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-03T15:17:06.000000Z",
- "model": "User",
- "user_hub_permission": {
- "hash": "8e9b7cae66f502fb8e9b59f8f7f41a4a15efbbd0",
- "umask": 1,
- "created_time": "2022-06-27T11:03:13.000000Z",
- "modified_time": "2022-06-27T11:03:13.000000Z",
- "modified_user_time": "2022-06-27T11:03:13.000000Z",
- "model": "UserHubPermission"
}
}, - "measure_package": {
- "id": 3,
- "hash": "950870b767420110ddd95b169b6b105493556b36",
- "name": "Procurement",
- "description": "The procurement measures are aimed at broadening the supplier base (also from a risk perspective) and renegotiating central supplier contracts.",
- "targets": "",
- "assumptions": "",
- "miscellaneous": "",
- "paused": false,
- "locked": false,
- "guarded": false,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-22T10:09:18.000000Z",
- "model": "MeasurePackage"
}, - "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": 1661936632013
}
Update a user measure package permission.
A JSON object containing user measure package permission information
Successful operation
Not Found
Unprocessable Content
{- "umask": 0
}
{- "success": true,
- "hash": "fd485149bfbbe2d0d9afd1d1eec0d73577ac2415",
- "data": {
- "hash": "5d05d4d7356aa92995ca41794b40b4e0b0aae766",
- "umask": 0,
- "created_time": "2022-08-31T08:14:41.000000Z",
- "modified_time": "2022-08-31T09:06:53.000000Z",
- "modified_user_time": "2022-08-31T09:06:53.000000Z",
- "model": "UserMeasurePackagePermission",
- "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": 1661936813749
}
Delete a user measure package permission.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1661937262709
}