cURL
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>" } ] } }
Update an existing monitor by ID. Notification rules are synced from the request body.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1.0
Show child attributes
Default Response