Create a new group project permission for a group and a project.
If the group project permission for the project and group already exists, it will be updated if necessary.
A JSON object containing group project permission information.
Successful operation
Successful operation
Unprocessable Content
{- "group": 3,
- "project": 1,
- "umask": 2
}
{- "success": true,
- "hash": "a111cd3cf12f412466e80439e510efe66b56f9d5",
- "data": {
- "hash": "876b43308cc434d5f5c43399039356db01179acc",
- "umask": 2,
- "created_time": "2022-08-31T15:04:08.000000Z",
- "modified_time": "2022-08-31T15:04:08.000000Z",
- "modified_user_time": "2022-08-31T15:04:08.000000Z",
- "model": "GroupProjectPermission",
- "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"
}, - "project": {
- "id": 1,
- "hash": "583bf59445f18e7bf566020aa8134ddfa7c79113",
- "name": "Phoenix",
- "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-07-28T10:46:44.000000Z",
- "model": "Project"
}, - "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": 1661958248391
}
Get all group project permissions of the authenticated hub.
Successful operation
Unprocessable Content
{- "success": true,
- "hash": "0c953279370e087d8f7a60e17df33635b81e3361",
- "data": [
- {
- "hash": "876b43308cc434d5f5c43399039356db01179acc",
- "umask": 2,
- "created_time": "2022-08-31T15:04:08.000000Z",
- "modified_time": "2022-08-31T15:04:08.000000Z",
- "modified_user_time": "2022-08-31T15:04:08.000000Z",
- "model": "GroupProjectPermission",
- "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"
}, - "project": {
- "id": 1,
- "hash": "583bf59445f18e7bf566020aa8134ddfa7c79113",
- "name": "Phoenix",
- "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-07-28T10:46:44.000000Z",
- "model": "Project"
}, - "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": 1,
- "total": 1,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1661958498705
}
Get a group project permission.
Successful operation
Not Found
{- "success": true,
- "hash": "a111cd3cf12f412466e80439e510efe66b56f9d5",
- "data": {
- "hash": "876b43308cc434d5f5c43399039356db01179acc",
- "umask": 2,
- "created_time": "2022-08-31T15:04:08.000000Z",
- "modified_time": "2022-08-31T15:04:08.000000Z",
- "modified_user_time": "2022-08-31T15:04:08.000000Z",
- "model": "GroupProjectPermission",
- "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"
}, - "project": {
- "id": 1,
- "hash": "583bf59445f18e7bf566020aa8134ddfa7c79113",
- "name": "Phoenix",
- "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-07-28T10:46:44.000000Z",
- "model": "Project"
}, - "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": 1661960321141
}
Update a group project permission.
Successful operation
Not Found
Unprocessable Content
{- "umask": 0
}
{- "success": true,
- "hash": "2fb92ae31308afbba3bd94ab2ce35f7c61b10d4f",
- "data": {
- "hash": "876b43308cc434d5f5c43399039356db01179acc",
- "umask": 0,
- "created_time": "2022-08-31T15:04:08.000000Z",
- "modified_time": "2022-08-31T15:43:12.000000Z",
- "modified_user_time": "2022-08-31T15:43:12.000000Z",
- "model": "GroupProjectPermission",
- "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": 1661960592965
}
Delete a group project permission.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1661960750863
}