IncidentsCreate or change a view

Create or change a view

Needs: Incidents, Read-write

Creates a saved incident view shared with the whole organisation. Send an id in the body to change an existing view instead; unspecified parts of that view are kept. A name that is already in use is refused.

Note: When you change a view with its id, the response has updated in place of created.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/incident-views" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "Open high priority",
  "mode": "kanban",
  "group_by": "status",
  "filters": [
    {
      "field": "priority",
      "operator": "is",
      "value": "High"
    }
  ]
}'
{
  "created": "5b1d7c3e-2f4a-4c6b-9d8e-1a2b3c4d5e6f",
  "name": "Open high priority"
}
POST
/incident-views
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Content-Typestring
Required

The media type of the request body

Options: application/json
idstring

An existing view id. Leave out to create a view.

namestring

The view name.

iconstring

One emoji. Empty for the default icon.

modestring

all (table) or kanban.

group_bystring

Kanban columns: status, priority, severity, category, assignedTo or reportedBy.

filtersarray

Replaces the filters. Each has field, operator, value and an optional combinator (and or or). Fields: incident_id, title, description, status, priority, severity, category, assignedTo, timeReported, timeInStatus, isConvertedFromCaution, date_reported_on_or_after, date_reported_on_or_before, or custom: plus an attribute key. Operators: contains, does_not_contain, starts_with, ends_with, is, is_not, empty or not_empty. For the date fields use operator is with a YYYY-MM-DD value.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Body

application/json
idstring

An existing view id. Leave out to create a view.

namestring

The view name.

iconstring

One emoji. Empty for the default icon.

modestring

all (table) or kanban.

group_bystring

Kanban columns: status, priority, severity, category, assignedTo or reportedBy.

filtersarray

Replaces the filters. Each has field, operator, value and an optional combinator (and or or). Fields: incident_id, title, description, status, priority, severity, category, assignedTo, timeReported, timeInStatus, isConvertedFromCaution, date_reported_on_or_after, date_reported_on_or_before, or custom: plus an attribute key. Operators: contains, does_not_contain, starts_with, ends_with, is, is_not, empty or not_empty. For the date fields use operator is with a YYYY-MM-DD value.

Responses