Browse Source

Corrected example request again.

pull/46/head
Pēteris Caune 9 years ago
parent
commit
c4b5a8bb5b
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      templates/front/docs_api.html

+ 3
- 3
templates/front/docs_api.html View File

@ -67,7 +67,7 @@ The response may contain a JSON document with additional data.
<th>tags</th>
<td>
<p>string, optional, default value: ""</p>
<p>A comma-delimited list of tags for the new check.</p>
<p>A space-delimited list of tags for the new check.</p>
</td>
</tr>
<tr>
@ -100,9 +100,9 @@ The response may contain a JSON document with additional data.
<h3 class="api-section">Example Request</h3>
<pre>
curl {{ SITE_ROOT }}/v1/checks/ \
curl {{ SITE_ROOT }}api/v1/checks/ \
-X POST \
-d '{"api_key": "your-api-key", "name": "Backups", "tags": "prod,www", "timeout": 3600, "grace": 60}'
-d '{"api_key": "your-api-key", "name": "Backups", "tags": "prod www", "timeout": 3600, "grace": 60}'
</pre>
<h3 class="api-section">Example Response</h3>


Loading…
Cancel
Save