Merge pull request #12288 from mlclmj/master

docs: HTTP Endpoint for Deleting an Organization
This commit is contained in:
Marcus Efraimsson 2018-06-15 10:37:51 +02:00 committed by GitHub
commit b62322b128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,6 +331,27 @@ Content-Type: application/json
{"message":"Organization updated"}
```
## Delete Organisation
`DELETE /api/orgs/:orgId`
**Example Request**:
```http
DELETE /api/orgs/1 HTTP/1.1
Accept: application/json
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
```
**Example Response**:
```http
HTTP/1.1 200
Content-Type: application/json
{"message":"Organization deleted"}
```
## Get Users in Organisation
`GET /api/orgs/:orgId/users`