Skip to content
GridRouterhome

Search

Search providers, capabilities and pages

Docs
API referenceLogs, drains and alerts

Save a log view

POST
/v1/logs/views

Save the query and visible columns under a name. shared: true (owners and admins only) makes it visible to the whole workspace; replace: true overwrites your view with the same name.

Authorization

bearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/logs/views" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "string",  "name": "string",  "query": "string",  "columns": {    "property1": true,    "property2": true  },  "shared": true,  "owned": true,  "created_at": "string",  "updated_at": "string"}