Views
Create a saved view
POST
Requires the write scope.
bearerAuthheader
AuthorizationBearer <token>A workspace API key.
object*stringObject API name.
application/json- body
name*stringLength
1 <= length <= 100kind*stringValue in
"table""board""calendar"visibility?stringDefault
"workspace"Value in
"workspace""private"position?numberfilter?|nullsort?array<>|nullcolumns?|nullgroupBy?string|nullhiddenGroups?array<string|null>|nullgroupAggregate?|nulldateField?string|nullSuccessful response.
application/json- response
id*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidobject*stringname*stringkind*stringValue in
"table""board""calendar"visibility*stringValue in
"workspace""private"position*numberfilter*|nullsort*array<>|nullcolumns*|nullgroupBy*string|nullgroupAggregate*|nullhiddenGroups*array<string|null>dateField*string|nullcreatedBy*updatedBy*createdAt*stringFormat
date-timeupdatedAt*stringFormat
date-timeissues*array<string>curl -X POST 'https://retainer.tamloot.cc/v1/objects/company/views' \ -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "name": "Pipeline", "kind": "table", "visibility": "workspace"}'Example Response
{ "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" ]}