User project permission

The user project permission.

Create a user project permission

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

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

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing user project permission information.

user
required
string or integer

The user of the user project permission.

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

project
required
string or integer

The project of the user project permission.

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

umask
required
integer

The permission level of the user project 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/userprojectpermission
Request samples
application/json
{
  • "user": 4,
  • "project": 1,
  • "umask": 2
}
Response samples
application/json
{
  • "success": true,
  • "hash": "f273cad070a6b8e9edbb7ce6407e4c5a795ed925",
  • "data": {
    },
  • "timestamp": 1681291648980
}

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.

page
integer
Default: 1

The page number of the response.

Responses
200

Successful operation

422

Unprocessable Content

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