User measure package permission

The user measure package permission.

Create a user measure package permission

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

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing user measure package permission information.

user_id
required
integer >= 1

The user of the new user measure package permission.

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

measure_package_id
required
integer >= 1

The measure package of the new user 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 user measure package permission.

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

Successful operation

422

Unprocessable Content

post/usermeasurepackagepermission
Request samples
application/json
{
  • "user_id": 6,
  • "measure_package_id": 3,
  • "umask": 2
}
Response samples
application/json
{
  • "success": true,
  • "hash": "e2827b27f0f2cbd851b969e0aa1ddaa310d97eed",
  • "data": {
    },
  • "timestamp": 1661933681602
}

Get all user measure package permissions

Get all user measure package permissions of the authenticated hub.

SecurityJWT
Request
query Parameters
measure_package
string or integer

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

project
string or integer

Filter the user measure package permission list for a project.

program
string or integer

Filter the user measure package permission list for a program.

Responses
200

Successful operation

422

Unprocessable Content

get/usermeasurepackagepermission
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "f5f28431fc2e91facc0972270ff4c0f469ab1995",
  • "data": [
    ],
  • "timestamp": 1661935724423
}

Get a user measure package permission

Get a user measure package permission.

SecurityJWT
Request
path Parameters
usermeasurepackagepermission
required
string

The hash of the user measure package permission.

Responses
200

Successful operation

404

Not Found

get/usermeasurepackagepermission/{usermeasurepackagepermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "e2827b27f0f2cbd851b969e0aa1ddaa310d97eed",
  • "data": {
    },
  • "timestamp": 1661936632013
}

Update a user measure package permission

Update a user measure package permission.

SecurityJWT
Request
path Parameters
usermeasurepackagepermission
required
string

The hash of the user measure package permission.

Request Body schema: application/json

A JSON object containing user measure package permission information

umask
integer

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

Delete a user measure package permission

Delete a user measure package permission.

SecurityJWT
Request
path Parameters
usermeasurepackagepermission
required
string

The hash of the user measure package permission.

Responses
200

Successful operation

404

Not Found

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