Save a Job definition for an Environment. Saving never runs it; job_run_create does, and an enabled schedule runs it on time.
Arguments
| Argument |
Type |
Description |
yes |
boolean |
true once the person confirms. |
data |
object |
Required. |
data.environment_id |
string |
Environment id. |
data.name |
string |
— |
data.description |
string |
— |
data.command |
string |
— |
data.source |
object |
Image override. |
data.size |
string |
Size override. |
data.resources |
object |
Custom size. |
data.timeout_seconds |
integer |
Default 900. |
data.schedule |
object |
— |
Example
{"data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}