Load scheduled jobs list
Example response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
{
"jobs": [
{
"name": "Job1",
"script": {
"path": "/Path/To/Script",
"rev": "6",
"name": "details"
},
"created_at": "2015-02-10 01:22:02",
"enabled": true,
"private": false,
"params": {},
"owner": "username",
"exec_period": "5 * * * * "
}
],
"quota": {"allowed": 10}
}
Request Headers: | |
---|---|
|
|
Status Codes: |
|
Create new scheduled job
Form Parameters: | |
---|---|
|
|
Request Headers: | |
|
Example request:
PUT /billing/account HTTP/1.1 Host: api.cloudrunner.io Accept: application/json Content-Type:application/x-www-form-urlencoded; charset=UTF-8 name=test&script=/Demo/details&private=false&enabled=true&period=5 * * * *
Example response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
{
"success": {
"status": "ok"
}
}
Status Codes: |
|
---|