Avoid modifying the status types, either individually or collectively. The reason is that the Seiso UI formats the display based on the specific status type keys listed below.

If for example you were to change the success key to ok, the UI would not properly color-code success statuses.

GET /v1/status-types

Response

HTTP/1.1 200 OK
[ {
  "_self" : "https://seiso.example.com/v1/status-types/default",
  "key" : "default",
  "name" : "Default"
}, {
  "_self" : "https://seiso.example.com/v1/status-types/primary",
  "key" : "primary",
  "name" : "Primary"
}, {
  "_self" : "https://seiso.example.com/v1/status-types/success",
  "key" : "success",
  "name" : "Success"
}, {
  "_self" : "https://seiso.example.com/v1/status-types/info",
  "key" : "info",
  "name" : "Info"
}, {
  "_self" : "https://seiso.example.com/v1/status-types/warning",
  "key" : "warning",
  "name" : "Warning"
}, {
  "_self" : "https://seiso.example.com/v1/status-types/danger",
  "key" : "danger",
  "name" : "Danger"
} ]

GET /v1/status-types/:key

Response

HTTP/1.1 200 OK
{
  "_self" : "https://seiso.example.com/v1/status-types/danger",
  "key" : "danger",
  "name" : "Danger"
}

PUT /v1/status-types/:key

Request

{
  "key" : "danger",
  "name" : "Danger"
}

Response

For creates:

HTTP/1.1 201 Created

For updates:

HTTP/1.1 204 No Content

DELETE /v1/status-types/:key

Response

HTTP/1.1 204 No Content