Group program permission

The group program permission.

Create a group program permission

Create a new group program permission for a group and a program.

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing group program permission information.

group_id
required
integer >= 1

The group of the new group program permission.

Without a group id the request will always return a 403 Forbidden response.

program_id
required
integer >= 1

The program of the new group program permission.

Without a program id the request will always return a 403 Forbidden response.

umask
required
integer

The permission level of the new group program permission.

  • 0 - None
  • 1 - Read
  • 2 - Write
  • 3 - Admin
Enum: 0 1 2 3
Responses
201

Successful operation

422

Unprocessable Content

post/groupprogrampermission
Request samples
application/json
{
  • "group_id": 8,
  • "program_id": 1,
  • "umask": 3
}
Response samples
application/json
{
  • "success": true,
  • "hash": "94a20cfc9592b6e63f1ec1cf36f3932fac5180dc",
  • "data": {
    },
  • "timestamp": 1661961258629
}

Get all group program permissions

Get all group program permissions of the authenticated hub.

SecurityJWT
Request
query Parameters
program
string or integer

Filter the group program permission list for a program.

Responses
200

Successful operation

404

Not Found

get/groupprogrampermission
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "6922bb1a2d2826576e27080ac5d0d3f2279e38b6",
  • "data": [
    ],
  • "timestamp": 1661961656255
}

Get a group program permission

Get a group program permission.

SecurityJWT
Request
path Parameters
groupprogrampermission
required
string

The hash of the group program permission.

Responses
200

Successful operation

404

Not Found

get/groupprogrampermission/{groupprogrampermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "94a20cfc9592b6e63f1ec1cf36f3932fac5180dc",
  • "data": {
    },
  • "timestamp": 1661962042591
}

Update a group program permission

Update a group program permission.

SecurityJWT
Request
path Parameters
groupprogrampermission
required
string

The hash of the group program permission.

Request Body schema: application/json

A JSON object containing group program permission information

umask
integer

The group program permission umask.

  • 0 - None
  • 1 - Read
  • 2 - Write
  • 3 - Admin
Enum: 0 1 2 3
Responses
200

Successful operation

404

Not Found

422

Unprocessable Content

put/groupprogrampermission/{groupprogrampermission}
Request samples
application/json
{
  • "umask": 0
}
Response samples
application/json
{
  • "success": true,
  • "hash": "138d889f08e33b83c9be88ed28eabc908bb24235",
  • "data": {
    },
  • "timestamp": 1661962251718
}

Delete a group program permission

Delete a group program permission.

SecurityJWT
Request
path Parameters
groupprogrampermission
required
string

The hash of the group program permission.

Responses
200

Successful operation

404

Not Found

delete/groupprogrampermission/{groupprogrampermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
  • "data": [ ],
  • "timestamp": 1661962418878
}