createStatus

Create a status

Format

udclient [global-args...] [global-flags...]
  createStatus [parameters]

Parameters

Table 1. Request parameters
Parameter Type Required Description
type string true Type of status (inventory, version, or snapshot)
status string true Name of the new status
color string false Color of the new status (HTML color strings or valid color names) (Optional)
description string false Description of the new status (Optional)
unique string false Specify true to make this status unique (Optional)

Example

udclient -username admin -password admin 
  -weburl https://myserver.example.com:8443
  createStatus
  -type version
  -status Documented
  -color "#0077FF"

Example response

{
  "id": "abff7bb6-bf95-417e-bf00-b0a8678e832a",
  "type": "VERSION",
  "name": "Documented",
  "active": true,
  "color": "#0077FF",
  "unique": false
}

Related REST command: Create a status.


Feedback