Skip to content

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"
}

Try it out

Loading...

Output:

Responses

Description

Account type created successfully

{
"id": 0,
"name": "string",
"accountTypeTemplate": false
}

References

#/components/schemas/CreateAccountTypeInput

type: object
properties:
name:
type: string
required:
- name

#/components/schemas/AccountType

type: object
properties:
id:
type: integer
name:
type: string
accountTypeTemplate:
type: boolean
required:
- id
- name

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