Group project permission

The group project permission.

Create a group project permission

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

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

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing group project permission information.

group
required
string or integer

The group of the group project permission.

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

project
required
string or integer

The project of the group project permission.

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

umask
required
integer

The permission level of the group 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/groupprojectpermission
Request samples
application/json
{
  • "group": 3,
  • "project": 1,
  • "umask": 2
}
Response samples
application/json
{
  • "success": true,
  • "hash": "a111cd3cf12f412466e80439e510efe66b56f9d5",
  • "data": {
    },
  • "timestamp": 1661958248391
}

Get all group project permissions

Get all group project permissions of the authenticated hub.

SecurityJWT
Request
query Parameters
project
string or integer

Filter the group project permission list for a project.

program
string or integer

Filter the group project permission list for a program.

page
integer
Default: 1

The page number of the response.

Responses
200

Successful operation

422

Unprocessable Content

get/groupprojectpermission
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "0c953279370e087d8f7a60e17df33635b81e3361",
  • "data": [
    ],
  • "meta": {
    },
  • "timestamp": 1661958498705
}

Get a group project permission

Get a group project permission.

SecurityJWT
Request
path Parameters
groupprojectpermission
required
string

The hash of the group project permission.

Responses
200

Successful operation

404

Not Found

get/groupprojectpermission/{groupprojectpermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "a111cd3cf12f412466e80439e510efe66b56f9d5",
  • "data": {
    },
  • "timestamp": 1661960321141
}

Update a group project permission

Update a group project permission.

SecurityJWT
Request
path Parameters
groupprojectpermission
required
string

The hash of the group project permission.

Request Body schema: application/json

A JSON object containing group project permission information

umask
integer

The group 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/groupprojectpermission/{groupprojectpermission}
Request samples
application/json
{
  • "umask": 0
}
Response samples
application/json
{
  • "success": true,
  • "hash": "2fb92ae31308afbba3bd94ab2ce35f7c61b10d4f",
  • "data": {
    },
  • "timestamp": 1661960592965
}

Delete a group project permission

Delete a group project permission.

SecurityJWT
Request
path Parameters
groupprojectpermission
required
string

The hash of the group project permission.

Responses
200

Successful operation

404

Not Found

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