File tree Expand file tree Collapse file tree 1 file changed +40
-19
lines changed
docs/thehive/api/organisation Expand file tree Collapse file tree 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
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- 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