User hub permission

The user hub permission.

Get all user hub permissions

Get all user hub permissions of the authenticated hub.

SecurityJWT
Responses
200

Successful operation

401

Unauthorized

get/userhubpermission
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "2bdfd25d636c844332bab8117b1cb191f1ec7c83",
  • "data": [
    ],
  • "timestamp": 1661356191055
}

Get a user hub permission

Get a user hub permission.

SecurityJWT
Request
path Parameters
userhubpermission
required
string

The hash of the user hub permission.

Responses
200

Successful operation

404

Not Found

get/userhubpermission/{userhubpermission}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "20bb244e10c41a38bab9aec28126f4491f00d42e",
  • "data": {
    },
  • "timestamp": 1661357400852
}

Update a user hub permission

Update a user hub permission.

SecurityJWT
Request
path Parameters
userhubpermission
required
string

The hash of the user hub permission.

Request Body schema: application/json

A JSON object containing user hub permission information

umask
integer

The user hub permission umask.

  • 0 - None
  • 1 - Read
  • 4 - Owner
Enum: 0 1 4
Responses
200

Successful operation

404

Not Found

422

Unprocessable Content

put/userhubpermission/{userhubpermission}
Request samples
application/json
{
  • "umask": 1
}
Response samples
application/json
{
  • "success": true,
  • "hash": "112ce67301a71532e4b74b07690bf65fecd911d5",
  • "data": {
    },
  • "timestamp": 1661414187274
}

Delete a user hub permission

Delete a user hub permission.

SecurityJWT
Request
path Parameters
userhubpermission
required
string

The hash of the user hub permission.

Request Body schema: application/json

A JSON object containing user hub permission information

user_hash
required
string

The new responsible user.

This user will be used in all tree items as well as in all activities where the deleted user was the responsible user.

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

finished
boolean
Default: false

Include all finished activities.

Responses
200

Successful operation

404

Not Found

422

Unprocessable Content

delete/userhubpermission/{userhubpermission}
Request samples
application/json
{
  • "user_hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
  • "finished": false
}
Response samples
application/json
{
  • "success": true,
  • "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
  • "data": [ ],
  • "timestamp": 1661420192006
}