Skip to content

Create a new business type

Request

Create a new business type

Security
authJWT
Bodyapplication/jsonrequired
namestringrequired

Business type name

descriptionstring

Business type description

codestring

Business type code

iconUrlstring

Business type icon url

curl -i -X POST \
  https://docs.pers.ninja/_mock/swagger/businesses/types \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "description": "string",
    "code": "string",
    "iconUrl": "string"
  }'

Responses

Business type created

Bodyapplication/json
idstring

Business type id

namestring or nullrequired

Business type name

descriptionstring or nullrequired

Business type description

codestring or nullrequired

Business type code

iconUrlstring or nullrequired

Business type icon url

Response
{ "id": "string", "name": "string", "description": "string", "code": "string", "iconUrl": "string" }