Added support for setting heartbeat and restarts in post api for job creation