Deskhero Developer Hub
Back to deskhero.com
View states

List

Returns the saved view states (column layout, sort, page size, view type and kanban keys) for the given entity, each carrying a server-built catalogue of its fields that says which of them can be filtered, sorted, grouped and batch updated. The call persists as well as reads: a scope with no stored state gets the default created and saved, and stale states are rebuilt; ticket view states belong to the calling User while every other entity's is shared workspace-wide, so saving one there overwrites it for everyone.

GET /api/{tenant:minlength(2)}/v{version:apiVersion}/view_states
Authorisation
Minimum role: USER

Request arguments

Name Type Source
entityENUM entity
optional_idInt32
Request body example

Response

Status
200 (OK)
Type
DTO_view_state[]
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_view_state
NameTypeReadOnlyDescription
nameStringName of view
field_infosDTO_view_state_field_info[]Read only data
field_settingsDTO_view_state_field_setting[]Configurable data per field
sortDTO_view_state_sortSort
paginationDTO_view_state_paginationPagination
view_typeENUM view_typeView type
kanbanDTO_view_state_kanbanKanban
DTO_view_state_field_info
NameTypeReadOnlyDescription
field_keyStringField key
labelStringLabel
data_typeENUM field_data_typeData type
filterDTO_view_state_field_filterFilter
groupDTO_view_state_field_groupGroup
batch_updateDTO_view_state_field_batchBatch update
sortDTO_view_state_field_sortSort
DTO_view_state_field_filter
NameTypeReadOnlyDescription
allowBooleanAllow
typeENUM filter_typeType
usage_countInt32Usage count
DTO_view_state_field_group
NameTypeReadOnlyDescription
allowBooleanAllow
DTO_view_state_field_batch
NameTypeReadOnlyDescription
allowBooleanAllow
DTO_view_state_field_sort
NameTypeReadOnlyDescription
allowBooleanAllow
DTO_view_state_field_setting
NameTypeReadOnlyDescription
field_keyStringField key
columnDTO_view_state_field_columnColumn
rowDTO_view_state_field_rowRow
kanbanDTO_view_state_field_kanbanKanban
filterDTO_view_state_field_setting_filterOptional on save: an older client that doesn't know about filter visibility leaves it out, and the server then keeps it in step with the column instead of wiping it.
DTO_view_state_field_column
NameTypeReadOnlyDescription
widthInt32Width
visibleBooleanVisible
orderInt32Order
DTO_view_state_field_row
NameTypeReadOnlyDescription
upper_orderInt32Upper order
lower_orderInt32Lower order
DTO_view_state_field_kanban
NameTypeReadOnlyDescription
card_positionInt32Card position
hover_orderInt32Hover order
DTO_view_state_field_setting_filter
NameTypeReadOnlyDescription
visibleBooleanVisible
DTO_view_state_sort
NameTypeReadOnlyDescription
field_keyStringField key
orderENUM sort_orderOrder
DTO_view_state_pagination
NameTypeReadOnlyDescription
takeInt32Take
DTO_view_state_kanban
NameTypeReadOnlyDescription
swimlane_keyStringSwimlane key
swimlane_orderString[]Swimlane order
column_keyStringColumn key
column_orderString[]Column order
ENUM field_data_type
ValueNameDescription
0UNKNOWNUNKNOWN
1STRINGText
2MULTI_LINE_STRINGText (multi-line)
3DATE_TIMEDate and time
4DATE_NO_TIMEDate
5DOUBLENumber (decimal)
6INTNumber (int)
7LONGNumber (long)
8BOOLOn / Off
9EMAILText (email)
10PHONEText (phone)
11PICK_ONEPick one
12PICK_MANYPick many
13IMAGEImage
14RICH_TEXTText (rich editor)
15FILESFiles
16COLORColor
-1INTERNAL_ENUMINTERNAL_ENUM
ENUM filter_type
ValueNameDescription
0UNKNOWNUNKNOWN
1DEFAULTDefault
2RANGERange
ENUM sort_order
ValueNameDescription
0ASCASC
1DESCDESC
ENUM view_type
ValueNameDescription
0UNKNOWNUNKNOWN
1LISTList
2KANBANKanban

Generated Aug 4, 2026 18:37