API Guide

Table Of Contents
POST method for Jobs
This method creates a job.
Description Creates a job.
Privilege JOB_MANAGEMENT
HTTP response
code
201
Example request
body
{
"Id":0,
"JobName":"Inventory Task Device",
"JobDescription":"Inventory Task Device",
"Schedule":"startnow",
"State":"Enabled",
"JobType":
{
"Id":8,
"Name":"Inventory_Task"
},
"Targets":
[
{
"Id": 25915,
"Data": "",
"TargetType":
{
"Id":1000,
"Name":"DEVICE"
}
}
]
}
Example
response body
{
"Id": 26097,
"JobName": "Inventory Task Device",
"JobDescription": "Inventory Task Device",
"NextRun": null,
"LastRun": null,
"StartTime": null,
"EndTime": null,
"Schedule": "startnow",
"State": "Enabled",
"CreatedBy": "root",
"UpdatedBy": null,
"LastRunStatus":
{
"Id": 2200,
"Name": "NotRun"
},
"JobType":
{
"Id": 8,
"Name": "Inventory_Task",
"Internal": false
},
"JobStatus":
{
"Id": 2080,
"Name": "New"
},
"Targets":
[
{
Monitor
341