Skip to content

Commit

Permalink
Add create or update tenant API spec
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek3255 committed Jan 15, 2024
1 parent ff22620 commit 54b8773
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,55 @@ paths:
type: string
enum:
- Unauthorised access
post:
tags:
- Multitenancy
summary: Create or update a tenant
parameters:
- name: authorization
in: header
required: true
schema:
type: string
example: "Bearer API_KEY"
requestBody:
content:
application/json:
schema:
type: object
properties:
tenantId:
type: string
emailPasswordEnabled:
type: boolean
passwordlessEnabled:
type: boolean
thirdPartyEnabled:
type: boolean
coreConfig:
type: object
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
status:
type: string
default: "OK"
createdNew:
type: boolean

401:
description: Unauthorised access
content:
text/plain:
schema:
type: string
enum:
- Unauthorised access
/dashboard/api/tenants/list:
get:
tags:
Expand Down

0 comments on commit 54b8773

Please sign in to comment.