User measure permission

The user measure permission.

Create a user measure permission

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

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

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing user measure permission information.

user
required
string or integer

The user of the user measure permission.

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

measure
required
string or integer

The measure of the user measure permission.

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

umask
required
integer

The permission level of the user measure 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/usermeasurepermission
Request samples
application/json
{
  • "user": 2,
  • "measure": 3,
  • "umask": 1
}
Response samples
application/json
{
  • "success": true,
  • "hash": "4fef52b4aa46666b18870f3ce0b506405b3ea212",
  • "data": {
    },
  • "timestamp": 1681292803660
}

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.

page
integer
Default: 1

The page number of the response.

Responses
200

Successful operation

422

Unprocessable Content

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