Skip to content

Commit eddbf5d

Browse files
authored
Merge pull request #33 from code42/chore/add-org-create-response
Chore/add org create response
2 parents 7ff3f7a + dc2b287 commit eddbf5d

File tree

1 file changed

+200
-7
lines changed

1 file changed

+200
-7
lines changed

docs/core.yml

Lines changed: 200 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ paths:
13001300
orgs:
13011301
type: array
13021302
items:
1303-
$ref: '#/components/schemas/OrgResponse_core'
1303+
$ref: '#/components/schemas/CreateOrgResponse'
13041304
post:
13051305
tags:
13061306
- orgs
@@ -1312,7 +1312,10 @@ paths:
13121312
content:
13131313
application/json:
13141314
schema:
1315-
$ref: '#/components/schemas/OrgResponse_core'
1315+
type: object
1316+
properties:
1317+
data:
1318+
$ref: '#/components/schemas/CreateOrgResponse'
13161319
/api/v3/orgs/{orgId}:
13171320
get:
13181321
tags:
@@ -1331,13 +1334,16 @@ paths:
13311334
description: A successful response
13321335
content:
13331336
application/json:
1334-
schema:
1335-
$ref: '#/components/schemas/OrgResponse_core'
1337+
schema:
1338+
type: object
1339+
properties:
1340+
data:
1341+
$ref: '#/components/schemas/CreateOrgResponse'
13361342
put:
13371343
tags:
13381344
- orgs
1339-
summary: Get an organization
1340-
operationId: Org_Get
1345+
summary: Update an organization
1346+
operationId: Org_Update
13411347
parameters:
13421348
- name: orgId
13431349
in: path
@@ -1351,7 +1357,10 @@ paths:
13511357
content:
13521358
application/json:
13531359
schema:
1354-
type: object
1360+
type: object
1361+
properties:
1362+
data:
1363+
$ref: '#/components/schemas/CreateOrgResponse'
13551364
/api/v3/orgs/{orgId}/block:
13561365
post:
13571366
tags:
@@ -2183,6 +2192,190 @@ components:
21832192
stsBaseUrl:
21842193
type: string
21852194
example: "http://core:4200"
2195+
CreateOrgResponse:
2196+
type: object
2197+
properties:
2198+
orgId:
2199+
type: integer
2200+
format: int32
2201+
example: 123
2202+
orgUid:
2203+
type: string
2204+
example: test org uid
2205+
orgGuid:
2206+
type: string
2207+
example: test org guid
2208+
orgName:
2209+
type: string
2210+
example: My Test Org
2211+
orgExtRef:
2212+
type: string
2213+
notes:
2214+
type: string
2215+
status:
2216+
type: string
2217+
active:
2218+
type: boolean
2219+
example: true
2220+
blocked:
2221+
type: boolean
2222+
example: false
2223+
parentOrgId:
2224+
type: integer
2225+
format: int32
2226+
example: 123456
2227+
parentOrgUid:
2228+
type: string
2229+
example: parent org uid
2230+
parentOrgGuid:
2231+
type: string
2232+
example: parent org guid
2233+
type:
2234+
type: string
2235+
classification:
2236+
type: string
2237+
hierarchyCounts:
2238+
type: object
2239+
additionalProperties:
2240+
type: integer
2241+
format: int32
2242+
configInheritanceCounts:
2243+
type: object
2244+
additionalProperties:
2245+
type: integer
2246+
format: int32
2247+
creationDate:
2248+
type: string
2249+
example: Mon Feb 22 08:40:43 UTC 2021
2250+
modificationDate:
2251+
type: string
2252+
example: Mon Feb 22 08:40:43 UTC 2021
2253+
deactivationDate:
2254+
type: string
2255+
example: Mon Feb 22 08:40:43 UTC 2021
2256+
settings:
2257+
$ref: "#/components/schemas/OrgSettingsData"
2258+
settingsInherited:
2259+
$ref: "#/components/schemas/OrgSettingsData"
2260+
settingsSummary:
2261+
$ref: "#/components/schemas/OrgSettingsData"
2262+
registrationKey:
2263+
type: string
2264+
reporting:
2265+
$ref: "#/components/schemas/OrgReportingData"
2266+
customConfig:
2267+
type: boolean
2268+
OrgReportingData:
2269+
type: object
2270+
properties:
2271+
orgManagers:
2272+
type: array
2273+
items:
2274+
$ref: "#/components/schemas/User"
2275+
OrgSettingsData:
2276+
type: object
2277+
properties:
2278+
maxSeats:
2279+
type: integer
2280+
format: int32
2281+
maxBytes:
2282+
type: integer
2283+
format: int64
2284+
TenantUid:
2285+
type: object
2286+
properties:
2287+
defaultSystemTenant:
2288+
type: boolean
2289+
User:
2290+
type: object
2291+
properties:
2292+
tenantUid:
2293+
$ref: "#/components/schemas/TenantUid"
2294+
principalId:
2295+
type: string
2296+
userId:
2297+
type: integer
2298+
format: int32
2299+
orgId:
2300+
type: integer
2301+
format: int32
2302+
username:
2303+
type: string
2304+
email:
2305+
type: string
2306+
firstName:
2307+
type: string
2308+
lastName:
2309+
type: string
2310+
lastFirstName:
2311+
type: string
2312+
lastFirstSearch:
2313+
type: string
2314+
firstLastSearch:
2315+
type: string
2316+
question:
2317+
type: string
2318+
answer:
2319+
type: string
2320+
passwordResetRequired:
2321+
type: boolean
2322+
active:
2323+
type: boolean
2324+
blocked:
2325+
type: boolean
2326+
maxBytes:
2327+
type: integer
2328+
format: int64
2329+
ssoIdentityProviderUid:
2330+
type: integer
2331+
format: int64
2332+
modificationDate:
2333+
type: string
2334+
format: date-time
2335+
creationDate:
2336+
type: string
2337+
format: date-time
2338+
apiTokenRevocationTime:
2339+
type: integer
2340+
format: int64
2341+
externalReference:
2342+
type: string
2343+
localAuthenticationOnly:
2344+
type: boolean
2345+
supportUser:
2346+
type: boolean
2347+
status:
2348+
type: string
2349+
tableName:
2350+
type: string
2351+
idColumnName:
2352+
type: string
2353+
principalType:
2354+
type: string
2355+
enum:
2356+
- USER
2357+
- APIKEY
2358+
- DEVICE
2359+
- SERVICE
2360+
invited:
2361+
type: boolean
2362+
defaultAdminUser:
2363+
type: boolean
2364+
firstNameAndDerivedValues:
2365+
type: string
2366+
writeOnly: true
2367+
lastNameAndDerivedValues:
2368+
type: string
2369+
writeOnly: true
2370+
name:
2371+
type: string
2372+
id:
2373+
type: integer
2374+
format: int32
2375+
displayName:
2376+
type: string
2377+
system:
2378+
type: boolean
21862379
OrgResponse_core:
21872380
type: object
21882381
properties:

0 commit comments

Comments
 (0)