Skip to Content
Open Retainer
Views

List saved views

GET
/v1/objects/{object}/views

Requires the read scope.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A workspace API key.

Path Parameters

object*string

Object API name.

Response Body

Successful response.

application/json
  1. response
views*array<>
Example Request
curl -X GET 'https://retainer.tamloot.cc/v1/objects/company/views' \  -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY'
Example Response
{  "views": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "object": "string",      "name": "string",      "kind": "table",      "visibility": "workspace",      "position": 0,      "filter": {        "property1": null,        "property2": null      },      "sort": [        {          "field": "string",          "direction": "asc"        }      ],      "columns": {        "order": [          "string"        ],        "widths": {          "property1": -9007199254740991,          "property2": -9007199254740991        },        "aggregates": {          "property1": "countEmpty",          "property2": "countEmpty"        }      },      "groupBy": "string",      "groupAggregate": {        "field": "string",        "op": "countEmpty"      },      "hiddenGroups": [        "string"      ],      "dateField": "string",      "createdBy": {        "via": "string",        "type": "user",        "id": "string",        "name": "string"      },      "updatedBy": {        "via": "string",        "type": "user",        "id": "string",        "name": "string"      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "issues": [        "string"      ]    }  ]}