Update a saved view
Rename a saved view, replace its layout, or both. Send at least one of name and view_state.
view_state is a full replacement of all four of hidden_field_keys, field_order, sort, and filters. A field you leave out of the object is cleared, not kept, so read the view with GET /vaults/{id}/views first when you mean to change one part of it.
Column visibility is stored as a hide list. hidden_field_keys names the columns a view hides, so an empty list means the view shows every column the vault has. A column added to the vault later appears in the view until you hide it.
Every field key has to exist in the vault. Keys in hidden_field_keys and field_order can also name a system column (actions, fileName, relationships, extractedAt, sourceName). sort.field takes a vault column or one of fileName, extractedAt, sourceName, because those are the only system columns the table can sort by. A filter field_key takes a vault column or __notes__, the any-column notes filter. Anything else returns 400 naming the keys it could not place, rather than being dropped on the way in and leaving you with a view that ignores half of what you sent.
The view has to belong to the vault in the path. A view ID from another vault returns 404, even when the caller can reach both vaults.
A change here is visible to every member of the vault, because views are shared rather than per-person.
Requires the editor or owner role in the vault, the organization-level permission to manage vaults, and the organization-level Manage Views permission. A caller who holds the vault role but not both permissions gets 403.
Requires a user-scoped API key (u:gcai_...). A vault is shared with named people, so an organization-scoped key has no identity to resolve vault access with.
Request
- Base URLhttps://app.gc.ai/api/external/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The vault ID
View ID from GET /vaults/{id}/views.
Request body
Example request
{
"view_state": {
"sort": {
"field": "effectiveDate"
},
"filters": [
{
"field_key": "governingLaw"
}
]
}
}Response
The updated view
Example response
{
"name": "Renewals this quarter",
"view_state": {
"sort": {
"field": "effectiveDate"
},
"filters": [
{
"field_key": "governingLaw"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.