Skip to main content
PUT
/
monitor
/
{id}
Update Monitor
curl --request PUT \
  --url https://hub.griff.services/monitor/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project": "<string>",
  "name": "<string>",
  "version": "1.0",
  "frequency": {
    "every": 123,
    "unit": "MINUTE"
  },
  "environment": "default",
  "nodes": [
    {
      "id": "<string>",
      "type": "HTTP_REQUEST",
      "method": "GET",
      "path": "<string>",
      "base": "<string>",
      "response_format": "JSON",
      "headers": {},
      "body": "<unknown>"
    }
  ],
  "edges": [
    {
      "from": "<string>",
      "to": "<string>"
    }
  ],
  "locations": [
    "<string>"
  ],
  "notifications": [
    {
      "trigger": {
        "type": "run_failed"
      },
      "routing": {
        "channelType": "slack",
        "channel": "<string>"
      },
      "integration": "<string>"
    }
  ]
}
'
{
  "data": {
    "project": "<string>",
    "id": "<string>",
    "name": "<string>",
    "version": "1.0",
    "frequency": {
      "every": 123,
      "unit": "MINUTE"
    },
    "environment": "default",
    "nodes": [
      {
        "id": "<string>",
        "type": "HTTP_REQUEST",
        "method": "GET",
        "path": "<string>",
        "base": "<string>",
        "response_format": "JSON",
        "headers": {},
        "body": "<unknown>"
      }
    ],
    "edges": [
      {
        "from": "<string>",
        "to": "<string>"
      }
    ],
    "locations": [
      "<string>"
    ],
    "notifications": [
      {
        "trigger": {
          "type": "run_failed"
        },
        "routing": {
          "channelType": "slack",
          "channel": "<string>"
        },
        "integration": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
project
string
required
name
string
required
version
enum<string>
required
Available options:
1.0
frequency
object
required
environment
string
default:default
required
nodes
object[]
required
edges
object[]
required
locations
string[]
notifications
object[]

Response

Default Response

data
MonitorV1 · object
required