43 lines
1.8 KiB
YAML
43 lines
1.8 KiB
YAML
description: User creation options
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
userId:
|
|
type: string
|
|
pattern: '^[a-z0-9_]+$'
|
|
example: 'alice_smith'
|
|
description: |
|
|
The unique identifier for the new user. This must be unique across all users.
|
|
|
|
Validation: Must contain only lowercase letters, numbers, and underscores.
|
|
name:
|
|
type: string
|
|
maxLength: 50
|
|
example: 'Alice Smith'
|
|
description: |
|
|
The display name (profile name) for the user.
|
|
role:
|
|
type: string
|
|
enum: ['admin', 'user', 'room_member']
|
|
example: 'user'
|
|
description: |
|
|
The role to assign to the user. Available roles:
|
|
- admin: Has full control over the entire application (configuration, users, rooms, recordings, etc).
|
|
- user: Can create and manage their own created rooms and associated recordings. Can also access rooms they are a member of, but without management permissions.
|
|
- room_member: Can only access rooms (and recordings) they are a member of, without ability to create or manage rooms.
|
|
password:
|
|
type: string
|
|
format: password
|
|
minLength: 5
|
|
example: 'SecureP@ssw0rd'
|
|
description: |
|
|
The password for the new user account.
|
|
required:
|
|
- userId
|
|
- name
|
|
- role
|
|
- password
|