Views
List saved views
GET
Requires the read scope.
bearerAuthheader
AuthorizationBearer <token>A workspace API key.
object*stringObject API name.
Successful response.
application/json- response
views*array<>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" ] } ]}