From 58a270cff1c88eb7882220b41e9ad41bdf78b95e Mon Sep 17 00:00:00 2001 From: Michael McCracken Date: Thu, 18 Jan 2018 04:15:13 -0800 Subject: [PATCH] website: fix example json job Can't use the string syntax in json. Also fixes typo in curl example command. Signed-off-by: Michael McCracken --- website/source/api/json-jobs.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/api/json-jobs.html.md b/website/source/api/json-jobs.html.md index 95fd024b6..3c8d25ac3 100644 --- a/website/source/api/json-jobs.html.md +++ b/website/source/api/json-jobs.html.md @@ -69,7 +69,7 @@ Below is the JSON representation of the job outputted by `$ nomad init`: "TLSSkipVerify": false, "CheckRestart": { "Limit": 3, - "Grace": "30s", + "Grace": 30000000000, "IgnoreWarnings": false } }] @@ -114,7 +114,7 @@ Below is the JSON representation of the job outputted by `$ nomad init`: The example JSON could be submitted as a job using the following: ```text -$ curl -XPUT @d example.json http://127.0.0.1:4646/v1/job/example +$ curl -XPUT -d @example.json http://127.0.0.1:4646/v1/job/example { "EvalID": "5d6ded54-0b2a-8858-6583-be5f476dec9d", "EvalCreateIndex": 12,