User measure permission

The user measure permission.

Create a user measure permission

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

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing user measure permission information.

user_id
required
integer >= 1

The user of the new user measure permission.

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

measure_id
required
integer >= 1

The measure of the new user measure permission.

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

umask
required
integer

The permission level of the new user measure permission.

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

Successful operation

422

Unprocessable Content

post/usermeasurepermission
Request samples
application/json
{
  • "user_id": 2,
  • "measure_id": 3,
  • "umask": 1
}
Response samples
application/json
{
  • "success": true,
  • "hash": "7f3358a31595632c27b875177c212e91bef57302",
  • "data": {
    },
  • "timestamp": 1661871321550
}

Get all user measure permissions

Get all user measure permissions of the authenticated hub.

SecurityJWT
Request
query Parameters
measure
string or integer

Filter the user measure permission list for a measure.

measure_package
string or integer

Filter the user measure permission list for a measure package.

project
string or integer

Filter the user measure permission list for a project.

program
string or integer

Filter the user measure permission list for a program.

Responses
200

Successful operation

422

Unprocessable Content

get/usermeasurepermission
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "9308116e670e61d1ce4c5965cce7cad011f60e79",
  • "data": [
    ],
  • "timestamp": 1661872354974
}

Get a user measure permission

Get a user measure permission.

SecurityJWT
Request
path Parameters
usermeasurepermission
required
string

The hash of the user measure permission.

Responses
200

Successful operation

404

Not Found

get/usermeasurepermission/{usermeasurepermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "7f3358a31595632c27b875177c212e91bef57302",
  • "data": {
    },
  • "timestamp": 1661873315818
}

Update a user measure permission

Update a user measure permission.

SecurityJWT
Request
path Parameters
usermeasurepermission
required
string

The hash of the user measure permission.

Request Body schema: application/json

A JSON object containing user measure permission information

umask
integer

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

Delete a user measure permission

Delete a user measure permission.

SecurityJWT
Request
path Parameters
usermeasurepermission
required
string

The hash of the user measure permission.

Responses
200

Successful operation

404

Not Found

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