Files
api-specs/nerm/schemas/POST/Permission.yaml
2023-08-23 16:12:26 -04:00

25 lines
672 B
YAML

type: object
properties:
role_id:
type: string
format: uuid
description: The id of the role
example: ef5d413f-ba18-49e6-9a72-bb115aa133ff
subject_id:
type: string
format: uuid
example: db3d85ef-c324-458b-b206-58debaa96419
description: The ID of the object that the permission is giving access to
value:
type: integer
format: int32
enum: [1, 2, 3, 4, 5, 6, 7]
example: 1
description: The permissions level of access
subject:
type: integer
format: int32
enum: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]
example: 0
description: The type of permission