Create a Device Type Category
post
/api/device/Categories
Creates a new device type category.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
DeviceTypeCategoryName: string
The device type category name.Example:
Appliance
-
ImageName: string
The image name.Example:
fugue/drive-network.png
-
Source: string
Type of icon. Possible values: - Font Awesome Icon - Unified Assurance Icon - ImageExample:
Image
Response
Supported Media Types
- application/json
200 Response
Successful operation
Nested Schema : SuccessfulAddOperation
Type:
Show Source
object
-
message: string
The response message.Example:
Added record
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
true
Nested Schema : type
Type:
Show Source
object
-
data: array
data
The properties of the new device type category.
-
total: integer
The total number of results regardless of paging.Example:
1
Nested Schema : deviceCategoriesRead
Type:
Show Source
object
-
DeviceTypeCategoryID: integer
The device type category IDs specified for individual CRUD operations.Example:
13
-
DeviceTypeCategoryName: string
The device type category name.Example:
Appliance
-
ImageName: string
Icon name/ Fontawesome name/ Icon path nameExample:
fugue/drive-network.png
-
Source: string
Type of icon. Possible values: - Font Awesome Icon - Unified Assurance Icon - ImageExample:
Image
Default Response
Failed operation
Root Schema : schema
Type:
Show Source
object
-
errors: array
errors
The list of errors reported. Validation errors will be keyed by record field.
-
message: string
The response message.Example:
Exception thrown
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
false
Nested Schema : errors
Type:
array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type:
object