Skip to content

Save a view of a list

POST
/api/views
curl --request POST \
--url https://forge.example.com/api/views \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "list": "example", "name": "example", "query": "example", "shared": false }'

A view keeps the search, scope, filters, sort, hidden columns, density and rows a page, never the page itself. Administrators may save one for the whole organization.

Media typeapplication/json
object
list
required
string
name
required
string
query
null | string
shared
boolean

OK

Media typeapplication/json
object
id
required
string format: uuid
list
required
string
name
required
string
query
required
string
shared
required
boolean
owner
required
object
id
required
string format: uuid
displayName
required
string
canChange
required
boolean
updatedAt
required
string format: date-time
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
pinned
boolean
pinnedAt
null | string format: date-time

Example

{
"pinned": false
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}