Group program permission

The group program permission.

Create a group program permission

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.

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing group program permission information.

group
required
string or integer

The group of the group program permission.

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

program
required
string or integer

The program of the group program permission.

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

umask
required
integer

The permission level of the group program permission.

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

Successful operation

201

Successful operation

422

Unprocessable Content

post/groupprogrampermission
Request samples
application/json
{
  • "group": 8,
  • "program": 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.

page
integer
Default: 1

The page number of the response.

Responses
200

Successful operation

404

Not Found

get/groupprogrampermission
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "6922bb1a2d2826576e27080ac5d0d3f2279e38b6",
  • "data": [
    ],
  • "meta": {
    },
  • "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
}