Commit 170e8a5d by Torkel Ödegaard

Another docs update

parent bd0bf374
...@@ -31,7 +31,7 @@ The `Authorization` header value should be `Bearer <your api key>`. ...@@ -31,7 +31,7 @@ The `Authorization` header value should be `Bearer <your api key>`.
## Dashboards ## Dashboards
### Create or Update dashboard ### Create / Update dashboard
`POST /api/dashboards/db` `POST /api/dashboards/db`
...@@ -63,13 +63,12 @@ Creates a new dashboard or updates an existing dashboard. ...@@ -63,13 +63,12 @@ Creates a new dashboard or updates an existing dashboard.
JSON Body schema: JSON Body schema:
- **dashboard** – The complete dashboard model, id = null to create a new dashboard - **dashboard** – The complete dashboard model, id = null to create a new dashboard
- **overwrite** – Set to true if you want to overwrite existing dashboard with new version or with same dashboard title. - **overwrite** – Set to true if you want to overwrite existing dashboard with newer version or with same dashboard title.
**Example Response**: **Example Response**:
HTTP/1.1 200 OK HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8 Content-Type: application/json; charset=UTF-8
Date: Wed, 22 Apr 2015 11:12:06 GMT
Content-Length: 78 Content-Length: 78
{ {
...@@ -112,6 +111,11 @@ Will return the dashboard given the dashboard slug. Slug is the url friendly ver ...@@ -112,6 +111,11 @@ Will return the dashboard given the dashboard slug. Slug is the url friendly ver
Content-Type: application/json Content-Type: application/json
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
**Example Response**:
HTTP/1.1 200
Content-Type: application/json
{ {
"meta": { "meta": {
"isStarred": false, "isStarred": false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment