File tree 1 file changed +40
-19
lines changed
docs/thehive/api/organisation
1 file changed +40
-19
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ POST /api/v0/organisation
10
10
11
11
## Request
12
12
13
- ### Request Body
13
+ ### Request Body Example
14
14
15
- !!! Example
15
+ !!! Example ""
16
16
17
17
```json
18
18
{
@@ -34,20 +34,41 @@ The following fields are required:
34
34
35
35
- ` 201 ` : if organisation creation completed successfully
36
36
- ` 401 ` : Authentication error
37
-
38
- ### Response Body
39
-
40
- !!! Example
41
-
42
- ```json
43
- {
44
- "_id": "~204804296",
45
- "_type": "organisation",
46
- "createdAt": 1630385478884,
47
-
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
+
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
+ ```
You can’t perform that action at this time.
0 commit comments