User project permission

The user project permission.

Create a user project permission

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

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing user project permission information.

user_id
required
integer >= 1

The user of the new user project permission.

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

project_id
required
integer >= 1

The project of the new user project permission.

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

umask
required
integer

The permission level of the new user project permission.

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

Successful operation

422

Unprocessable Content

post/userprojectpermission
Request samples
application/json
{
  • "user_id": 4,
  • "project_id": 1,
  • "umask": 2
}
Response samples
application/json
{
  • "success": true,
  • "hash": "cb7e9c89fc74f6c34734e173c3e5d0ba22f14163",
  • "data": {
    },
  • "timestamp": 1661939422229
}

Get all user project permissions

Get all user project permissions of the authenticated hub.

SecurityJWT
Request
query Parameters
project
string or integer

Filter the user project permission list for a project.

program
string or integer

Filter the user project permission list for a program.

Responses
200

Successful operation

422

Unprocessable Content

get/userprojectpermission
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "f7db7d3a0a3fd42ec0bba2c2905925e116ee9a7c",
  • "data": [
    ],
  • "timestamp": 1661941089888
}

Get a user project permission

Get a user project permission.

SecurityJWT
Request
path Parameters
userprojectpermission
required
string

The hash of the user project permission.

Responses
200

Successful operation

404

Not Found

get/userprojectpermission/{userprojectpermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "cb7e9c89fc74f6c34734e173c3e5d0ba22f14163",
  • "data": {
    },
  • "timestamp": 1661941462784
}

Update a user project permission

Update a user project permission.

SecurityJWT
Request
path Parameters
userprojectpermission
required
string

The hash of the user project permission.

Request Body schema: application/json

A JSON object containing user project permission information

umask
integer

The user project 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/userprojectpermission/{userprojectpermission}
Request samples
application/json
{
  • "umask": 0
}
Response samples
application/json
{
  • "success": true,
  • "hash": "cedc8371f9551d9ac90d901e2cc73d8658d70ac5",
  • "data": {
    },
  • "timestamp": 1661941918533
}

Delete a user project permission

Delete a user project permission.

SecurityJWT
Request
path Parameters
userprojectpermission
required
string

The hash of the user project permission.

Responses
200

Successful operation

404

Not Found

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