Installer.com Docs
API ReferenceView preset
PATCH
/api/routers/{routerId}/view-presets

Create or update view presets (single or multiple)

Path Parameters

routerId*string
Formatuuid

Request Body

application/json

Upsert view preset(s) payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "http://localhost:8000/api/routers/7253b007-c14b-496f-833b-9e1aa7f1a27d/view-presets" \  -H "Content-Type: application/json" \  -d '[    {      "entity": "ORDER",      "name": "string",      "layout": "TABLE",      "state": {}    }  ]'
[
  {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "entity": "ORDER",
    "name": "string",
    "layout": "TABLE",
    "state": {
      "filters": [
        {
          "type": "text",
          "operator": "contains",
          "columnId": "string",
          "values": [
            null
          ]
        }
      ],
      "sorting": [
        {
          "id": "string",
          "desc": true
        }
      ],
      "columnVisibility": {
        "property1": true,
        "property2": true
      }
    },
    "order": -2147483648,
    "organizationUserId": "d6a6d81c-4481-49f2-a424-3da855c621bb",
    "count": 0,
    "personal": false
  }
]