User program permission

The user program permission.

Create a user program permission

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

If the user program permission for the program and the user already exists, it will be updated if necessary.

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing user program permission information.

user
required
string or integer

The user of the user program permission.

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

program
required
string or integer

The program of the user program permission.

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

umask
required
integer

The permission level of the user 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/userprogrampermission
Request samples
application/json
{
  • "user": 2,
  • "program": 1,
  • "umask": 3
}
Response samples
application/json
{
  • "success": true,
  • "hash": "c1a2e103309a94c4dd416c93eeb9ddf5c8159d1c",
  • "data": {
    },
  • "timestamp": 1681290391422
}

Get all user program permissions

Get all user program permissions of the authenticated hub.

SecurityJWT
Request
query Parameters
program
string or integer

Filter the user program permission list for a program.

page
integer
Default: 1

The page number of the response.

Responses
200

Successful operation

get/userprogrampermission
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "93b46704a379a78beb870a8cc065111ba0dec2d8",
  • "data": [
    ],
  • "meta": {
    },
  • "timestamp": 1661943619024
}

Get a user program permission

Get a user program permission.

SecurityJWT
Request
path Parameters
userprogrampermission
required
string

The hash of the user program permission.

Responses
200

Successful operation

404

Not Found

get/userprogrampermission/{userprogrampermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "0f46af90f62a62a4ad4d200323285cadf10ad05a",
  • "data": {
    },
  • "timestamp": 1661944594652
}

Update a user program permission

Update a user program permission.

SecurityJWT
Request
path Parameters
userprogrampermission
required
string

The hash of the user program permission.

Request Body schema: application/json

A JSON object containing user program permission information

umask
integer

The user 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/userprogrampermission/{userprogrampermission}
Request samples
application/json
{
  • "umask": 0
}
Response samples
application/json
{
  • "success": true,
  • "hash": "5f8fad644fefebde571df8c7e145d3e53affe9d7",
  • "data": {
    },
  • "timestamp": 1661944751534
}

Delete a user program permission

Delete a user program permission.

SecurityJWT
Request
path Parameters
userprogrampermission
required
string

The hash of the user program permission.

Responses
200

Successful operation

404

Not Found

delete/userprogrampermission/{userprogrampermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
  • "data": { },
  • "timestamp": 1661945038165
}