curl --request PATCH \
--url https://us.infisical.com/api/v1/cert-manager/alerts/{alertId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"eventType": "expiration",
"alertBefore": "<string>",
"filters": [
{
"field": "profile_name",
"operator": "equals",
"value": "<string>"
}
],
"enabled": true,
"channels": [
{
"channelType": "email",
"config": {
"recipients": [
"[email protected]"
]
},
"enabled": true
}
]
}
'{
"alert": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"eventType": "expiration",
"alertBefore": "<string>",
"filters": [
{
"field": "profile_name",
"operator": "equals",
"value": "<string>"
}
],
"enabled": true,
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channels": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelType": "email",
"config": {},
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Update a PKI alert
curl --request PATCH \
--url https://us.infisical.com/api/v1/cert-manager/alerts/{alertId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"eventType": "expiration",
"alertBefore": "<string>",
"filters": [
{
"field": "profile_name",
"operator": "equals",
"value": "<string>"
}
],
"enabled": true,
"channels": [
{
"channelType": "email",
"config": {
"recipients": [
"[email protected]"
]
},
"enabled": true
}
]
}
'{
"alert": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"eventType": "expiration",
"alertBefore": "<string>",
"filters": [
{
"field": "profile_name",
"operator": "equals",
"value": "<string>"
}
],
"enabled": true,
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channels": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelType": "email",
"config": {},
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Alert ID
1 - 2551000expiration, renewal, issuance, revocation 1Show child attributes
Default Response
Show child attributes
expiration, renewal, issuance, revocation Show child attributes
email, webhook, slack Was this page helpful?