mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2025-12-09 06:13:10 +00:00
38 lines
916 B
YAML
38 lines
916 B
YAML
tags:
|
|
- Account Users
|
|
operationId: create-an-account-user
|
|
summary: Create an Account User
|
|
description: Create an Account User
|
|
security:
|
|
- platformAppApiKey: []
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/account_user_create_update_payload'
|
|
responses:
|
|
'200':
|
|
description: Success
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
account_id:
|
|
type: integer
|
|
description: The ID of the account
|
|
user_id:
|
|
type: integer
|
|
description: The ID of the user
|
|
role:
|
|
type: string
|
|
description: whether user is an administrator or agent
|
|
|
|
'401':
|
|
description: Unauthorized
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/bad_request_error'
|