List your saved views of a list, and the organization's
GET
/api/views
const url = 'https://forge.example.com/api/views';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://forge.example.com/api/views \ --header 'Authorization: Bearer <token>'list is models or activity. Another person’s own view is never shown.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”list
string
Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
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
pinned
boolean
pinnedAt
null | string format: date-time
Example
[ { "pinned": false }]default
Section titled “default”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"}