POST
/
api
/
v1
/
monitors
/
create
/
schema
curl --request POST \
  --url https://app.datafold.com/api/v1/monitors/create/schema \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "connection_id": 123,
  "description": "<string>",
  "enabled": true,
  "name": "<string>",
  "notifications": [
    {
      "recipients": [
        "<string>"
      ],
      "type": "<string>"
    }
  ],
  "schedule": {
    "interval": {
      "every": "<string>",
      "type": "hourly"
    }
  },
  "table": "<string>",
  "tags": [
    "<string>"
  ]
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

Use the 'Authorization' header with the format 'Key <api-key>'

Body

application/json
connection_id
integer
required

The identifier for the data source configuration.

name
string
required

The name of the monitor.

schedule
object
required

The schedule at which the monitor runs.

description
string | null

The description of the monitor.

enabled
boolean
default:
true

Indicates whether the monitor is enabled.

notifications
object[]

Notification configuration for the monitor.

table
string | null

The name of the table.

tags
string[]

Tags associated with the monitor.

Response

200
application/json
Successful Response
id
integer
required

Unique identifier for the monitor.