{
  "openapi": "3.0.4",
  "info": {
    "title": "Identiverse Dashboard API",
    "version": "v1"
  },
  "paths": {
    "/admin/jobs/creditor-asset-sync": {
      "post": {
        "tags": [
          "AdminJobs"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Applications": {
      "get": {
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "global",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "publicity",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Publicity"
              }
            }
          },
          {
            "name": "searchQuery",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDtoPaginatedEnumerable"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDtoPaginatedEnumerable"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDtoPaginatedEnumerable"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Applications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApplicationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApplicationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApplicationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedApplicationWithSecretDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedApplicationWithSecretDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedApplicationWithSecretDto"
                }
              }
            }
          }
        }
      }
    },
    "/Applications/{applicationId}": {
      "get": {
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditApplicationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EditApplicationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EditApplicationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        }
      }
    },
    "/Applications/{applicationId}/regenerate-secret": {
      "put": {
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expiration",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDto"
                }
              }
            }
          }
        }
      }
    },
    "/Applications/{applicationId}/organizations": {
      "get": {
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Applications/{applicationId}/organizations/{organizationId}": {
      "delete": {
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Applications/{applicationId}/organizations/{organizationId}/permissions": {
      "get": {
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ExternalSystems/{name}/orgs": {
      "get": {
        "tags": [
          "ExternalSystems"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ExternalSystemName"
            }
          },
          {
            "name": "searchQuery",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationType"
              }
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeDisabled",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ExternalSystems/{name}/{id}/orgs": {
      "get": {
        "tags": [
          "ExternalSystems"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ExternalSystemName"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeDisabled",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/FeatureFlags/{flagGroup}/users": {
      "get": {
        "tags": [
          "FeatureFlags"
        ],
        "parameters": [
          {
            "name": "flagGroup",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FeatureFlagGroup"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/FeatureFlags/feedback": {
      "post": {
        "tags": [
          "FeatureFlags"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Feedback"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Feedback"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Feedback"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Invites/{inviteCode}": {
      "get": {
        "tags": [
          "Invites"
        ],
        "parameters": [
          {
            "name": "inviteCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetInvitesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetInvitesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetInvitesDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Invites"
        ],
        "parameters": [
          {
            "name": "inviteCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Invites": {
      "get": {
        "tags": [
          "Invites"
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/GetInviteFilter"
            }
          },
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetInvitesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetInvitesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetInvitesDto"
                }
              }
            }
          }
        }
      }
    },
    "/Invites/{inviteCode}/signup": {
      "post": {
        "tags": [
          "Invites"
        ],
        "parameters": [
          {
            "name": "inviteCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostSignupInviteDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PostSignupInviteDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PostSignupInviteDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            }
          }
        }
      }
    },
    "/onboarding-contracts": {
      "get": {
        "tags": [
          "OnboardingContracts"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "OnboardingContracts"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "File",
                  "Name"
                ],
                "type": "object",
                "properties": {
                  "Name": {
                    "type": "string"
                  },
                  "Description": {
                    "type": "string"
                  },
                  "Comment": {
                    "type": "string"
                  },
                  "File": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "Name": {
                  "style": "form"
                },
                "Description": {
                  "style": "form"
                },
                "Comment": {
                  "style": "form"
                },
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/onboarding-contracts/{id}": {
      "get": {
        "tags": [
          "OnboardingContracts"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "OnboardingContracts"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditOnboardingContractDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EditOnboardingContractDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EditOnboardingContractDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/onboarding-contracts/{id}/versions": {
      "post": {
        "tags": [
          "OnboardingContracts"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "File"
                ],
                "type": "object",
                "properties": {
                  "Comment": {
                    "type": "string"
                  },
                  "File": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "Comment": {
                  "style": "form"
                },
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Onboardings/contracts": {
      "get": {
        "tags": [
          "Onboardings"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationOnboardingContractsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationOnboardingContractsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationOnboardingContractsDto"
                }
              }
            }
          }
        }
      }
    },
    "/Onboardings/{id}": {
      "get": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteOnboardingDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteOnboardingDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WriteOnboardingDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              }
            }
          }
        }
      }
    },
    "/Onboardings": {
      "get": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/OnboardingState"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "searchQuery",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MinimizedOnboardingDtoPaginatedEnumerable"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MinimizedOnboardingDtoPaginatedEnumerable"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MinimizedOnboardingDtoPaginatedEnumerable"
                }
              }
            }
          }
        }
      }
    },
    "/Onboardings/start": {
      "post": {
        "tags": [
          "Onboardings"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteOnboardingDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteOnboardingDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WriteOnboardingDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              }
            }
          }
        }
      }
    },
    "/Onboardings/start/email": {
      "post": {
        "tags": [
          "Onboardings"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteOnboardingDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteOnboardingDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WriteOnboardingDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              }
            }
          }
        }
      }
    },
    "/Onboardings/{id}/submit": {
      "post": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Onboardings/{id}/user": {
      "post": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteUserOnboardingDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteUserOnboardingDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WriteUserOnboardingDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              }
            }
          }
        }
      }
    },
    "/Onboardings/{id}/user/verifyEmail": {
      "post": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteUserOnboardingDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WriteUserOnboardingDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WriteUserOnboardingDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Onboardings/{id}/user/current": {
      "post": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDto"
                }
              }
            }
          }
        }
      }
    },
    "/Onboardings/{id}/sign/bankid/url": {
      "get": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "redirectUrl",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Onboardings/{id}/sign/bankid": {
      "post": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankIdAuthenticateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankIdAuthenticateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankIdAuthenticateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Onboardings/{id}/archive": {
      "put": {
        "tags": [
          "Onboardings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "searchQuery",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationType"
              }
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Orgs"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrgDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrgDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrgDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              }
            }
          }
        }
      }
    },
    "/Orgs/{id}": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditOrganizationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EditOrganizationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EditOrganizationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/departments": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "searchQuery",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserWithOrgRolesDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserWithOrgRolesDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserWithOrgRolesDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Orgs/{orgId}/relatedorgs": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "searchQuery",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserWithOrgRolesDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserWithOrgRolesDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserWithOrgRolesDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Orgs/{orgId}/members": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "roles",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "permissions",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserWithOrgRolesDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserWithOrgRolesDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserWithOrgRolesDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrgMemberDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrgMemberDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrgMemberDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserWithOrgRolesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserWithOrgRolesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserWithOrgRolesDto"
                }
              }
            }
          }
        }
      }
    },
    "/Orgs/{orgId}/members/{userId}": {
      "put": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrgMemberDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrgMemberDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrgMemberDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserWithOrgRolesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserWithOrgRolesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserWithOrgRolesDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/members/{userId}/permissions": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/roles": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrgRoleDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrgRoleDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrgRoleDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostRoleBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PostRoleBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PostRoleBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OrgRoleDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgRoleDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgRoleDto"
                }
              }
            }
          }
        }
      }
    },
    "/Orgs/{orgId}/roles/{roleId}": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "roleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OrgRoleWithScopesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgRoleWithScopesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgRoleWithScopesDto"
                }
              }
            }
          }
        }
      }
    },
    "/Orgs/{orgId}/externalSystems": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeDisabled",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalSystemDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalSystemDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalSystemDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalSystemDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalSystemDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalSystemDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/invites": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/GetInviteFilter"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetInvitesDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetInvitesDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetInvitesDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostOrganizationInvitesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PostOrganizationInvitesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PostOrganizationInvitesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/applications": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "global",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "publicity",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Publicity"
              }
            }
          },
          {
            "name": "searchQuery",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/applications/marketplace": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/app-installations": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/app-installations/{applicationId}": {
      "post": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InstallApplicationBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InstallApplicationBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InstallApplicationBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/contracts": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/onboardings/{onboardingId}/tasks/{taskId}": {
      "get": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "onboardingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/onboardings/{onboardingId}/tasks/{taskId}/approve": {
      "post": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "onboardingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessTaskBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessTaskBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessTaskBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Orgs/{orgId}/onboardings/{onboardingId}/tasks/{taskId}/reject": {
      "post": {
        "tags": [
          "Orgs"
        ],
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "onboardingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessTaskBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessTaskBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessTaskBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Scopes": {
      "get": {
        "tags": [
          "Scopes"
        ],
        "parameters": [
          {
            "name": "scopesFilter",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ScopesFilter"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScopeDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScopeDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScopeDto"
                }
              }
            }
          }
        }
      }
    },
    "/Scopes/{userRole}": {
      "get": {
        "tags": [
          "Scopes"
        ],
        "parameters": [
          {
            "name": "userRole",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/UserRole"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ScopeDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScopeDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScopeDto"
                }
              }
            }
          }
        }
      }
    },
    "/Token/verify": {
      "get": {
        "tags": [
          "Token"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Token": {
      "post": {
        "tags": [
          "Token"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "client_id",
                  "client_secret",
                  "grant_type"
                ],
                "type": "object",
                "properties": {
                  "client_id": {
                    "type": "string"
                  },
                  "client_secret": {
                    "type": "string"
                  },
                  "grant_type": {
                    "$ref": "#/components/schemas/TokenGrantType"
                  }
                }
              },
              "encoding": {
                "client_id": {
                  "style": "form"
                },
                "client_secret": {
                  "style": "form"
                },
                "grant_type": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Users": {
      "get": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Users"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            }
          }
        }
      }
    },
    "/Users/{userId}": {
      "put": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserDtoEnvelope"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDtoEnvelope"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDtoEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            }
          }
        }
      }
    },
    "/Users/{userId}/orgs": {
      "get": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "permission",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OrgWithRolesAndIsBanqsoftDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgWithRolesAndIsBanqsoftDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgWithRolesAndIsBanqsoftDto"
                }
              }
            }
          }
        }
      }
    },
    "/Users/{userId}/orgs/{orgId}/permissions": {
      "get": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OrgWithRolesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgWithRolesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgWithRolesDto"
                }
              }
            }
          }
        }
      }
    },
    "/Users/{userId}/settings/mfa": {
      "get": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MfaMethod"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MfaMethod"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MfaMethod"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMfaMethodRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMfaMethodRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMfaMethodRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MfaMethod"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MfaMethod"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MfaMethod"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Users/{userId}/settings/mfa/{mfaType}": {
      "delete": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "mfaType",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/MfaMethodType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/{userId}/invites": {
      "get": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/GetInviteFilter"
              }
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetInvitesDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetInvitesDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetInvitesDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Users/{userId}/invites/{inviteCode}/approve": {
      "post": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "inviteCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/{userId}/invites/{inviteCode}/decline": {
      "post": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inviteCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/{userId}/featureFlags": {
      "get": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserFeatureFlagGroupsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserFeatureFlagGroupsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserFeatureFlagGroupsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Verify": {
      "post": {
        "tags": [
          "Verify"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AuthRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AuthResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountantOrganizationDto": {
        "required": [
          "id",
          "name",
          "orgnumber"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApplicationDto": {
        "required": [
          "creationDate",
          "description",
          "globalScopes",
          "id",
          "installationScopes",
          "installationUrl",
          "name",
          "owner",
          "settingsUrl"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "globalScopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "installationScopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "owner": {
            "$ref": "#/components/schemas/OrganizationDto"
          },
          "publicity": {
            "$ref": "#/components/schemas/Publicity"
          },
          "webHookUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "settingsUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "installationUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creationDate": {
            "type": "string",
            "format": "date-time"
          },
          "installedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "salesforceErp": {
            "type": "string",
            "nullable": true
          },
          "faqUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "sendOnboardingLinkEmail": {
            "type": "boolean"
          },
          "onboardingMode": {
            "$ref": "#/components/schemas/OnboardingMode"
          },
          "onboardingContractId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "accountantOnboardingContractId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApplicationDtoPaginatedEnumerable": {
        "required": [
          "paginationDetails",
          "value"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApplicationDto"
            },
            "nullable": true
          },
          "paginationDetails": {
            "$ref": "#/components/schemas/PaginationDetails"
          }
        },
        "additionalProperties": false
      },
      "ApplicationOnboardingContractsDto": {
        "required": [
          "accountant",
          "standalone"
        ],
        "type": "object",
        "properties": {
          "accountant": {
            "$ref": "#/components/schemas/MinimizedContractDto"
          },
          "standalone": {
            "$ref": "#/components/schemas/MinimizedContractDto"
          }
        },
        "additionalProperties": false
      },
      "AuthRequest": {
        "required": [
          "accessToken",
          "permissions",
          "resources",
          "resourceType"
        ],
        "type": "object",
        "properties": {
          "accessToken": {
            "type": "string",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "resources": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "resourceType": {
            "$ref": "#/components/schemas/ResourceType"
          }
        },
        "additionalProperties": false
      },
      "AuthResponse": {
        "required": [
          "code",
          "validTo"
        ],
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/AuthResponseCode"
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "validTo": {
            "type": "string",
            "format": "date-time"
          },
          "subjectType": {
            "$ref": "#/components/schemas/SubjectType"
          }
        },
        "additionalProperties": false
      },
      "AuthResponseCode": {
        "enum": [
          "UNAUTHORIZED",
          "FORBIDDEN",
          "OK"
        ],
        "type": "string"
      },
      "BankIdAuthenticateRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "sessionState": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "redirectUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "nonce": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateApplicationDto": {
        "required": [
          "description",
          "globalScopes",
          "installationScopes",
          "name",
          "owner"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "globalScopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "installationScopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "owner": {
            "type": "string",
            "format": "uuid"
          },
          "publicity": {
            "$ref": "#/components/schemas/Publicity"
          },
          "webHookUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "settingsUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "installationUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "salesforceErp": {
            "type": "string",
            "nullable": true
          },
          "faqUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "sendOnboardingLinkEmail": {
            "type": "boolean"
          },
          "onboardingMode": {
            "$ref": "#/components/schemas/OnboardingMode"
          },
          "onboardingContractId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "accountantOnboardingContractId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateOrgDto": {
        "required": [
          "name",
          "orgnumber"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/OrganizationType"
          },
          "parent": {
            "$ref": "#/components/schemas/CreateOrgDtoParent"
          },
          "accountant": {
            "$ref": "#/components/schemas/CreateOrgDtoAccountant"
          },
          "externalSystems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateOrgExternalSystemsDto"
            },
            "nullable": true
          },
          "parentOrgId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "writeOnly": true
          }
        },
        "additionalProperties": false
      },
      "CreateOrgDtoAccountant": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "CreateOrgDtoParent": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "CreateOrgExternalSystemsDto": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/components/schemas/ExternalSystemName"
          },
          "id": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateOrgMemberDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WriteOrgMemberRole"
            },
            "nullable": true
          },
          "departments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WriteOrgMemberAccess"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateUserDto": {
        "required": [
          "email",
          "firstname",
          "lastname"
        ],
        "type": "object",
        "properties": {
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "lastname": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "forceResetPassword": {
            "type": "boolean"
          },
          "phone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatedApplicationWithSecretDto": {
        "type": "object",
        "properties": {
          "application": {
            "$ref": "#/components/schemas/ApplicationDto"
          },
          "secret": {
            "type": "string",
            "nullable": true
          },
          "hint": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EditApplicationDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "global": {
            "type": "boolean",
            "nullable": true
          },
          "publicity": {
            "$ref": "#/components/schemas/Publicity"
          },
          "webHookUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "settingsUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "installationUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "salesforceErp": {
            "type": "string",
            "nullable": true
          },
          "faqUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "sendOnboardingLinkEmail": {
            "type": "boolean",
            "nullable": true
          },
          "onboardingMode": {
            "$ref": "#/components/schemas/OnboardingMode"
          },
          "onboardingContractId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "accountantOnboardingContractId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EditOnboardingContractDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EditOrganizationDto": {
        "required": [
          "id",
          "name",
          "orgnumber"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/OrganizationType"
          },
          "parent": {
            "$ref": "#/components/schemas/CreateOrgDtoParent"
          },
          "accountant": {
            "$ref": "#/components/schemas/CreateOrgDtoAccountant"
          }
        },
        "additionalProperties": false
      },
      "ExternalSystemDto": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/components/schemas/ExternalSystemName"
          },
          "id": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExternalSystemName": {
        "enum": [
          "APTIC",
          "SEND",
          "INVOICIA",
          "BANQSOFT",
          "AMILI_CUSTOMER_NUMBER",
          "VISMA_NET_COMPANY_ID",
          "CRONE_CREDITOR_ID",
          "SEND_TWO",
          "AUTO_INVOICE"
        ],
        "type": "string"
      },
      "FeatureFlagGroup": {
        "enum": [
          "STAKEHOLDER",
          "ALPHA",
          "BETA"
        ],
        "type": "string"
      },
      "Feedback": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetInviteFilter": {
        "enum": [
          "PENDING",
          "EXPIRED",
          "DELETED",
          "ACCEPTED"
        ],
        "type": "string"
      },
      "GetInvitesDto": {
        "type": "object",
        "properties": {
          "inviteCode": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "organization": {
            "$ref": "#/components/schemas/OrganizationDto"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "existingUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrgRoleDto"
            },
            "nullable": true
          },
          "departments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrgDepartmentDto"
            },
            "nullable": true
          },
          "inviterName": {
            "type": "string",
            "nullable": true
          },
          "expires": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "InstallApplicationBody": {
        "type": "object",
        "properties": {
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MfaMethod": {
        "required": [
          "identifier",
          "primary",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/MfaMethodType"
          },
          "primary": {
            "type": "boolean"
          },
          "identifier": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MfaMethodType": {
        "enum": [
          "PHONE",
          "TOTP"
        ],
        "type": "string"
      },
      "MinimizedContractDto": {
        "required": [
          "name",
          "url"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MinimizedOnboardingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/OnboardingState"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "updatedDate": {
            "type": "string",
            "format": "date-time"
          },
          "organizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrganizationOnboardingDto"
            },
            "nullable": true
          },
          "user": {
            "$ref": "#/components/schemas/UserOnboardingDto"
          },
          "applicationId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "MinimizedOnboardingDtoPaginatedEnumerable": {
        "required": [
          "paginationDetails",
          "value"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MinimizedOnboardingDto"
            },
            "nullable": true
          },
          "paginationDetails": {
            "$ref": "#/components/schemas/PaginationDetails"
          }
        },
        "additionalProperties": false
      },
      "OnboardingDto": {
        "required": [
          "applicationId",
          "createdDate",
          "emailReceivers",
          "id",
          "onboardingUrl",
          "organizations",
          "requiredContracts",
          "rowVersion",
          "status",
          "updatedDate",
          "user"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "rowVersion": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/OnboardingState"
          },
          "onboardingUrl": {
            "type": "string",
            "nullable": true
          },
          "applicationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "requiredContracts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MinimizedContractDto"
            },
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "updatedDate": {
            "type": "string",
            "format": "date-time"
          },
          "organizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrganizationOnboardingDto"
            },
            "nullable": true
          },
          "user": {
            "$ref": "#/components/schemas/UserOnboardingDto"
          },
          "emailReceivers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "callbackUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OnboardingMode": {
        "enum": [
          "INTERACTIVE",
          "HEADLESS"
        ],
        "type": "string"
      },
      "OnboardingState": {
        "enum": [
          "PENDING",
          "SIGNED",
          "COMPLETED",
          "ARCHIVED"
        ],
        "type": "string"
      },
      "OrgDepartmentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrgRoleDto": {
        "required": [
          "description",
          "name",
          "organizationId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrgRoleWithScopesDto": {
        "required": [
          "description",
          "name",
          "organizationId",
          "scopes"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrgWithRolesAndIsBanqsoftDto": {
        "required": [
          "isBanqsoft",
          "name",
          "orgnumber",
          "roles",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/OrganizationType"
          },
          "parent": {
            "$ref": "#/components/schemas/ParentOrganizationDto"
          },
          "accountant": {
            "$ref": "#/components/schemas/AccountantOrganizationDto"
          },
          "parentOrgId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "isDepartment": {
            "type": "boolean",
            "readOnly": true
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrgRoleDto"
            },
            "nullable": true
          },
          "isBanqsoft": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "OrgWithRolesDto": {
        "required": [
          "name",
          "orgnumber",
          "roles",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/OrganizationType"
          },
          "parent": {
            "$ref": "#/components/schemas/ParentOrganizationDto"
          },
          "accountant": {
            "$ref": "#/components/schemas/AccountantOrganizationDto"
          },
          "parentOrgId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "isDepartment": {
            "type": "boolean",
            "readOnly": true
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrgRoleDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrganizatinOnboardingAccountantDto": {
        "required": [
          "contactEmail",
          "id",
          "name",
          "orgnumber"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "contactEmail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrganizationDto": {
        "required": [
          "id",
          "name",
          "orgnumber",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/OrganizationType"
          },
          "parent": {
            "$ref": "#/components/schemas/ParentOrganizationDto"
          },
          "accountant": {
            "$ref": "#/components/schemas/AccountantOrganizationDto"
          },
          "isDepartment": {
            "type": "boolean",
            "readOnly": true
          },
          "parentOrgId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "OrganizationOnboardingAddressDto": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrganizationOnboardingDto": {
        "required": [
          "accountant",
          "address",
          "bankAccountNumber",
          "id",
          "lockedFields",
          "name",
          "orgnumber",
          "selected",
          "vatApplicable"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "selected": {
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          },
          "bankAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/OrganizationType"
          },
          "accountant": {
            "$ref": "#/components/schemas/OrganizatinOnboardingAccountantDto"
          },
          "lockedFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "vatApplicable": {
            "type": "boolean"
          },
          "address": {
            "$ref": "#/components/schemas/OrganizationOnboardingAddressDto"
          }
        },
        "additionalProperties": false
      },
      "OrganizationType": {
        "enum": [
          "COMPANY",
          "DEPARTMENT",
          "ACCOUNTANT",
          "UNSPECIFIED"
        ],
        "type": "string"
      },
      "PaginationDetails": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ParentOrganizationDto": {
        "required": [
          "id",
          "name",
          "orgnumber"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostOrganizationInvitesDto": {
        "required": [
          "departments",
          "email",
          "roles"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WriteOrgMemberRole"
            },
            "nullable": true
          },
          "departments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WriteOrgMemberAccess"
            },
            "nullable": true
          },
          "product": {
            "$ref": "#/components/schemas/Product"
          }
        },
        "additionalProperties": false
      },
      "PostRoleBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostSignupInviteDto": {
        "required": [
          "firstName",
          "lastName",
          "password"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "ProcessTaskBody": {
        "type": "object",
        "properties": {
          "userToken": {
            "type": "string",
            "nullable": true
          },
          "userRole": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Product": {
        "enum": [
          "AmiliPortal",
          "Home"
        ],
        "type": "string"
      },
      "Publicity": {
        "enum": [
          "PUBLIC",
          "PRIVATE"
        ],
        "type": "string"
      },
      "ResourceType": {
        "enum": [
          "NONE",
          "APP",
          "ORGANIZATION",
          "USER",
          "Test"
        ],
        "type": "string"
      },
      "ScopeDto": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ScopesFilter": {
        "enum": [
          "ALL",
          "ORG_ROLE_ONLY"
        ],
        "type": "string"
      },
      "SubjectType": {
        "enum": [
          "NONE",
          "USER",
          "APPLICATION"
        ],
        "type": "string"
      },
      "Summary": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TokenGrantType": {
        "enum": [
          "client_credentials"
        ],
        "type": "string"
      },
      "TokenResponse": {
        "required": [
          "access_token",
          "expires_in",
          "expires_on",
          "not_before",
          "resource",
          "token_type"
        ],
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "nullable": true
          },
          "token_type": {
            "type": "string",
            "nullable": true
          },
          "not_before": {
            "type": "integer",
            "format": "int32"
          },
          "expires_in": {
            "type": "integer",
            "format": "int32"
          },
          "expires_on": {
            "type": "integer",
            "format": "int32"
          },
          "resource": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateMfaMethodRequest": {
        "type": "object",
        "properties": {
          "primaryMethod": {
            "$ref": "#/components/schemas/MfaMethodType"
          }
        },
        "additionalProperties": false
      },
      "UpdateOrgMemberDto": {
        "type": "object",
        "properties": {
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WriteOrgMemberRole"
            },
            "nullable": true
          },
          "departments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WriteOrgMemberAccess"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateUserDto": {
        "type": "object",
        "properties": {
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "lastname": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserDto": {
        "required": [
          "email",
          "firstname",
          "id",
          "lastname",
          "role"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "lastname": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/UserRole"
          }
        },
        "additionalProperties": false
      },
      "UserDtoEnvelope": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "summary": {
            "$ref": "#/components/schemas/Summary"
          }
        },
        "additionalProperties": { }
      },
      "UserFeatureFlagGroupsDto": {
        "type": "object",
        "properties": {
          "stakeholder": {
            "type": "boolean"
          },
          "alpha": {
            "type": "boolean"
          },
          "beta": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UserOnboardingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "lastname": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserRole": {
        "enum": [
          "ADMINISTRATOR",
          "SUPPORT_AGENT",
          "INTERNAL_VIEW",
          "CUSTOMER"
        ],
        "type": "string"
      },
      "UserWithOrgRolesDto": {
        "required": [
          "departments",
          "email",
          "firstname",
          "id",
          "lastname",
          "organization",
          "roles"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "lastname": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "organization": {
            "$ref": "#/components/schemas/OrgDepartmentDto"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrgRoleDto"
            },
            "nullable": true
          },
          "departments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrgDepartmentDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WriteOnboardingDto": {
        "type": "object",
        "properties": {
          "organizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WriteOrganizationOnboardingDto"
            },
            "nullable": true
          },
          "user": {
            "$ref": "#/components/schemas/WriteUserOnboardingDto"
          },
          "emailReceivers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "callbackUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WriteOrgMemberAccess": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "WriteOrgMemberRole": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "WriteOrganizatioOnboardingAddressDto": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WriteOrganizationOnboardingAccountantDto": {
        "required": [
          "orgnumber"
        ],
        "type": "object",
        "properties": {
          "orgnumber": {
            "type": "string",
            "nullable": true
          },
          "contactEmail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WriteOrganizationOnboardingDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "selected": {
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "vatApplicable": {
            "type": "boolean"
          },
          "orgnumber": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/OrganizationType"
          },
          "accountant": {
            "$ref": "#/components/schemas/WriteOrganizationOnboardingAccountantDto"
          },
          "address": {
            "$ref": "#/components/schemas/WriteOrganizatioOnboardingAddressDto"
          },
          "bankAccountNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WriteUserOnboardingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "lastname": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "emailVerificationCode": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "Authorization header using the Bearer scheme",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}