Explorar o código

docs(api): add docs about creating new org

close #6588
bergquist %!s(int64=9) %!d(string=hai) anos
pai
achega
cbe8af967d
Modificáronse 1 ficheiros con 28 adicións e 0 borrados
  1. 28 0
      docs/sources/http_api/org.md

+ 28 - 0
docs/sources/http_api/org.md

@@ -85,6 +85,34 @@ page_keywords: grafana, admin, http, api, documentation, orgs, organisation
       }
       }
     }
     }
 
 
+## Create Organisation
+
+`POST /api/org`
+
+**Example Request**:
+
+    POST /api/org HTTP/1.1
+    Accept: application/json
+    Content-Type: application/json
+    Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
+
+    {
+      "name":"New Org."
+    }
+
+
+**Example Response**:
+
+    HTTP/1.1 200
+    Content-Type: application/json
+
+    {
+      "orgId":"1",
+      "message":"Organization created"
+    }
+
+
+
 ## Update current Organisation
 ## Update current Organisation
 
 
 `PUT /api/org`
 `PUT /api/org`