PATCH
/
api
/
v1
/
pki
/
alerts
/
{alertId}
cURL
curl --request PATCH \
  --url https://us.infisical.com/api/v1/pki/alerts/{alertId} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "alertBeforeDays": 123,
  "pkiCollectionId": "<string>",
  "emails": [
    "jsmith@example.com"
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "projectId": "<string>",
  "pkiCollectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "alertBeforeDays": 123,
  "recipientEmails": "<string>"
}

Path Parameters

alertId
string
required

The ID of the alert to update.

Body

application/json
name
string

The name of the alert to update to.

alertBeforeDays
number

The number of days before the certificate expires to trigger the alert to update to.

pkiCollectionId
string

The ID of the PKI collection to bind to the alert to update to.

emails
string<email>[]

The email addresses to send the alert email to update to.

Required array length: 1 - 5 elements

Response

Default Response

id
string<uuid>
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
projectId
string
required
pkiCollectionId
string<uuid>
required
name
string
required
alertBeforeDays
number
required
recipientEmails
string
required