From 541cddd3e2db7fe91ff4291e6740301deb1e0636 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Wed, 30 Jan 2019 10:33:10 -0500 Subject: [PATCH] docs: fix job json example (#5274) The internal needs to be long enough to accomodate the attempts. Also, clarify that the input should be a json file rather than an hcl `.nomad` one. --- website/source/api/jobs.html.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/source/api/jobs.html.md b/website/source/api/jobs.html.md index d4d16ac6e..05d0bc1e9 100644 --- a/website/source/api/jobs.html.md +++ b/website/source/api/jobs.html.md @@ -189,9 +189,9 @@ The table below shows this endpoint's support for "Attempts": 10, "Delay": 30000000000, "DelayFunction": "exponential", - "Interval": 0, + "Interval": 36000000000000, "MaxDelay": 3600000000000, - "Unlimited": true + "Unlimited": false }, "EphemeralDisk": { "SizeMB": 300 @@ -213,7 +213,7 @@ The table below shows this endpoint's support for ```text $ curl \ --request POST \ - --data @my-job.nomad \ + --data @my-job.json \ https://localhost:4646/v1/jobs ```