curl --request POST \
--url https://us.infisical.com/api/v1/pki/alerts \
--header 'Content-Type: application/json' \
--data '{
"projectId": "<string>",
"pkiCollectionId": "<string>",
"name": "<string>",
"alertBeforeDays": 123,
"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>"
}
Create PKI alert
curl --request POST \
--url https://us.infisical.com/api/v1/pki/alerts \
--header 'Content-Type: application/json' \
--data '{
"projectId": "<string>",
"pkiCollectionId": "<string>",
"name": "<string>",
"alertBeforeDays": 123,
"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>"
}
Default Response
The response is of type object
.
Was this page helpful?