Create the specified alert to the specified project
POSThttps://api.spectrocloud.com/v1/projects/:uid/alerts/:component
Create the specified alert to the specified project
Request
Path Parameters
uid stringrequired
component stringrequired
- application/json
Body
alertAllUsersboolean
createdBystring
http
object
identifiersstring[]
isActiveboolean
status
object
typestring
Possible values: [email
, app
, http
]
uidstring
Responses
- 201
Created successfully
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
uidstringrequired
{
"uid": "string"
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/projects/:uid/alerts/:component' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"alertAllUsers": true,
"createdBy": "string",
"http": {
"body": "string",
"method": "string",
"url": "string"
},
"identifiers": [
"string"
],
"isActive": true,
"status": {
"isSucceeded": true,
"message": "string",
"time": "2024-07-05T19:21:09.656Z"
},
"type": "email",
"uid": "string"
}'