Skip to main content
Replace a view service
curl --request PUT \
  --url https://api.coralogix.com/mgmt/openapi/latest/data-exploration/saved-views/v1/{view.id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "filters": {
    "filters": [
      {
        "name": "applicationName",
        "selectedValues": {
          "demo": true,
          "cs-rest-test1": true
        }
      }
    ]
  },
  "folderId": "3dc02998-0b50-4ea8-b68a-4779d716fa1f",
  "isCompactMode": true,
  "name": "Logs view",
  "searchQuery": {
    "query": "<string>",
    "syntaxType": "SYNTAX_TYPE_UNSPECIFIED"
  },
  "timeSelection": {
    "quickSelection": {
      "caption": "Last Hour",
      "seconds": 3600
    }
  },
  "viewType": "VIEW_TYPE_UNSPECIFIED"
}'
{
  "filters": {
    "filters": [
      {
        "name": "applicationName",
        "selectedValues": {
          "demo": true,
          "cs-rest-test1": true
        }
      }
    ]
  },
  "folderId": "3dc02998-0b50-4ea8-b68a-4779d716fa1f",
  "id": 52,
  "isCompactMode": true,
  "name": "Logs view",
  "searchQuery": {
    "query": "<string>",
    "syntaxType": "SYNTAX_TYPE_UNSPECIFIED"
  },
  "timeSelection": {
    "quickSelection": {
      "caption": "Last Hour",
      "seconds": 3600
    }
  },
  "viewType": "VIEW_TYPE_UNSPECIFIED"
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

view.id
integer
required

id

Example:

52

Body

application/json

Response for views.

name
string
required

View name

Minimum length: 1
Example:

"Logs view"

timeSelection
object
required
  • Option 1
  • Option 2
filters
object
folderId
string

Unique identifier for folders

Required string length: 36
Example:

"3dc02998-0b50-4ea8-b68a-4779d716fa1f"

isCompactMode
boolean
searchQuery
object
viewType
enum<string>
Available options:
VIEW_TYPE_UNSPECIFIED,
VIEW_TYPE_LOGS,
VIEW_TYPE_TEMPLATES,
VIEW_TYPE_ARCHIVE_LOGS,
VIEW_TYPE_ARCHIVE_TEMPLATES

Response

200 - application/json

Response for views.

id
integer
required

id

Example:

52

name
string
required

View name

Minimum length: 1
Example:

"Logs view"

timeSelection
object
required
  • Option 1
  • Option 2
filters
object
folderId
string

Unique identifier for folders

Required string length: 36
Example:

"3dc02998-0b50-4ea8-b68a-4779d716fa1f"

isCompactMode
boolean
searchQuery
object
viewType
enum<string>
Available options:
VIEW_TYPE_UNSPECIFIED,
VIEW_TYPE_LOGS,
VIEW_TYPE_TEMPLATES,
VIEW_TYPE_ARCHIVE_LOGS,
VIEW_TYPE_ARCHIVE_TEMPLATES