{
  "openapi": "3.0.4",
  "info": {
    "title": "Arcoro IdentityServer Host API",
    "version": "v1"
  },
  "paths": {
    "/api/usermanagement/users": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Retrieve a set of Users",
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "Filter by a User's email",
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number to retrieve from the full response list",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Number of items to retrieve",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSummaryQueryResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Retrieve a User by their subject id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "Delete a User by their subject id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "NoContent"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}/profile": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update a User's first name and last name",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "UpdateUserDetailsRequest containing the new first name and last name",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserDetailsRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}/active": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update a User's 'Active' flag, which denotes if their account is active and valid.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "ChangeActiveRequest containing the 'Active' status",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeActiveRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}/resetpassword": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Reset a User's password",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reset Password Response in body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForgotPasswordResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}/email": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update a User's email address and if that email address is confirmed",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "ChangeEmailRequest containing the new email address and its confirmation status",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetEmailRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}/phonenumber": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update a User's phone number and if that phone number is confirmed",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "ChangePhoneNumberRequest containing the new phone number and its confirmation status",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetPhoneNumberRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}/mfarequired": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update if a user is required to use MFA at login.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Value indicating if MFA is required",
          "content": {
            "application/json": {
              "schema": {
                "type": "boolean"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}/mfareset": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Clear a user's MFA authenticator codes, requiring setup on next login.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/invite": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Invite a person to be a User of the application",
        "requestBody": {
          "description": "InvitationRequest containing the tenant, application, email, user name, first name, and last name of the person to create and/or invite",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}/password": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Validate a proposed password for a user. Does not change the password.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "the new password",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Manually set a user's password.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "the new password",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{id}/mfasecret": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Manually set a user's MFA secret information.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The User's subject id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "the plaintext MFA secret, base-32 encoded",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/applications/{id}": {
      "get": {
        "tags": [
          "Application"
        ],
        "summary": "Retrieve an Application by its Id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The Application's Id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Application"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/applications": {
      "get": {
        "tags": [
          "Application"
        ],
        "summary": "Retrieve the list of Applications, optionally accessible by the given user",
        "parameters": [
          {
            "name": "subjectId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Application"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/branding/{id}": {
      "get": {
        "tags": [
          "Branding"
        ],
        "summary": "Retrieve Branding by Id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Id of the branding reference",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandingReport"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "put": {
        "tags": [
          "Branding"
        ],
        "summary": "Update branding",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The branding id to update",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The Tenant to update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandingReport"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/branding": {
      "get": {
        "tags": [
          "Branding"
        ],
        "summary": "Retrieve Branding by Tenant Id",
        "parameters": [
          {
            "name": "tenantId",
            "in": "query",
            "description": "Tenant Id to lookup branding by",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandingReport"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "post": {
        "tags": [
          "Branding"
        ],
        "summary": "Create Branding",
        "requestBody": {
          "description": "The branding to add",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandingReport"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    },
    "/api/usermanagement/users/{subjectId}/devices": {
      "get": {
        "tags": [
          "DeviceManagement"
        ],
        "summary": "Get the user's sessions and trusted devices",
        "parameters": [
          {
            "name": "subjectId",
            "in": "path",
            "description": "The user's subject id",
            "required": true,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceIEnumerableApiResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{subjectId}/devices/{deviceId}": {
      "delete": {
        "tags": [
          "DeviceManagement"
        ],
        "summary": "Revoke a user's device",
        "parameters": [
          {
            "name": "subjectId",
            "in": "path",
            "description": "The user's subject id",
            "required": true,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "name": "deviceId",
            "in": "path",
            "description": "The device's id",
            "required": true,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/users/{subjectId}/trusteddevices": {
      "delete": {
        "tags": [
          "DeviceManagement"
        ],
        "summary": "Revoke all of a user's trusted devices (MFA and apps)",
        "parameters": [
          {
            "name": "subjectId",
            "in": "path",
            "description": "The user's subject id",
            "required": true,
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/externalauthentication/tenants": {
      "get": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Retrieve a set of summaries of the Tenants",
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "Filter by a Tenant's name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number to retrieve from the full response list",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Number of items to retrieve",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantReportSummaryQueryResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Create a Tenant",
        "requestBody": {
          "description": "The Tenant to add",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantDetail"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    },
    "/api/externalauthentication/tenants/{tenantId}": {
      "get": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Retrieve a Tenant by its Name",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "description": "The Tenant's Id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantReport"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "put": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Update a Tenant",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "description": "The Tenant to update by its Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The Tenant to update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantDetail"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "delete": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Delete a Tenant",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "description": "The Tenant to delete by its Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "NoContent"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/externalauthentication/idps": {
      "get": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Retrieve a set of summaries of the Identity Providers",
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "Filter by a Identity Provider's scheme",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number to retrieve from the full response list",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Number of items to retrieve",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityProviderReportSummaryQueryResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    },
    "/api/externalauthentication/idps/{scheme}": {
      "get": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Retrieve an Identity Provider by its Scheme",
        "parameters": [
          {
            "name": "scheme",
            "in": "path",
            "description": "The Identity Provider's Scheme",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityProviderReport"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "delete": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Delete an Identity Provider",
        "parameters": [
          {
            "name": "scheme",
            "in": "path",
            "description": "The Identity Provider to delete by its Scheme",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "NoContent"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/externalauthentication/idps/oidc": {
      "get": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Retrieve a set of summaries of the OIDC Identity Providers",
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "Filter by an OIDC Identity Provider's scheme",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number to retrieve from the full response list",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Number of items to retrieve",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcProviderReportSummaryQueryResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Create an OIDC Identity Provider",
        "requestBody": {
          "description": "The OIDC Identity Provider to add",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcProviderDetail"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    },
    "/api/externalauthentication/idps/oidc/{scheme}": {
      "get": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Retrieve an OIDC Identity Provider by its Scheme",
        "parameters": [
          {
            "name": "scheme",
            "in": "path",
            "description": "The OIDC Identity Provider's Scheme",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcProviderReport"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "put": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Update an OIDC Identity Provider",
        "parameters": [
          {
            "name": "scheme",
            "in": "path",
            "description": "The OIDC Identity Provider to update by its Scheme",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The OIDC Identity Provider to update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcProviderDetail"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/externalauthentication/idps/saml": {
      "get": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Retrieve a set of summaries of the SAML Identity Providers",
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "Filter by a SAML Identity Provider's scheme",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number to retrieve from the full response list",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Number of items to retrieve",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SamlProviderReportSummaryQueryResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Create a SAML Identity Provider",
        "requestBody": {
          "description": "The SAML Identity Provider to add",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SamlProviderDetail"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    },
    "/api/externalauthentication/idps/saml/{scheme}": {
      "get": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Retrieve a SAML Identity Provider by its Scheme",
        "parameters": [
          {
            "name": "scheme",
            "in": "path",
            "description": "The SAML Identity Provider's Scheme",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SamlProviderReport"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "put": {
        "tags": [
          "ExternalAuthentication"
        ],
        "summary": "Update a SAML Identity Provider",
        "parameters": [
          {
            "name": "scheme",
            "in": "path",
            "description": "The SAML Identity Provider to update by its Scheme",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The OIDC Identity Provider to update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SamlProviderDetail"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/usermanagement/sessions": {
      "get": {
        "tags": [
          "UserSession"
        ],
        "summary": "Get the User's sessions",
        "parameters": [
          {
            "name": "subjectId",
            "in": "query",
            "description": "The User's subject id",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSessionIEnumerableApiResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      },
      "delete": {
        "tags": [
          "UserSession"
        ],
        "summary": "Delete a User's session",
        "parameters": [
          {
            "name": "subjectId",
            "in": "query",
            "description": "The User's subject id",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "name": "sessionId",
            "in": "query",
            "description": "A User's session id",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Application": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "displayIndex": {
            "type": "integer",
            "format": "int32"
          },
          "headerName": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "shortName": {
            "type": "string",
            "nullable": true
          },
          "homePageUrl": {
            "type": "string",
            "nullable": true
          },
          "keepAliveUrl": {
            "type": "string",
            "nullable": true
          },
          "customPasswordResetUrl": {
            "type": "string",
            "nullable": true
          },
          "requiresTenant": {
            "type": "boolean"
          },
          "showInNavMenu": {
            "type": "boolean"
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "allowWithoutMatch": {
            "type": "boolean"
          },
          "checkUserAccessOnLogin": {
            "type": "boolean"
          },
          "slugOverrideOnly": {
            "type": "boolean"
          },
          "showLocalLoginAndSaml": {
            "type": "boolean"
          },
          "tenantLoginDefault": {
            "type": "boolean"
          },
          "selectionOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrandingReport": {
        "type": "object",
        "properties": {
          "primaryColor": {
            "type": "string",
            "nullable": true
          },
          "accentColor": {
            "type": "string",
            "nullable": true
          },
          "logoImageUrl": {
            "type": "string",
            "nullable": true
          },
          "backgroundImageUrl": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "application": {
            "type": "string",
            "nullable": true
          },
          "brandNameOverride": {
            "type": "string",
            "nullable": true
          },
          "emailFromOverride": {
            "type": "string",
            "nullable": true
          },
          "emailFromNameOverride": {
            "type": "string",
            "nullable": true
          },
          "brandHostname": {
            "type": "string",
            "nullable": true
          },
          "backgroundColor": {
            "type": "string",
            "nullable": true
          },
          "loginPageTitle": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChangeActiveRequest": {
        "type": "object",
        "properties": {
          "subjectId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Device": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/DeviceType"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "userAgent": {
            "type": "string",
            "nullable": true
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "lastActive": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "DeviceIEnumerableApiResult": {
        "type": "object",
        "properties": {
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Device"
            },
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "readOnly": true
          },
          "succeeded": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "DeviceType": {
        "enum": [
          "Session",
          "Mfa",
          "App"
        ],
        "type": "string"
      },
      "ErrorModel": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ForgotPasswordResponse": {
        "type": "object",
        "properties": {
          "subjectId": {
            "type": "string",
            "nullable": true
          },
          "tenant": {
            "type": "string",
            "nullable": true
          },
          "forgotPasswordToken": {
            "type": "string",
            "nullable": true
          },
          "correlationToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IdentityProviderReport": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "providerType": {
            "$ref": "#/components/schemas/ProviderType"
          },
          "tenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantReportSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IdentityProviderReportSummary": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "providerType": {
            "$ref": "#/components/schemas/ProviderType"
          },
          "tenantNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IdentityProviderReportSummaryQueryResult": {
        "type": "object",
        "properties": {
          "query": {
            "$ref": "#/components/schemas/Query"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IdentityProviderReportSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvitationRequest": {
        "required": [
          "email",
          "firstName",
          "lastName",
          "sendInvitation",
          "tenant",
          "userName"
        ],
        "type": "object",
        "properties": {
          "tenant": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "application": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "userName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "firstName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "lastName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "sendInvitation": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "InvitationResponse": {
        "type": "object",
        "properties": {
          "subjectId": {
            "type": "string",
            "nullable": true
          },
          "isExistingUser": {
            "type": "boolean"
          },
          "isExistingUserApplication": {
            "type": "boolean"
          },
          "invitationSent": {
            "type": "boolean"
          },
          "noInvitationNeeded": {
            "type": "boolean"
          },
          "emailConfirmationToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OidcProviderCommon": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "authority": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "clientSecret": {
            "type": "string",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OidcProviderDetail": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "authority": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "clientSecret": {
            "type": "string",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "tenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantCommon"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OidcProviderReport": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "authority": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "clientSecret": {
            "type": "string",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "tenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantReportSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OidcProviderReportSummary": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "authority": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "clientSecret": {
            "type": "string",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "tenantNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OidcProviderReportSummaryQueryResult": {
        "type": "object",
        "properties": {
          "query": {
            "$ref": "#/components/schemas/Query"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OidcProviderReportSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProviderType": {
        "enum": [
          "Oidc",
          "Saml"
        ],
        "type": "string"
      },
      "Query": {
        "type": "object",
        "properties": {
          "filter": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "start": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "SamlProviderCommon": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "metadataAddress": {
            "type": "string",
            "nullable": true
          },
          "spId": {
            "type": "string",
            "nullable": true
          },
          "idpId": {
            "type": "string",
            "nullable": true
          },
          "allowIdpInitiated": {
            "type": "boolean"
          },
          "signingCertificateString": {
            "type": "string",
            "nullable": true
          },
          "idpUrl": {
            "type": "string",
            "nullable": true
          },
          "isMigratedBirdDog": {
            "type": "boolean"
          },
          "idpInitiatedReturnUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SamlProviderDetail": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "metadataAddress": {
            "type": "string",
            "nullable": true
          },
          "spId": {
            "type": "string",
            "nullable": true
          },
          "idpId": {
            "type": "string",
            "nullable": true
          },
          "allowIdpInitiated": {
            "type": "boolean"
          },
          "signingCertificateString": {
            "type": "string",
            "nullable": true
          },
          "idpUrl": {
            "type": "string",
            "nullable": true
          },
          "isMigratedBirdDog": {
            "type": "boolean"
          },
          "idpInitiatedReturnUrl": {
            "type": "string",
            "nullable": true
          },
          "tenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantCommon"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SamlProviderReport": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "metadataAddress": {
            "type": "string",
            "nullable": true
          },
          "spId": {
            "type": "string",
            "nullable": true
          },
          "idpId": {
            "type": "string",
            "nullable": true
          },
          "allowIdpInitiated": {
            "type": "boolean"
          },
          "signingCertificateString": {
            "type": "string",
            "nullable": true
          },
          "idpUrl": {
            "type": "string",
            "nullable": true
          },
          "isMigratedBirdDog": {
            "type": "boolean"
          },
          "idpInitiatedReturnUrl": {
            "type": "string",
            "nullable": true
          },
          "tenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantReportSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SamlProviderReportSummary": {
        "required": [
          "scheme"
        ],
        "type": "object",
        "properties": {
          "scheme": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "subClaimType": {
            "type": "string",
            "nullable": true
          },
          "nameClaimType": {
            "type": "string",
            "nullable": true
          },
          "hasClaimMappings": {
            "type": "boolean"
          },
          "metadataAddress": {
            "type": "string",
            "nullable": true
          },
          "spId": {
            "type": "string",
            "nullable": true
          },
          "idpId": {
            "type": "string",
            "nullable": true
          },
          "allowIdpInitiated": {
            "type": "boolean"
          },
          "signingCertificateString": {
            "type": "string",
            "nullable": true
          },
          "idpUrl": {
            "type": "string",
            "nullable": true
          },
          "isMigratedBirdDog": {
            "type": "boolean"
          },
          "idpInitiatedReturnUrl": {
            "type": "string",
            "nullable": true
          },
          "tenantNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SamlProviderReportSummaryQueryResult": {
        "type": "object",
        "properties": {
          "query": {
            "$ref": "#/components/schemas/Query"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SamlProviderReportSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetEmailRequest": {
        "type": "object",
        "properties": {
          "subjectId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "email": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "isEmailConfirmed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SetPhoneNumberRequest": {
        "type": "object",
        "properties": {
          "subjectId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "maxLength": 30,
            "type": "string",
            "nullable": true
          },
          "isPhoneNumberConfirmed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TenantCommon": {
        "required": [
          "displayName",
          "id",
          "tag"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tag": {
            "minLength": 1,
            "type": "string"
          },
          "slugOverride": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "minLength": 1,
            "type": "string"
          },
          "allowLocalLogin": {
            "type": "boolean",
            "readOnly": true
          },
          "parentTenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantDetail": {
        "required": [
          "displayName",
          "id",
          "tag"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tag": {
            "minLength": 1,
            "type": "string"
          },
          "slugOverride": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "minLength": 1,
            "type": "string"
          },
          "allowLocalLogin": {
            "type": "boolean",
            "readOnly": true
          },
          "parentTenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "oidcProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OidcProviderCommon"
            },
            "nullable": true
          },
          "samlProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SamlProviderCommon"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantReport": {
        "required": [
          "displayName",
          "id",
          "tag"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tag": {
            "minLength": 1,
            "type": "string"
          },
          "slugOverride": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "minLength": 1,
            "type": "string"
          },
          "allowLocalLogin": {
            "type": "boolean",
            "readOnly": true
          },
          "parentTenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "oidcProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OidcProviderReportSummary"
            },
            "nullable": true
          },
          "samlProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SamlProviderReportSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantReportSummary": {
        "required": [
          "displayName",
          "id",
          "tag"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tag": {
            "minLength": 1,
            "type": "string"
          },
          "slugOverride": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "minLength": 1,
            "type": "string"
          },
          "allowLocalLogin": {
            "type": "boolean",
            "readOnly": true
          },
          "parentTenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "identityProviderSchemes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantReportSummaryQueryResult": {
        "type": "object",
        "properties": {
          "query": {
            "$ref": "#/components/schemas/Query"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantReportSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateUserDetailsRequest": {
        "type": "object",
        "properties": {
          "subjectId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "userName": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserDetails": {
        "type": "object",
        "properties": {
          "subjectId": {
            "type": "string",
            "nullable": true
          },
          "tenant": {
            "type": "string",
            "nullable": true
          },
          "applications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Application"
            },
            "nullable": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "phoneNumberConfirmed": {
            "type": "boolean"
          },
          "deleted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UserSession": {
        "type": "object",
        "properties": {
          "subjectId": {
            "type": "string",
            "nullable": true
          },
          "sessionId": {
            "type": "string",
            "nullable": true
          },
          "scheme": {
            "type": "string",
            "nullable": true
          },
          "userAgentId": {
            "type": "string",
            "nullable": true
          },
          "userAgentIp": {
            "type": "string",
            "nullable": true
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "renewed": {
            "type": "string",
            "format": "date-time"
          },
          "expires": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserSessionIEnumerableApiResult": {
        "type": "object",
        "properties": {
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserSession"
            },
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "readOnly": true
          },
          "succeeded": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "UserSummary": {
        "type": "object",
        "properties": {
          "subjectId": {
            "type": "string",
            "nullable": true
          },
          "tenant": {
            "type": "string",
            "nullable": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "phoneNumberConfirmed": {
            "type": "boolean"
          },
          "deleted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UserSummaryQueryResult": {
        "type": "object",
        "properties": {
          "query": {
            "$ref": "#/components/schemas/Query"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserSummary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Arcoro Identity Bearer": {
        "type": "http",
        "description": "Adds the Bearer authorization header to each request that requires it. Simply paste your token into the text field. (Do not include \"Bearer\" in the text field)",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "Arcoro Identity Bearer": [ ]
    }
  ],
  "tags": [
    {
      "name": "Admin"
    },
    {
      "name": "Application"
    },
    {
      "name": "Branding"
    },
    {
      "name": "DeviceManagement"
    },
    {
      "name": "ExternalAuthentication"
    },
    {
      "name": "UserSession"
    }
  ]
}