Create a new group program permission for a group and a program.
If the group program permission for the program and group already exists, it will be updated if necessary.
A JSON object containing group program permission information.
Successful operation
Successful operation
Unprocessable Content
{- "group": 8,
- "program": 1,
- "umask": 3
}
{- "success": true,
- "hash": "94a20cfc9592b6e63f1ec1cf36f3932fac5180dc",
- "data": {
- "hash": "7a480ef6d1b4c4abf24835061905e3aae6db895a",
- "umask": 3,
- "created_time": "2022-08-31T15:54:18.000000Z",
- "modified_time": "2022-08-31T15:54:18.000000Z",
- "modified_user_time": "2022-08-31T15:54:18.000000Z",
- "model": "GroupProgramPermission",
- "group": {
- "id": 8,
- "hash": "ea3987507e605b4ea9275bb34c1a642a257c71fa",
- "name": "Admin group",
- "status": 1,
- "created_time": "2022-08-25T10:17:51.000000Z",
- "modified_time": "2022-08-25T11:51:38.000000Z",
- "modified_user_time": "2022-08-25T11:51:38.000000Z",
- "model": "Group"
}, - "program": {
- "id": 1,
- "hash": "1650600bd010a50897b50572382460965fed588a",
- "name": "Airborne",
- "description": "",
- "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": "Program"
}, - "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": 1661961258629
}
Get all group program permissions of the authenticated hub.
Successful operation
Not Found
{- "success": true,
- "hash": "6922bb1a2d2826576e27080ac5d0d3f2279e38b6",
- "data": [
- {
- "hash": "dafacab9876f52c08e209859ac64b159d9b907c7",
- "umask": 1,
- "created_time": "2022-08-31T16:00:52.000000Z",
- "modified_time": "2022-08-31T16:00:52.000000Z",
- "modified_user_time": "2022-08-31T16:00:52.000000Z",
- "model": "GroupProgramPermission",
- "group": {
- "id": 3,
- "hash": "4caac5ba4d188182c58634f617317612bcedbeb1",
- "name": "Former employees",
- "status": 1,
- "created_time": "2022-07-04T13:40:49.000000Z",
- "modified_time": "2022-08-31T14:15:30.000000Z",
- "modified_user_time": "2022-08-31T14:15:30.000000Z",
- "model": "Group"
}, - "program": {
- "id": 15,
- "hash": "5319a62f26b5efb629f5b12457398c194b79d26f",
- "name": "Relegation 2022/23",
- "description": "",
- "targets": "",
- "assumptions": "",
- "miscellaneous": "",
- "paused": false,
- "locked": false,
- "guarded": false,
- "created_time": "2022-07-05T10:44:51.000000Z",
- "modified_time": "2022-08-22T10:09:18.000000Z",
- "modified_user_time": "2022-08-08T14:31:27.000000Z",
- "model": "Program"
}, - "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": "7a480ef6d1b4c4abf24835061905e3aae6db895a",
- "umask": 3,
- "created_time": "2022-08-31T15:54:18.000000Z",
- "modified_time": "2022-08-31T15:54:18.000000Z",
- "modified_user_time": "2022-08-31T15:54:18.000000Z",
- "model": "GroupProgramPermission",
- "group": {
- "id": 8,
- "hash": "ea3987507e605b4ea9275bb34c1a642a257c71fa",
- "name": "Admin group",
- "status": 1,
- "created_time": "2022-08-25T10:17:51.000000Z",
- "modified_time": "2022-08-25T11:51:38.000000Z",
- "modified_user_time": "2022-08-25T11:51:38.000000Z",
- "model": "Group"
}, - "program": {
- "id": 1,
- "hash": "1650600bd010a50897b50572382460965fed588a",
- "name": "Airborne",
- "description": "",
- "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": "Program"
}, - "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": 1661961656255
}
Get a group program permission.
Successful operation
Not Found
{- "success": true,
- "hash": "94a20cfc9592b6e63f1ec1cf36f3932fac5180dc",
- "data": {
- "hash": "7a480ef6d1b4c4abf24835061905e3aae6db895a",
- "umask": 3,
- "created_time": "2022-08-31T15:54:18.000000Z",
- "modified_time": "2022-08-31T15:54:18.000000Z",
- "modified_user_time": "2022-08-31T15:54:18.000000Z",
- "model": "GroupProgramPermission",
- "group": {
- "id": 8,
- "hash": "ea3987507e605b4ea9275bb34c1a642a257c71fa",
- "name": "Admin group",
- "status": 1,
- "created_time": "2022-08-25T10:17:51.000000Z",
- "modified_time": "2022-08-25T11:51:38.000000Z",
- "modified_user_time": "2022-08-25T11:51:38.000000Z",
- "model": "Group"
}, - "program": {
- "id": 1,
- "hash": "1650600bd010a50897b50572382460965fed588a",
- "name": "Airborne",
- "description": "",
- "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": "Program"
}, - "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": 1661962042591
}
Update a group program permission.
Successful operation
Not Found
Unprocessable Content
{- "umask": 0
}
{- "success": true,
- "hash": "138d889f08e33b83c9be88ed28eabc908bb24235",
- "data": {
- "hash": "7a480ef6d1b4c4abf24835061905e3aae6db895a",
- "umask": 0,
- "created_time": "2022-08-31T15:54:18.000000Z",
- "modified_time": "2022-08-31T16:10:51.000000Z",
- "modified_user_time": "2022-08-31T16:10:51.000000Z",
- "model": "GroupProgramPermission",
- "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": 1661962251718
}
Delete a group program permission.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1661962418878
}