Skip to content

create_job

Create a scheduled job.

{
"additionalProperties": false,
"properties": {
"action_config": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Action Config"
},
"action_type": {
"title": "Action Type",
"type": "string"
},
"application_id": {
"title": "Application Id",
"type": "string"
},
"cron_expression": {
"title": "Cron Expression",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Description"
},
"is_active": {
"default": true,
"title": "Is Active",
"type": "boolean"
},
"model_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Model Id"
},
"name": {
"title": "Name",
"type": "string"
}
},
"required": [
"application_id",
"name",
"cron_expression",
"action_type"
],
"title": "create_jobArguments",
"type": "object"
}
{
"properties": {
"actionConfig": {
"additionalProperties": true,
"title": "Actionconfig",
"type": "object"
},
"actionType": {
"enum": [
"evaluate_rule",
"invoke_service",
"rule_call_webservice",
"send_notification",
"drain_webhook_retries",
"aggregate_daily_usage",
"aggregate_daily_traffic"
],
"title": "JobActionType",
"type": "string"
},
"applicationId": {
"format": "uuid",
"title": "Applicationid",
"type": "string"
},
"createdAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Createdat"
},
"createdBy": {
"format": "uuid",
"title": "Createdby",
"type": "string"
},
"cronExpression": {
"title": "Cronexpression",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"id": {
"format": "uuid",
"title": "Id",
"type": "string"
},
"isActive": {
"title": "Isactive",
"type": "boolean"
},
"lastRunAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Lastrunat"
},
"modelId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"title": "Modelid"
},
"name": {
"title": "Name",
"type": "string"
},
"nextRunAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Nextrunat"
},
"timezone": {
"default": "UTC",
"title": "Timezone",
"type": "string"
},
"updatedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
}
},
"required": [
"id",
"applicationId",
"name",
"cronExpression",
"actionType",
"actionConfig",
"isActive",
"createdBy"
],
"title": "PublicScheduledJobResponse",
"type": "object"
}