Skip to main content
PUT
/
v1
/
config
/
view
/
{viewId}
Update View
curl --request PUT \
  --url https://api.mezmo.com/v1/config/view/{viewId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "query": "<string>",
  "hosts": [
    "<string>"
  ],
  "apps": [
    "<string>"
  ],
  "levels": [
    "<string>"
  ],
  "tags": [
    "<string>"
  ],
  "category": [
    "<string>"
  ],
  "presetid": "<string>",
  "channels": [
    {
      "integration": "<string>",
      "emails": [
        "<string>"
      ],
      "url": "<string>",
      "key": "<string>",
      "triggerlimit": "<string>",
      "triggerinterval": "<string>",
      "immediate": true,
      "terminal": true,
      "operator": "<string>",
      "timezone": "America/Chicago, EST, Etc/UTC, etc...",
      "headers": {
        "timestamp": "<string>"
      },
      "bodyTemplate": {
        "timestamp": "<string>"
      },
      "autoresolve": true,
      "autoresolveinterval": "<string>",
      "autoresolvelimit": "<string>"
    }
  ]
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://mezmo-9a59581a-mintlify-926f893d.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

This key is used for all apis with the exception of ingest. You can obtain it following these instructions and placing the key in the header of your call in the format of Authorization: Token {accesstoken} For example:

curl -H 'Authorization: Token <ACCESS TOKEN>'

Path Parameters

viewId
string
required

ID of a view.

Body

application/json

Request parameters

name
string
required

Name of a view.

query
string

Search query.

hosts
string[]

Comma-separated list of hosts.

apps
string[]

Comma-separated list of applications.

levels
string[]

Comma-separated list of log levels.

tags
string[]

Tags that are used to dynamically group hosts.

category
string[]

Logical name that you can use to group views.

presetid
string

ID of a preset alert.

channels
object[]

Response

OK

{key}
object