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
},
"environment": "default",
"nodes": [
{
"id": "<string>",
"type": "HTTP_REQUEST",
"path": {
"$secret": {
"ref": "<string>",
"version": "<string>",
"field": "<string>"
}
},
"base": {
"$secret": {
"ref": "<string>",
"version": "<string>",
"field": "<string>"
}
},
"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
},
"environment": "default",
"nodes": [
{
"id": "<string>",
"type": "HTTP_REQUEST",
"path": {
"$secret": {
"ref": "<string>",
"version": "<string>",
"field": "<string>"
}
},
"base": {
"$secret": {
"ref": "<string>",
"version": "<string>",
"field": "<string>"
}
},
"headers": {},
"body": "<unknown>"
}
],
"edges": [
{
"from": "<string>",
"to": "<string>"
}
],
"locations": [
"<string>"
],
"notifications": [
{
"trigger": {
"type": "run_failed"
},
"routing": {
"channelType": "slack",
"channel": "<string>"
},
"integration": "<string>"
}
]
}
}monitor
Update Monitor
Update an existing monitor by ID. Notification rules are synced from the request body.
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
},
"environment": "default",
"nodes": [
{
"id": "<string>",
"type": "HTTP_REQUEST",
"path": {
"$secret": {
"ref": "<string>",
"version": "<string>",
"field": "<string>"
}
},
"base": {
"$secret": {
"ref": "<string>",
"version": "<string>",
"field": "<string>"
}
},
"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
},
"environment": "default",
"nodes": [
{
"id": "<string>",
"type": "HTTP_REQUEST",
"path": {
"$secret": {
"ref": "<string>",
"version": "<string>",
"field": "<string>"
}
},
"base": {
"$secret": {
"ref": "<string>",
"version": "<string>",
"field": "<string>"
}
},
"headers": {},
"body": "<unknown>"
}
],
"edges": [
{
"from": "<string>",
"to": "<string>"
}
],
"locations": [
"<string>"
],
"notifications": [
{
"trigger": {
"type": "run_failed"
},
"routing": {
"channelType": "slack",
"channel": "<string>"
},
"integration": "<string>"
}
]
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Available options:
1.0 Show child attributes
Show child attributes
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Default Response
Show child attributes
Show child attributes
⌘I