Raw schema
{
"type": "object",
"properties": {
"instance_id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Utility instance id from buy or list_utilities."
},
"schedule_id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "schedule id (wsc_...) from schedule_create or schedule_list."
},
"status": {
"description": "paused: stop it; active: run it again.",
"type": "string",
"enum": [
"paused",
"active"
]
},
"repeat": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "every"
},
"minutes": {
"type": "integer",
"minimum": 5,
"maximum": 10080,
"description": "Minutes on the UTC clock: an N that divides a day (5, 15, 60, 1440) runs from 00:00 UTC."
}
},
"required": [
"type",
"minutes"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "hourly"
},
"minute": {
"type": "integer",
"minimum": 0,
"maximum": 59,
"description": "Every hour at this minute (0 to 59) of time_zone's clock."
}
},
"required": [
"type",
"minute"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "daily"
},
"at": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Time of day \"HH:MM\", 24-hour clock, in time_zone."
}
},
"required": [
"type",
"at"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "weekly"
},
"days": {
"minItems": 1,
"maxItems": 7,
"type": "array",
"items": {
"type": "string",
"enum": [
"mon",
"tue",
"wed",
"thu",
"fri",
"sat",
"sun"
]
},
"description": "Weekdays, each once."
},
"at": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Time of day \"HH:MM\", 24-hour clock, in time_zone."
}
},
"required": [
"type",
"days",
"at"
],
"additionalProperties": false
}
],
"description": "When it repeats."
},
"time_zone": {
"description": "New IANA time zone, for example Europe/Istanbul. Left out: the current one stays.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"target": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "inbox"
},
"inbox_instance_id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "One of your webhook inboxes."
}
},
"required": [
"type",
"inbox_instance_id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "url"
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"description": "A public https URL we POST to."
}
},
"required": [
"type",
"url"
],
"additionalProperties": false
}
],
"description": "Where each run is delivered."
},
"payload": {
"description": "New JSON sent with every run (up to 8 KB).",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"alert_inbox_instance_id": {
"description": "One of your inboxes for missed-run messages, or null for the target inbox.",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64
},
{
"type": "null"
}
]
},
"name": {
"description": "Your own label, or null.",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 100
},
{
"type": "null"
}
]
},
"passport_token": {
"description": "Your amp_ token, only if you have no app sign-in and cannot send a header.",
"type": "string",
"maxLength": 200
}
},
"required": [
"instance_id",
"schedule_id"
],
"additionalProperties": false,
"examples": [
{
"instance_id": "wkp_exampleexampleexample2",
"schedule_id": "wsc_exampleexampleexample2",
"status": "paused"
}
]
}