Overview
Prompts
- Prompt
- Prompt Version
- Prompt Deployment
- Prompt Config
Datasets
- Dataset
- Dataset column
- Dataset entry
- Dataset split
Evaluators
- Evaluator
Log repositories
- Log repository
Folders
- Folder
- Folder contents
Integrations
- Integration
Test runs
- Test run
Test run entries
- Test run entries
Test run reports
- Test run report
Alert
Update Alert
Update an alert
PUT
/
v1
/
alerts
Copy
Ask AI
curl --request PUT \
--url https://api.getmaxim.ai/v1/alerts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"id": "<string>",
"workspaceId": "<string>",
"type": "LOG_REPOSITORY",
"config": {
"metric": "<string>",
"duration": 2,
"minimumThreshold": 2,
"operator": "<string>",
"value": "<string>"
},
"enabled": true,
"notificationChannelIds": [
"<string>"
]
}'
Copy
Ask AI
{
"data": {
"id": "<string>",
"workspaceId": "<string>",
"entityId": "<string>",
"type": "<string>",
"enabled": true,
"config": {
"metric": "<string>",
"minimumThreshold": 2,
"duration": 123,
"operator": "<string>",
"value": "<string>",
"renotifyTTL": -1
},
"createdAt": "<string>",
"updatedAt": "<string>",
"notificationChannels": [
{
"notificationChannel": {
"id": "<string>",
"type": "SLACK",
"name": "<string>",
"config": {}
}
}
]
}
}
Authorizations
API key for authentication
Body
application/json
Response
200
application/json
Alert updated successfully
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request PUT \
--url https://api.getmaxim.ai/v1/alerts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"id": "<string>",
"workspaceId": "<string>",
"type": "LOG_REPOSITORY",
"config": {
"metric": "<string>",
"duration": 2,
"minimumThreshold": 2,
"operator": "<string>",
"value": "<string>"
},
"enabled": true,
"notificationChannelIds": [
"<string>"
]
}'
Copy
Ask AI
{
"data": {
"id": "<string>",
"workspaceId": "<string>",
"entityId": "<string>",
"type": "<string>",
"enabled": true,
"config": {
"metric": "<string>",
"minimumThreshold": 2,
"duration": 123,
"operator": "<string>",
"value": "<string>",
"renotifyTTL": -1
},
"createdAt": "<string>",
"updatedAt": "<string>",
"notificationChannels": [
{
"notificationChannel": {
"id": "<string>",
"type": "SLACK",
"name": "<string>",
"config": {}
}
}
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.