Skip to content

Commit a83a976

Browse files
committed
Merge branch 'develop' of github.com:TheHive-Project/docs into develop
2 parents 4ef9cb9 + c062731 commit a83a976

File tree

1 file changed

+40
-19
lines changed

1 file changed

+40
-19
lines changed

docs/thehive/api/organisation/create.md

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ POST /api/v0/organisation
1010

1111
## Request
1212

13-
### Request Body
13+
### Request Body Example
1414

15-
!!! Example
15+
!!! Example ""
1616

1717
```json
1818
{
@@ -34,20 +34,41 @@ The following fields are required:
3434

3535
- `201`: if organisation creation completed successfully
3636
- `401`: Authentication error
37-
38-
### Response Body
39-
40-
!!! Example
41-
42-
```json
43-
{
44-
"_id": "~204804296",
45-
"_type": "organisation",
46-
"createdAt": 1630385478884,
47-
"createdBy": "[email protected]",
48-
"description": "SOC team",
49-
"id": "~204804296",
50-
"links": [],
51-
"name": "soc"
52-
}
53-
```
37+
- `403`: Authorization error
38+
39+
### Response Body Example
40+
41+
!!! Example ""
42+
43+
=== "200"
44+
45+
```json
46+
{
47+
"_id": "~204804296",
48+
"_type": "organisation",
49+
"createdAt": 1630385478884,
50+
"createdBy": "[email protected]",
51+
"description": "SOC team",
52+
"id": "~204804296",
53+
"links": [],
54+
"name": "soc"
55+
}
56+
```
57+
58+
=== "401"
59+
60+
```json
61+
{
62+
"type": "AuthenticationError",
63+
"message": "Authentication failure"
64+
}
65+
```
66+
67+
=== "403"
68+
69+
```json
70+
{
71+
"type": "AuthorizationError",
72+
"message": "Unauthorized action"
73+
}
74+
```

0 commit comments

Comments
 (0)