Create a custom view
Saves a new column layout for one list screen. The key is generated from the name, and a name that produces a key the company already uses is rejected. Requires the settings:write permission.
Authorization
AuthorizationstringrequiredPath parameters
typeenum<string>requiredWhich list screen the view belongs to. Matched case-insensitively, and echoed back in viewType exactly as spelled here.
Body
application/json
namestringrequiredWhat to call the view. Between 3 and 50 characters, and it cannot be Default in any casing — that name is reserved for the built-in view. The key is regenerated from this name.
favoritebooleanMake this the view the screen opens with. Setting it clears the flag on every other view of the same type.
descriptionstringFree text about the view.
columnsobject[]requiredThe columns the view shows. May be empty. When it is not empty every entry must have selected set to true and a displayOrder, and those orders must be the whole numbers 1 to N with no gaps and no repeats.
Response
200 · The saved view, with the key that was generated for it.
idstringrequiredThe view's Snowflake id, as a decimal string. The built-in default view returns the literal string default instead.
keystringrequiredThe view's key, derived from its name and used to address it in the other endpoints.
namestringrequiredWhat the view is called on screen.
viewTypeenum<string>requiredThe list screen this view belongs to, capitalised.
favoritebooleanrequiredWhether this is the view the screen opens with. At most one view per type can be the favorite.
descriptionstringFree text the property manager wrote about the view. Absent when none was given.
columnsobject[]requiredThe view's columns.