Categories

Create a Category

This endpoint allows you to create a Category.

post/categories

Request

  • Base URL: https://api.infraspeak.com/v3
  • URL: https://api.infraspeak.com/v3/categories
  • Auth: HTTP bearer

Request body

type'TYPE_OF_EQUIPMENT' | 'SOFT_MAINTENANCE' required

The Category type. A "TYPE_OF_EQUIPMENT" Category is directly related to equipments (e.g. a fridge) and a Category "SOFT_MAINTENANCE" is related to Locations (E.g. hotel rooms).

codestring required

Category code. Must be unique across the same "level".

is_realboolean required

Whether the Category is "folder-like" (false) or a final category (true). Required if type is "TYPE_OF_EQUIPMENT".

namestring required

Category name. Must be unique across the same "level".

parent_idunknown

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.