POST /account-types
Create a new account type
Creates a new account type. Restricted to SuperAdmin role.
Authentication Required
Authorization: Bearer {token}
header string This header is required to access this endpoint
Request Body
{ "name": "string"}{ "name": "string"}Try it out
Loading...
Output:
Responses
Description
Account type created successfully
{ "id": 0, "name": "string", "accountTypeTemplate": false}Description
Unauthorized - User not authenticated
Description
Forbidden - User does not have the required permissions
Description
Internal server error
References
#/components/schemas/CreateAccountTypeInput
type: objectproperties: name: type: stringrequired: - name|export interface CreateAccountTypeInput { name: string;}#/components/schemas/AccountType
type: objectproperties: id: type: integer name: type: string accountTypeTemplate: type: booleanrequired: - id - name|export interface AccountType { id: number; name: string; accountTypeTemplate?: boolean;}Route Source Code
Check out the source code for this route entrypoint here: /account-types/route.ts
Or the swagger.yaml spec this documentation was generated from:
/account-types/swagger.yaml