Group measure package permission

The group measure package permission.

Create a group measure package permission

Create a new group measure package permission for a group and a measure package.

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing group measure package permission information.

group_id
required
integer >= 1

The group of the new group measure package permission.

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

measure_package_id
required
integer >= 1

The measure package of the new group measure package permission.

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

umask
required
integer

The permission level of the new group measure package permission.

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

Successful operation

422

Unprocessable Content

post/groupmeasurepackagepermission
Request samples
application/json
{
  • "group_id": 8,
  • "measure_package_id": 3,
  • "umask": 2
}
Response samples
application/json
{
  • "success": true,
  • "hash": "6a2a28f718f2d4e68c51aef5f8189f4086f38f93",
  • "data": {
    },
  • "timestamp": 1661954778521
}

Get all group measure package permissions

Get all group measure package permissions of the authenticated hub.

SecurityJWT
Request
query Parameters
measure_package
string or integer

Filter the group measure package permission list for a measure package.

project
string or integer

Filter the group measure package permission list for a project.

program
string or integer

Filter the group measure package permission list for a program.

Responses
200

Successful operation

422

Unprocessable Content

get/groupmeasurepackagepermission
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "7efca8a3b5c868c1cf492537361c36aa201805ad",
  • "data": [
    ],
  • "timestamp": 1661955223644
}

Get a group measure package permission

Get a group measure package permission.

SecurityJWT
Request
path Parameters
groupmeasurepackagepermission
required
string

The hash of the group measure package permission.

Responses
200

Successful operation

404

Not Found

get/groupmeasurepackagepermission/{groupmeasurepackagepermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "6a2a28f718f2d4e68c51aef5f8189f4086f38f93",
  • "data": {
    },
  • "timestamp": 1661957305144
}

Update a group measure package permission

Update a group measure package permission.

SecurityJWT
Request
path Parameters
groupmeasurepackagepermission
required
string

The hash of the group measure package permission.

Request Body schema: application/json

A JSON object containing group measure package permission information

umask
integer

The group measure package 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/groupmeasurepackagepermission/{groupmeasurepackagepermission}
Request samples
application/json
{
  • "umask": 0
}
Response samples
application/json
{
  • "success": true,
  • "hash": "fc175b205ee68278b0ab81b022eb9cb24c584dc2",
  • "data": {
    },
  • "timestamp": 1661957527603
}

Delete a group measure package permission

Delete a group measure package permission.

SecurityJWT
Request
path Parameters
groupmeasurepackagepermission
required
string

The hash of the group measure package permission.

Responses
200

Successful operation

404

Not Found

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