View states
Save
Creates or overwrites the view state with the given name inside the entity's scope, matching the name case-insensitively; the stored state is replaced in full rather than merged, and name, field settings, sort, pagination, kanban and view type must all be present or the call fails.
The submitted field list is reconciled against the fields the server actually knows about (unknown ones dropped, missing ones added with defaults), and a sort or kanban key that no longer exists is silently rewritten rather than reported.
PUT
/api/{tenant:minlength(2)}/v{version:apiVersion}/view_states/save
- Authorisation
- Minimum role: USER
Request arguments
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_field_info
DTO_view_state_field_filter
| Name | Type | ReadOnly | Description |
| allow | Boolean | | Allow |
| type | ENUM filter_type | | Type |
| usage_count | Int32 | | Usage count |
DTO_view_state_field_group
| Name | Type | ReadOnly | Description |
| allow | Boolean | | Allow |
DTO_view_state_field_batch
| Name | Type | ReadOnly | Description |
| allow | Boolean | | Allow |
DTO_view_state_field_sort
| Name | Type | ReadOnly | Description |
| allow | Boolean | | Allow |
DTO_view_state_field_setting
DTO_view_state_field_column
| Name | Type | ReadOnly | Description |
| width | Int32 | | Width |
| visible | Boolean | | Visible |
| order | Int32 | | Order |
DTO_view_state_field_row
| Name | Type | ReadOnly | Description |
| upper_order | Int32 | | Upper order |
| lower_order | Int32 | | Lower order |
DTO_view_state_field_kanban
| Name | Type | ReadOnly | Description |
| card_position | Int32 | | Card position |
| hover_order | Int32 | | Hover order |
DTO_view_state_field_setting_filter
| Name | Type | ReadOnly | Description |
| visible | Boolean | | Visible |
DTO_view_state_sort
| Name | Type | ReadOnly | Description |
| field_key | String | | Field key |
| order | ENUM sort_order | | Order |
| Name | Type | ReadOnly | Description |
| take | Int32 | | Take |
DTO_view_state_kanban
| Name | Type | ReadOnly | Description |
| swimlane_key | String | | Swimlane key |
| swimlane_order | String[] | | Swimlane order |
| column_key | String | | Column key |
| column_order | String[] | | Column order |
ENUM field_data_type
| Value | Name | Description |
| 0 | UNKNOWN | UNKNOWN |
| 1 | STRING | Text |
| 2 | MULTI_LINE_STRING | Text (multi-line) |
| 3 | DATE_TIME | Date and time |
| 4 | DATE_NO_TIME | Date |
| 5 | DOUBLE | Number (decimal) |
| 6 | INT | Number (int) |
| 7 | LONG | Number (long) |
| 8 | BOOL | On / Off |
| 9 | EMAIL | Text (email) |
| 10 | PHONE | Text (phone) |
| 11 | PICK_ONE | Pick one |
| 12 | PICK_MANY | Pick many |
| 13 | IMAGE | Image |
| 14 | RICH_TEXT | Text (rich editor) |
| 15 | FILES | Files |
| 16 | COLOR | Color |
| -1 | INTERNAL_ENUM | INTERNAL_ENUM |
ENUM filter_type
| Value | Name | Description |
| 0 | UNKNOWN | UNKNOWN |
| 1 | DEFAULT | Default |
| 2 | RANGE | Range |
ENUM sort_order
| Value | Name | Description |
| 0 | ASC | ASC |
| 1 | DESC | DESC |
ENUM view_type
| Value | Name | Description |
| 0 | UNKNOWN | UNKNOWN |
| 1 | LIST | List |
| 2 | KANBAN | Kanban |
Generated Aug 4, 2026 18:37