POST
/
site
Create a new site
curl --request POST \
  --url https://api.watchmantower.com/public/v1/site \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "url": "<string>",
  "protocol": "http",
  "timeout": 15000,
  "checkInterval": 43215,
  "parentGroup": "<string>"
}'
{
  "success": true,
  "message": "Site created successfully",
  "code": 201,
  "data": {
    "entityId": "65a7f9c2e1b9a2a9c1d12345"
  }
}
Create a new monitoring site in your account.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
url
string
required
protocol
enum<string>
required
Available options:
http,
https
timeout
integer
default:15000

Timeout in milliseconds

checkInterval
integer

Check interval in seconds

Required range: 30 <= x <= 86400
parentGroup
string

Response

Yeni site başarıyla oluşturuldu.

success
boolean
Example:

true

message
string
Example:

"Site created successfully"

code
number
Example:

201

data
object