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.

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

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing user measure package permission information.

user
required
string or integer

The user of the user measure package permission.

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

measure_package
required
string or integer

The measure package of the user measure package permission.

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

umask
required
integer

The permission level of the user measure package 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/usermeasurepackagepermission
Request samples
application/json
{
  • "user": 6,
  • "measure_package": 3,
  • "umask": 2
}
Response samples
application/json
{
  • "success": true,
  • "hash": "93bbc1cf64af64006c513b56b26344be5c163b64",
  • "data": {
    },
  • "timestamp": 1681292387645
}

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.

page
integer
Default: 1

The page number of the response.

Responses
200

Successful operation

422

Unprocessable Content

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