{
  "openapi": "3.1.0",
  "info": {
    "title": "MongoCamp Server API",
    "version": "2.0.0"
  },
  "paths": {
    "/auth/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Login User",
        "description": "Login for one user and return Login Information",
        "operationId": "login",
        "requestBody": {
          "description": "Login Information for your Users",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Login"
              },
              "example": {
                "userId": "myUser",
                "password": "privatePassword"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/auth/logout": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Logout User",
        "description": "Logout by bearer Token",
        "operationId": "logout",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          },
          {
            "httpAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Auth"
        ],
        "summary": "Logout User",
        "description": "Logout by bearer Token",
        "operationId": "logoutByDelete",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          },
          {
            "httpAuth": []
          }
        ]
      }
    },
    "/auth/refresh-token": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Refresh token of a session",
        "description": "3.0.0, AUTH_SESSIONS only: exchanges the refresh token (body refreshToken, or the httpOnly cookie mongocamp_refresh) for a new access token and a new refresh token (rotation, the cookie is set again). A refresh token that was exchanged before revokes the session (401, code 4014); the previous one within AUTH_REFRESH_GRACE_DURATION gets an access token without a new refresh token.",
        "operationId": "refreshSessionToken",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResult"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/auth/sessions": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Sessions of the user",
        "description": "3.0.0, AUTH_SESSIONS only: the active sessions of the logged in user; current marks the one of this token.",
        "operationId": "listSessions",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Session"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Auth"
        ],
        "summary": "Revoke all sessions",
        "description": "3.0.0, AUTH_SESSIONS only: ends every session of the logged in user and their access tokens (logout everywhere).",
        "operationId": "revokeSessions",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/auth/sessions/{sessionId}": {
      "delete": {
        "tags": [
          "Auth"
        ],
        "summary": "Revoke a session",
        "description": "3.0.0, AUTH_SESSIONS only: ends one session of the logged in user and its access tokens; 404 for an unknown one.",
        "operationId": "revokeSession",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "description": "The id of the session",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/auth/register": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Register",
        "description": "3.0.0, AUTH_REGISTRATION=open or invite: a new user with an e-mail address (open: unverified, a verification mail; invite: with the token of an invitation, verified). 202 whether or not the address or user exists.",
        "operationId": "registerUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/auth/verify-email": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Verify the e-mail address",
        "description": "3.0.0, AUTH_REGISTRATION: marks the address of the token as verified; 400 (code 4403) for a used, expired or unknown token.",
        "operationId": "verifyEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/auth/request-verification": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Request a verification mail",
        "description": "3.0.0, AUTH_REGISTRATION: sends the verification mail again; 202 for every address.",
        "operationId": "requestEmailVerification",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/auth/invite": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Invite a user",
        "description": "3.0.0, AUTH_REGISTRATION=invite, administrators: a mail with a registration link for the address, with the given roles.",
        "operationId": "inviteUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/auth/request-password-reset": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Request a password reset",
        "description": "3.0.0, AUTH_PASSWORD_RESET: a mail with a reset link to the user with this address; 202 for every address.",
        "operationId": "requestPasswordReset",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/auth/reset-password": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Reset the password",
        "description": "3.0.0, AUTH_PASSWORD_RESET: sets the password of the token user; its tokens and sessions end. 400 (code 4403) for a used, expired or unknown token.",
        "operationId": "resetPassword",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/auth/passwordless/request": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Request a login link",
        "description": "3.0.0, AUTH_PASSWORDLESS: a mail with a login link and a 6-digit code to the user with this address; 202 for every address.",
        "operationId": "requestLoginLink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/auth/passwordless/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Login with a link or code",
        "description": "3.0.0, AUTH_PASSWORDLESS: logs in with the token of the link, or the address and the code (5 attempts, then the code ends; failed codes count for RATE_LIMIT_LOGIN). The address counts as verified. 400 (code 4403) for a used, expired, unknown or wrong one.",
        "operationId": "loginWithLink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordlessLoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResult"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/auth/token/refresh": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Refresh User",
        "description": "Refresh Token and return Login Information. A new token is issued on every call, the bearer token that was used for the call stays valid for a grace period (AUTH_REFRESH_GRACE_DURATION, default 60 seconds) and is invalid afterwards.",
        "operationId": "refreshToken",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResult"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          },
          {
            "httpAuth": []
          }
        ]
      }
    },
    "/auth/profile/password": {
      "patch": {
        "tags": [
          "Auth"
        ],
        "summary": "Update Password",
        "description": "Change Password of logged in User. The other tokens of the user are revoked, the bearer token that was used for the call stays valid.",
        "operationId": "updatePassword",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          },
          {
            "httpAuth": []
          }
        ]
      }
    },
    "/auth/profile/apikey": {
      "patch": {
        "tags": [
          "Auth"
        ],
        "summary": "Update ApiKey",
        "description": "Generate new ApiKey of logged in User",
        "operationId": "generateNewApiKey",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_String"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/auth/profile": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "User Profile",
        "description": "Return the User Profile of the logged in user",
        "operationId": "userProfile",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserProfile"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Auth"
        ],
        "summary": "Update own Profile",
        "description": "3.1.0: the logged in user changes its own displayName; null (or \"\") removes it. Other fields (email, roles, disabled) are changed by an administrator (PATCH /admin/users/{userId}).",
        "operationId": "updateProfile",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserProfile"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/auth/permissions": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Collection permissions",
        "description": "Return the resolved rights (read, write, administrate) of the logged in user for the collections of the default database",
        "operationId": "userPermissions",
        "parameters": [
          {
            "name": "collection",
            "in": "query",
            "description": "Resolve the rights for this collection only (also if the user has none)",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CollectionPermission"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/auth/authenticated": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Check Authentication",
        "description": "Check whether the request is authenticated",
        "operationId": "isAuthenticated",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/admin/users": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "List Users",
        "description": "List all Users or filtered",
        "operationId": "listUsers",
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "Filter by a part of the userId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserProfile"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Add User",
        "description": "Add a new User",
        "operationId": "addUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserInformation"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserProfile"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/admin/users/{userId}/apikey": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Update ApiKey",
        "description": "Generate a new API key for the user",
        "operationId": "generateNewApiKeyForUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "UserId to Update",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_String"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/admin/users/{userId}/password": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Update Password",
        "description": "Change Password of User. All tokens of the user are revoked.",
        "operationId": "updatePasswordForUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "UserId to Update",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/admin/users/{userId}/roles": {
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Update User Roles",
        "description": "Update Roles of User",
        "operationId": "updateRolesForUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "UserId to Update",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserProfile"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/admin/users/{userId}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "UserProfile for userId",
        "description": "Get UserProfile for user",
        "operationId": "getUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "UserId to search",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserProfile"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Update the profile of a User",
        "description": "3.0.0: changes the optional profile fields email, emailVerified, displayName and disabled; null (or \"\") removes email or displayName. A disabled user cannot log in, all its tokens are revoked. 409 (code 4093) for an e-mail address of another user.",
        "operationId": "updateUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "UserId to change",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserProfile"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "Delete User",
        "description": "Delete User. All tokens of the user are revoked. 404 for a user that does not exist (2.0.0).",
        "operationId": "deleteUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "UserId to Delete",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/admin/roles": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "List Roles",
        "description": "List all Roles or filtered",
        "operationId": "listRoles",
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "Filter by a part of the userId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Role"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Add Role",
        "description": "Add a new Role",
        "operationId": "addRole",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Role"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/admin/roles/{roleName}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get Role",
        "description": "Get Role by RoleKey",
        "operationId": "getRole",
        "parameters": [
          {
            "name": "roleName",
            "in": "path",
            "description": "RoleKey to search",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "Delete Role",
        "description": "Delete Role. 404 for a role that does not exist (2.0.0).",
        "operationId": "deleteRole",
        "parameters": [
          {
            "name": "roleName",
            "in": "path",
            "description": "RoleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Admin"
        ],
        "summary": "Update Role",
        "description": "Update Role",
        "operationId": "updateRole",
        "parameters": [
          {
            "name": "roleName",
            "in": "path",
            "description": "RoleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/buckets/{bucketName}/files/search": {
      "post": {
        "tags": [
          "File"
        ],
        "summary": "Search Files in Bucket",
        "description": "The files of the bucket with a Lucene filter (2.6.0), like the search of documents: filter, sort and projection in the request body (no URL limit), fields of the files collection (filename, length, uploadDate, metadata.*). The operators of FILTER_OPERATORS_DENIED are refused; PAGING_MAX_ROWS applies.",
        "operationId": "searchFiles",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          },
          {
            "name": "count",
            "in": "query",
            "description": "How the result is counted: exact (default) or none (no count headers, no count query)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "exact",
                "none"
              ],
              "default": "exact"
            },
            "example": "exact"
          },
          {
            "name": "after",
            "in": "query",
            "description": "Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": ""
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              },
              "example": {
                "filter": "filename:report* AND metadata.year:2024",
                "sort": [
                  "-uploadDate"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              },
              "x-pagination-next": {
                "description": "Cursor of the next page (only with the parameter after, missing on the last page)",
                "required": false,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileInformation"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/buckets/{bucketName}/files": {
      "get": {
        "tags": [
          "File"
        ],
        "summary": "Files in Bucket",
        "description": "Get Files paginated from given Bucket",
        "operationId": "listFiles",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "MongoDB filter query, all documents by default",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": {}
          },
          {
            "name": "sort",
            "in": "query",
            "description": "MongoDB sorting",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": {}
          },
          {
            "name": "projection",
            "in": "query",
            "description": "MongoDB projection",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": {}
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          },
          {
            "name": "count",
            "in": "query",
            "description": "How the result is counted: exact (default) or none (no count headers, no count query)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "exact",
                "none"
              ],
              "default": "exact"
            },
            "example": "exact"
          },
          {
            "name": "after",
            "in": "query",
            "description": "Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              },
              "x-pagination-next": {
                "description": "Cursor of the next page (only with the parameter after, missing on the last page)",
                "required": false,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileInformation"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "File"
        ],
        "summary": "Insert File",
        "description": "Insert one File in given Bucket",
        "operationId": "insertFile",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileName",
            "in": "query",
            "description": "override filename of uploaded file",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Request to create new entries from a file",
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/FileUploadForm"
              },
              "example": "Part(file,FileRange(/tmp/prefix8894699850730298430suffix,None),Map(filename -> prefix8894699850730298430suffix),List(Content-Type: application/octet-stream))"
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsertResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "post": {
        "tags": [
          "File"
        ],
        "summary": "Files in Bucket",
        "description": "Alternative to GET Route for more complex queries and URL max. Length",
        "operationId": "findFiles",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          },
          {
            "name": "count",
            "in": "query",
            "description": "How the result is counted: exact (default) or none (no count headers, no count query)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "exact",
                "none"
              ],
              "default": "exact"
            },
            "example": "exact"
          },
          {
            "name": "after",
            "in": "query",
            "description": "Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": ""
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MongoFindRequest"
              },
              "example": {
                "filter": {
                  "filename": "myfile.json",
                  "uploadDate": {
                    "$gte": "2022-03-15T00:00:00.000Z"
                  }
                },
                "sort": {
                  "uploadDate": -1
                },
                "projection": {}
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              },
              "x-pagination-next": {
                "description": "Cursor of the next page (only with the parameter after, missing on the last page)",
                "required": false,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileInformation"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body, Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/buckets/{bucketName}/files/{fileId}": {
      "get": {
        "tags": [
          "File"
        ],
        "summary": "FileInformation from Bucket",
        "description": "Get one FileInformation from given Bucket",
        "operationId": "getFileInformation",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "description": "fileId to read",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInformation"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "File"
        ],
        "summary": "Delete File from Bucket",
        "description": "Delete one File from given Bucket. 404 for a file that does not exist (2.0.0).",
        "operationId": "deleteFile",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "description": "fileId to delete",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "File"
        ],
        "summary": "Update FileInformation in Bucket",
        "description": "Replace the metadata and optionally the file name",
        "operationId": "updateFileInformation",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "description": "fileId to update",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFileInformationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/buckets/{bucketName}/files/{fileId}/file": {
      "get": {
        "tags": [
          "File"
        ],
        "summary": "File from Bucket",
        "description": "Get File from given Bucket",
        "operationId": "getFile",
        "parameters": [
          {
            "name": "w",
            "in": "query",
            "description": "Image variant (2.11.0, declared buckets with variants): one of the declared widths",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "h",
            "in": "query",
            "description": "Image variant: one of the declared heights",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fit",
            "in": "query",
            "description": "Image variant: how the image fits w and h (default cover)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "cover",
                "contain",
                "fill",
                "inside",
                "outside"
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "Image variant: one of the declared formats",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "webp",
                "avif",
                "jpeg",
                "png"
              ]
            }
          },
          {
            "name": "preset",
            "in": "query",
            "description": "Image variant: a declared preset (no other variant parameters)",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "description": "FileId to read",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "Content-Length": {
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              },
              "Content-Disposition": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Content-Type": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "cache-control": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/buckets": {
      "get": {
        "tags": [
          "Bucket"
        ],
        "summary": "List of Buckets",
        "description": "List of all Buckets of the default database",
        "operationId": "listBuckets",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/buckets/{bucketName}": {
      "get": {
        "tags": [
          "Bucket"
        ],
        "summary": "Bucket Information",
        "description": "All Information about a single Bucket. 404 for a bucket that does not exist (2.0.0).",
        "operationId": "getBucket",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BucketInformation"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Bucket"
        ],
        "summary": "Delete Bucket",
        "description": "Delete a given Bucket. 404 for a bucket that does not exist (2.0.0).",
        "operationId": "deleteBucket",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/buckets/{bucketName}/clear": {
      "delete": {
        "tags": [
          "Bucket"
        ],
        "summary": "Clear Bucket",
        "description": "Delete all Files in Bucket. 404 for a bucket that does not exist (2.0.0).",
        "operationId": "clearBucket",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/batch": {
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Several Writes in one Request",
        "description": "Inserts, replaces, partial updates and deletes of documents of any collections in one request (2.10.0). Every operation is checked like its own route (grants, access rules, hooks, validation, behaviours). With `atomic` (default) all operations run in one transaction, all or nothing; it needs a replica set or a sharded cluster (501, code 5012 otherwise). With `atomic: false` they run one after another and each result is reported (an error stops nothing). At most 1000 operations (413, code 4134).",
        "operationId": "batch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The result of every operation in the order of the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "List of Collections",
        "description": "List of all Collections of the default database",
        "operationId": "listCollections",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/info": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Information of all Collections",
        "description": "The numbers of all Collections of the default database (or of the database in `database`) that the user may read in one request (count, size, storage size, average size of a document, number and size of the indices). A Collection without statistics, for example a view, is listed with available false. A database that does not exist is a 404 for an administrator and an empty list for every other user: they cannot find out which databases exist.",
        "operationId": "listCollectionInformation",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "description": "Only the Collections with these names, by default all Collections that the user may read. With `database` the names are the names inside that database (`locations`), the full name (`geodata:locations`) of that database is accepted too.",
            "required": false,
            "schema": {
              "default": [],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "database",
            "in": "query",
            "description": "The Collections of this database, by default the default database. The names in the answer are the full names (`geodata:locations`), as they are used in the paths of the other routes.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CollectionSummary"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Collection Information",
        "description": "All Information about a single Collection. 404 for a collection that does not exist (2.0.0).",
        "operationId": "getCollectionInformation",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeDetails",
            "in": "query",
            "description": "Include all details for the Collection",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionStatus"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter includeDetails",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Collection"
        ],
        "summary": "Create Collection",
        "description": "Create a Collection with options: capped (`capped`, `sizeInBytes`, `maxDocuments`), a validator (`validator`, `validationLevel` off, moderate or strict, `validationAction` error or warn) and a collation. Without a body an empty Collection is created. The administrate grant for the name is needed; a name of another database is `database:name`. An existing Collection is a conflict (409), reserved names (system collections, the prefix of the server, the collections of a bucket) and options that do not fit are 400.",
        "operationId": "createCollection",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The options of the new Collection, all of them are optional",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectionOptions"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCollectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Collection"
        ],
        "summary": "Delete Collection",
        "description": "Delete a given Collection. 404 for a collection that does not exist (2.0.0).",
        "operationId": "deleteCollection",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/fields": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Collection Fields",
        "description": "List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).",
        "operationId": "getCollectionFields",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sampleSize",
            "in": "query",
            "description": "Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.",
            "required": false,
            "schema": {
              "default": 1000,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            },
            "example": 1000
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter sampleSize",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/fields/detail": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Fields of a Collection with types",
        "description": "All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents. 404 for a collection that does not exist (2.0.0).",
        "operationId": "getFieldDetails",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sampleSize",
            "in": "query",
            "description": "Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.",
            "required": false,
            "schema": {
              "default": 1000,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            },
            "example": 1000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "How deep nested objects are analysed",
            "required": false,
            "schema": {
              "default": 3,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FieldInfo"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter sampleSize, Invalid value for: query parameter depth",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/schema": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Collection Fields",
        "description": "List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).",
        "operationId": "getJsonSchema",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sampleSize",
            "in": "query",
            "description": "Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.",
            "required": false,
            "schema": {
              "default": 1000,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            },
            "example": 1000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "How deep nested objects are analysed",
            "required": false,
            "schema": {
              "default": 3,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter sampleSize, Invalid value for: query parameter depth",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/schema/analysis": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Collection Fields",
        "description": "List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).",
        "operationId": "getSchemaAnalysis",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sampleSize",
            "in": "query",
            "description": "Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.",
            "required": false,
            "schema": {
              "default": 1000,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            },
            "example": 1000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "How deep nested objects are analysed",
            "required": false,
            "schema": {
              "default": 3,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchemaAnalysis"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter sampleSize, Invalid value for: query parameter depth",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/schema/validator": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Suggested Validator",
        "description": "A $jsonSchema validator made of a sample of the documents (2.3.0): the BSON types per field, nested objects, array items and the required fields. Usable as validator of the collection options or of a declaration. 404 for a collection that does not exist.",
        "operationId": "getSuggestedValidator",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sampleSize",
            "in": "query",
            "description": "Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.",
            "required": false,
            "schema": {
              "default": 1000,
              "minimum": 0,
              "type": "integer",
              "format": "int32"
            },
            "example": 1000
          },
          {
            "name": "depth",
            "in": "query",
            "description": "How deep nested objects are analysed",
            "required": false,
            "schema": {
              "default": 3,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "requiredThreshold",
            "in": "query",
            "description": "The share of the objects (0 to 1) a field has to be in to be required; 1 by default (in every object of the sample).",
            "required": false,
            "schema": {
              "default": 1,
              "minimum": 0,
              "maximum": 1,
              "type": "number",
              "format": "double"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestedValidator"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter sampleSize, Invalid value for: query parameter depth, Invalid value for: query parameter requiredThreshold",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/rename": {
      "post": {
        "tags": [
          "Collection"
        ],
        "summary": "Rename Collection",
        "description": "Rename a Collection in the database, with its Documents and Indices. The target is a name in the database of the Collection. The administrate grant for the Collection and the write grant for the target are needed. An existing target is a conflict (409), unless dropTarget is true and the user has the administrate grant for it: it is replaced then.",
        "operationId": "renameCollection",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameRequest"
              },
              "example": {
                "target": "newName",
                "dropTarget": false
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenameResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/options": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Collection Options",
        "description": "The options of a Collection: capped, the validator with its level and action, the collation. 404 for a Collection that does not exist.",
        "operationId": "getCollectionOptions",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionOptions"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Collection"
        ],
        "summary": "Change the Validation of a Collection",
        "description": "Change the validator, the validationLevel and the validationAction of a Collection (collMod), the answer is the options after the change. A capped Collection and the collation cannot be changed after the creation (400). The administrate grant is needed.",
        "operationId": "modifyCollectionOptions",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectionOptions"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionOptions"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/copy": {
      "post": {
        "tags": [
          "Collection"
        ],
        "summary": "Copy Collection",
        "description": "Copy a Collection in the database, optionally only the documents that match a Lucene filter, with its indices (withIndexes, true by default). The target is a name in the database of the Collection. The read grant for the Collection and the write grant for the target are needed. An existing target is a conflict (409), unless dropTarget is true and the user has the administrate grant for it: it is replaced when the copy is complete. The copy is made in one request, a big collection takes its time.",
        "operationId": "copyCollection",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyRequest"
              },
              "example": {
                "target": "copyOfCollection",
                "filter": "type:company",
                "withIndexes": true,
                "dropTarget": false
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/clear": {
      "delete": {
        "tags": [
          "Collection"
        ],
        "summary": "Clear Collection",
        "description": "Delete all Documents in Collection. 404 for a collection that does not exist (2.0.0).",
        "operationId": "clearCollection",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/aggregate": {
      "post": {
        "tags": [
          "Collection"
        ],
        "summary": "Aggregate in Collection",
        "description": "Aggregate in a given Collection. The value of a stage is any JSON value. Operators that run JavaScript on the database server or write to collections (`$function`, `$accumulator`, `$where`, `$out`, `$merge`, `$currentOp`, `$listSessions`, `$collStats`, `$indexStats` by default, configured with AGGREGATION_STAGES_DENIED) are refused with 403.",
        "operationId": "aggregate",
        "parameters": [
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          },
          {
            "name": "count",
            "in": "query",
            "description": "How the result is counted: exact (default) or none (no count headers, no count query)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "exact",
                "none"
              ],
              "default": "exact"
            },
            "example": "exact"
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter Query like on the list of documents, applied as the first stage of the pipeline. Not possible for a pipeline that starts with $geoNear, $search or $vectorSearch.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}; canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}); a text that looks like a date is {\"$string\": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types).",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ],
              "default": "relaxed"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MongoAggregateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Map_Any"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body, Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/distinct/{field}": {
      "post": {
        "tags": [
          "Collection"
        ],
        "summary": "Distinct in Collection",
        "description": "Distinct for Field in a given Collection",
        "operationId": "distinct",
        "parameters": [
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "field",
            "in": "path",
            "description": "The field for your distinct Request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          },
          {
            "name": "count",
            "in": "query",
            "description": "How the result is counted: exact (default) or none (no count headers, no count query)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "exact",
                "none"
              ],
              "default": "exact"
            },
            "example": "exact"
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "plain (default) or relaxed / canonical (2.1.0): the values as MongoDB Extended JSON, so ObjectIds, dates, decimals and integers beyond 2^53 keep their types ({\"$numberLong\": ...} instead of a bare number that JavaScript rounds)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ],
              "default": "plain"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {}
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/settings": {
      "get": {
        "tags": [
          "Application"
        ],
        "summary": "System Settings",
        "description": "Returns the Settings of the running MongoCamp Application.",
        "operationId": "settings",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettingsResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/configurations": {
      "get": {
        "tags": [
          "Application"
        ],
        "summary": "List Configurations",
        "description": "List all Configurations or filtered",
        "operationId": "listConfigurations",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MongoCampConfiguration"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/configurations/{configurationKey}": {
      "get": {
        "tags": [
          "Application"
        ],
        "summary": "Configuration for configurationKey",
        "description": "Get Configuration for key. 404 for a configuration key that does not exist (2.0.0).",
        "operationId": "getConfig",
        "parameters": [
          {
            "name": "configurationKey",
            "in": "path",
            "description": "configurationKey to get",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MongoCampConfiguration"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Application"
        ],
        "summary": "Update Configuration",
        "description": "Update Configuration with the value. 404 for an unknown key, 400 for a key that is read at the start only or set by the environment (2.0.0).",
        "operationId": "updateConfiguration",
        "parameters": [
          {
            "name": "configurationKey",
            "in": "path",
            "description": "configurationKey to edit",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonValue_Any"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Application"
        ],
        "summary": "Reset Configuration",
        "description": "Reset the Configuration to its default value (2.6.0), at once for a key that needs no restart. 404 for an unknown key, 400 for a key that is read at the start only, set by the environment or has a generated default (AUTH_SECRET).",
        "operationId": "resetConfiguration",
        "parameters": [
          {
            "name": "configurationKey",
            "in": "path",
            "description": "configurationKey to reset",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: path parameter configurationKey",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system": {
      "delete": {
        "tags": [
          "Application"
        ],
        "summary": "Shutdown MongoCamp",
        "description": "Shutdown the running MongoCamp Application. CLI Mode will automatically restart the Application.",
        "operationId": "shutdown",
        "parameters": [
          {
            "name": "force",
            "in": "query",
            "description": "Shutdown Server and don't send reboot event.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter force",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/databases": {
      "get": {
        "tags": [
          "Database"
        ],
        "summary": "List of Databases",
        "description": "List of all Databases",
        "operationId": "ListDatabases",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/databases/infos": {
      "get": {
        "tags": [
          "Database"
        ],
        "summary": "List of Database Infos",
        "description": "List of all Databases Infos",
        "operationId": "databaseInfos",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatabaseInfo"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/databases/{databaseName}": {
      "get": {
        "tags": [
          "Database"
        ],
        "summary": "Database Infos of selected Database",
        "description": "All Information about given Database",
        "operationId": "getDatabaseInfo",
        "parameters": [
          {
            "name": "databaseName",
            "in": "path",
            "description": "Name of your Database",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatabaseInfo"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Database"
        ],
        "summary": "Delete Database",
        "description": "Delete given Database. 404 for a database that does not exist (2.0.0).",
        "operationId": "deleteDatabase",
        "parameters": [
          {
            "name": "databaseName",
            "in": "path",
            "description": "Name of your Database",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/databases/{databaseName}/collections": {
      "get": {
        "tags": [
          "Database",
          "Collection"
        ],
        "summary": "List of Collections",
        "description": "List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).",
        "operationId": "listCollectionsByDatabase",
        "parameters": [
          {
            "name": "databaseName",
            "in": "path",
            "description": "Name of your Database",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents": {
      "get": {
        "tags": [
          "Document"
        ],
        "summary": "Documents in Collection",
        "description": "Get Documents paginated from given Collection",
        "operationId": "listDocuments",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Full-text search (2.10.0, collections declared with search): the words; the best matches first unless sort is given. 400 for a collection without search.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "References to expand (2.4.0): declared ref fields of the collection, repeated or comma separated, at most 5. Each becomes the referenced document, read with the grant and the read scope of its collection (null, or left out of an array, when the caller cannot read it). 400 for a field that is no reference.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "drafts",
            "in": "query",
            "description": "The working copies (2.11.0, collections declared with drafts), also of documents that were never published; needs the write grant (and drafts.readers or the update rule), 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "MongoDB filter query, all documents by default",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "MongoDB sorting",
            "required": false,
            "schema": {
              "default": [],
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "example": []
          },
          {
            "name": "projection",
            "in": "query",
            "description": "MongoDB projection",
            "required": false,
            "schema": {
              "default": [],
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "example": []
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          },
          {
            "name": "count",
            "in": "query",
            "description": "How the result is counted: exact (default) or none (no count headers, no count query)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "exact",
                "none"
              ],
              "default": "exact"
            },
            "example": "exact"
          },
          {
            "name": "after",
            "in": "query",
            "description": "Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": ""
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}; canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}); a text that looks like a date is {\"$string\": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types).",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ],
              "default": "relaxed"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              },
              "x-pagination-next": {
                "description": "Cursor of the next page (only with the parameter after, missing on the last page)",
                "required": false,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Map_Any"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Document"
        ],
        "summary": "Insert Document",
        "description": "Insert one Document in given Collection",
        "operationId": "insert",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "JSON Representation for your Document.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Map_Any"
              },
              "example": {
                "key1": "value",
                "key2": true,
                "key3": {
                  "creationDate": "2026-11-15T20:14:28.832Z"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsertResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Documents in Collection",
        "description": "Alternative to GET Route for more complex queries and URL max. Length",
        "operationId": "find",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Full-text search (2.10.0, collections declared with search): the words; the best matches first unless sort is given. 400 for a collection without search.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "References to expand (2.4.0): declared ref fields of the collection, repeated or comma separated, at most 5. Each becomes the referenced document, read with the grant and the read scope of its collection (null, or left out of an array, when the caller cannot read it). 400 for a field that is no reference.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "drafts",
            "in": "query",
            "description": "The working copies (2.11.0, collections declared with drafts), also of documents that were never published; needs the write grant (and drafts.readers or the update rule), 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          },
          {
            "name": "count",
            "in": "query",
            "description": "How the result is counted: exact (default) or none (no count headers, no count query)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "exact",
                "none"
              ],
              "default": "exact"
            },
            "example": "exact"
          },
          {
            "name": "after",
            "in": "query",
            "description": "Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": ""
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}; canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}); a text that looks like a date is {\"$string\": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types).",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ],
              "default": "relaxed"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MongoFindRequest"
              },
              "example": {
                "filter": {
                  "additionalProp1": "string",
                  "additionalProp2": 123
                },
                "sort": {
                  "additionalProp2": -1
                },
                "projection": {
                  "additionalProp1": 1,
                  "additionalProp2": 1
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              },
              "x-pagination-next": {
                "description": "Cursor of the next page (only with the parameter after, missing on the last page)",
                "required": false,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Map_Any"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body, Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/count": {
      "get": {
        "tags": [
          "Document"
        ],
        "summary": "Count Documents in Collection",
        "description": "Count the Documents of the given Collection that match the filter without loading them",
        "operationId": "countDocuments",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Full-text search (2.10.0, collections declared with search): the words; the best matches first unless sort is given. 400 for a collection without search.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "drafts",
            "in": "query",
            "description": "The working copies (2.11.0, collections declared with drafts), also of documents that were never published; needs the write grant (and drafts.readers or the update rule), 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter Query like on the list of documents, by default all documents are counted",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CountResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Count Documents in Collection (filter in the body)",
        "description": "Count the Documents of the given Collection that match the filter without loading them",
        "operationId": "countDocumentsByBody",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Full-text search (2.10.0, collections declared with search): the words; the best matches first unless sort is given. 400 for a collection without search.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "drafts",
            "in": "query",
            "description": "The working copies (2.11.0, collections declared with drafts), also of documents that were never published; needs the write grant (and drafts.readers or the update rule), 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CountRequest"
              },
              "example": {
                "filter": "country:DE"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CountResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/search": {
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Search Documents in Collection",
        "description": "The list of documents with the parameters in the request body: for filters that are too long for the URL (a URL of more than 2048 characters is refused by the server before the request is handled, without CORS headers). The filter is a Lucene query like in the list, the answer and the pagination headers are the same.",
        "operationId": "searchDocuments",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Full-text search (2.10.0, collections declared with search): the words; the best matches first unless sort is given. 400 for a collection without search.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "References to expand (2.4.0): declared ref fields of the collection, repeated or comma separated, at most 5. Each becomes the referenced document, read with the grant and the read scope of its collection (null, or left out of an array, when the caller cannot read it). 400 for a field that is no reference.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "drafts",
            "in": "query",
            "description": "The working copies (2.11.0, collections declared with drafts), also of documents that were never published; needs the write grant (and drafts.readers or the update rule), 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1
          },
          {
            "name": "count",
            "in": "query",
            "description": "How the result is counted: exact (default) or none (no count headers, no count query)",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "exact",
                "none"
              ],
              "default": "exact"
            },
            "example": "exact"
          },
          {
            "name": "after",
            "in": "query",
            "description": "Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": ""
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}; canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}); a text that looks like a date is {\"$string\": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types).",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ],
              "default": "relaxed"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              },
              "example": {
                "filter": "name:John AND age:[18 TO 65]",
                "sort": [
                  "-age"
                ],
                "projection": [
                  "name",
                  "age"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "x-pagination-count-rows": {
                "description": "count all elements",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 200
              },
              "x-pagination-rows-per-page": {
                "description": "Count elements per page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 20
              },
              "x-pagination-current-page": {
                "description": "Current page",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 1
              },
              "x-pagination-count-pages": {
                "description": "Count pages",
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                },
                "example": 10
              },
              "x-pagination-next": {
                "description": "Cursor of the next page (only with the parameter after, missing on the last page)",
                "required": false,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Map_Any"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body, Invalid value for: query parameter rowsPerPage, Invalid value for: query parameter page",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/export": {
      "get": {
        "tags": [
          "Document"
        ],
        "summary": "Export Documents of a Collection",
        "description": "Download the documents of a Collection as a stream: ndjson (one JSON document per line), json (one array) or csv (a header line, nested values as JSON, a text with a comma, a quote or a line break in quotes). The documents are written while the database delivers them, the memory of the server does not depend on the size of the Collection. The columns of a csv export are the fields of `projection`, by default the fields of the first 1000 documents. With extendedJson the types of the values are explicit. A failure while the stream is running ends the stream, the status is 200 by then; send trailer=true for an end marker. POST takes the filter in the body (no URL limit).",
        "operationId": "exportDocuments",
        "parameters": [
          {
            "name": "expand",
            "in": "query",
            "description": "References to expand (2.4.0): declared ref fields of the collection, repeated or comma separated, at most 5. Each becomes the referenced document, read with the grant and the read scope of its collection (null, or left out of an array, when the caller cannot read it). 400 for a field that is no reference.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "ndjson (one JSON document per line), json (one array) or csv",
            "required": false,
            "schema": {
              "default": "ndjson",
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter Query like on the list of documents, by default all documents are exported",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sorting like on the list of documents, a leading - sorts descending",
            "required": false,
            "schema": {
              "default": [],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "projection",
            "in": "query",
            "description": "The fields to export, for csv they are the columns in this order",
            "required": false,
            "schema": {
              "default": [],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The greatest number of documents, by default all",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}; canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}); a text that looks like a date is {\"$string\": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types). The default of a csv export is plain.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ],
              "default": "relaxed"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          },
          {
            "name": "trailer",
            "in": "query",
            "description": "true (2.1.0): the export ends with a marker, so a cut-off stream can be told from a complete one. ndjson: a last line {\"$end\":true,\"count\":n}, or {\"$error\":\"...\"} when the stream fails; json: the array is followed by nothing on success and the stream ends without \"]\" on failure (the marker is the closing bracket); csv: a last line \"# end n\" or \"# error ...\". Default false",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "Content-Disposition": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter limit",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Export Documents of a Collection (filter in the body)",
        "description": "Download the documents of a Collection as a stream: ndjson (one JSON document per line), json (one array) or csv (a header line, nested values as JSON, a text with a comma, a quote or a line break in quotes). The documents are written while the database delivers them, the memory of the server does not depend on the size of the Collection. The columns of a csv export are the fields of `projection`, by default the fields of the first 1000 documents. With extendedJson the types of the values are explicit. A failure while the stream is running ends the stream, the status is 200 by then; send trailer=true for an end marker. POST takes the filter in the body (no URL limit).",
        "operationId": "exportDocumentsByBody",
        "parameters": [
          {
            "name": "expand",
            "in": "query",
            "description": "References to expand (2.4.0): declared ref fields of the collection, repeated or comma separated, at most 5. Each becomes the referenced document, read with the grant and the read scope of its collection (null, or left out of an array, when the caller cannot read it). 400 for a field that is no reference.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "ndjson (one JSON document per line), json (one array) or csv",
            "required": false,
            "schema": {
              "default": "ndjson",
              "type": "string"
            }
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}; canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}); a text that looks like a date is {\"$string\": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types). The default of a csv export is plain.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ],
              "default": "relaxed"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          },
          {
            "name": "trailer",
            "in": "query",
            "description": "true (2.1.0): the export ends with a marker, so a cut-off stream can be told from a complete one. ndjson: a last line {\"$end\":true,\"count\":n}, or {\"$error\":\"...\"} when the stream fails; json: the array is followed by nothing on success and the stream ends without \"]\" on failure (the marker is the closing bracket); csv: a last line \"# end n\" or \"# error ...\". Default false",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportRequest"
              },
              "example": {
                "filter": "country:DE AND age:[18 TO 65]",
                "sort": [
                  "-age"
                ],
                "projection": [
                  "name",
                  "age"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "Content-Disposition": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter limit",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/import": {
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Import Documents into a Collection",
        "description": "Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (`errors`, `index` is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit. Since 2.0.0 an import that is aborted (413, a line that is too long, a database or connection error) stores nothing: the documents stored before the abort are deleted again, x-error-additional-info says so.",
        "operationId": "importDocuments",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "text/plain": {
              "schema": {
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/many/insert": {
      "put": {
        "tags": [
          "Document"
        ],
        "summary": "Insert many Documents",
        "description": "Insert many documents in given Collection",
        "operationId": "insertMany",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ordered",
            "in": "query",
            "description": "true (default): the insert stops at the first document that fails (answer 409 for a duplicate key). false: all documents that can be stored are stored, the others are listed in `errors` of the answer.",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Map_Any"
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsertResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body, Invalid value for: query parameter ordered",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/many/update": {
      "patch": {
        "tags": [
          "Document"
        ],
        "summary": "Update many in Collection",
        "description": "Update many Documents in given Collection. `filter` of the body is a MongoDB filter, or since 3.0.0 `{ \"$lucene\": \"<query>\" }` for a Lucene filter too long for the query parameter filter; one of both.",
        "operationId": "updateMany",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "matchAll",
            "in": "query",
            "description": "Allow an empty filter, that matches all documents of the collection",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter Query like on the list of documents, as an alternative to the filter of the request body. Use only one of both.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "x-codegen-request-body-name": "updateRequest",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateManyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body, Invalid value for: query parameter matchAll",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/many/delete": {
      "delete": {
        "tags": [
          "Document"
        ],
        "summary": "Delete Many in Collection",
        "description": "Delete many Documents in given Collection. The body is the filter (a MongoDB filter), or since 3.0.0 `{ \"$lucene\": \"<query>\" }` for a Lucene filter too long for the query parameter filter; one of both.",
        "operationId": "deleteMany",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "matchAll",
            "in": "query",
            "description": "Allow an empty filter, that matches all documents of the collection",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter Query like on the list of documents, as an alternative to the filter of the request body. Use only one of both.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "description": "true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Map_Any"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body, Invalid value for: query parameter matchAll",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/{documentId}": {
      "get": {
        "tags": [
          "Document"
        ],
        "summary": "Document from Collection",
        "description": "Get one Document from given Collection",
        "operationId": "getDocument",
        "parameters": [
          {
            "name": "expand",
            "in": "query",
            "description": "References to expand (2.4.0): declared ref fields of the collection, repeated or comma separated, at most 5. Each becomes the referenced document, read with the grant and the read scope of its collection (null, or left out of an array, when the caller cannot read it). 400 for a field that is no reference.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "withDeleted",
            "in": "query",
            "description": "Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "drafts",
            "in": "query",
            "description": "The working copies (2.11.0, collections declared with drafts), also of documents that were never published; needs the write grant (and drafts.readers or the update rule), 403 otherwise.",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId to read",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}; canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}); a text that looks like a date is {\"$string\": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types).",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ],
              "default": "relaxed"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Map_Any"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Document"
        ],
        "summary": "Delete Document from Collection",
        "description": "Delete one Document from given Collection. 404 for a document that does not exist (2.0.0).",
        "operationId": "delete",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId to delete",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Document"
        ],
        "summary": "Update Document in Collection",
        "description": "'Replace' one Document with the new document from Request in Collection. 404 for a document that does not exist (2.0.0).",
        "operationId": "update",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId to update",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "2.8.0 in the spec (read since 2.6.0): the mode of the document current of a version conflict (409, code 4092): relaxed (default) or canonical Extended JSON, or plain.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Map_Any"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/{documentId}/partial": {
      "patch": {
        "tags": [
          "Document"
        ],
        "summary": "Update Document Parts in Collection",
        "description": "Update the document Parts with the values from the Request. 404 for a document that does not exist (2.0.0).",
        "operationId": "updateDocumentPartial",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId to update",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "2.8.0 in the spec (read since 2.6.0): the mode of the document current of a version conflict (409, code 4092): relaxed (default) or canonical Extended JSON, or plain.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Map_Any"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/{documentId}/restore": {
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Restore a soft-deleted Document",
        "description": "Removes the deleted mark of a document of a collection declared with softDelete (2.3.0). 404 for a collection without soft delete and for a document that is missing or not deleted.",
        "operationId": "restoreDocument",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId to restore",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/views/{viewName}": {
      "post": {
        "tags": [
          "Collection"
        ],
        "summary": "Run a declared View",
        "description": "Runs a view of a declared collection (2.10.0): the parameters of the body are validated by the schema of the view (400 with issues), the pipeline of the server runs after the read scope of the caller, without the fields the caller may not read; collections of $lookup / $unionWith need the read grant. 404 for an unknown view.",
        "operationId": "runView",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "viewName",
            "in": "path",
            "description": "The name of the view",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "description": "Count elements per page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Requested page of the ResultSets",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "How the result is counted: exact (default), estimated or none (2.0.0).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "The Extended JSON mode of the answer: relaxed (default), canonical or plain.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViewRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "The documents of the view.",
            "headers": {
              "x-pagination-count-rows": {
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              },
              "x-pagination-rows-per-page": {
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              },
              "x-pagination-current-page": {
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              },
              "x-pagination-count-pages": {
                "required": false,
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/watch": {
      "get": {
        "tags": [
          "Document"
        ],
        "summary": "Live Updates of a Collection",
        "description": "The changes of the documents as Server-Sent Events (2.3.0), scoped like every read and by `filter`. Events: `upsert` (data `{ id, document }`, a document that is in the scope), `remove` (data `{ id }`, deleted or left the scope), `reset` (the client loads again). With `followRefs=true` and `expand` (2.10.0) a change of a referenced document sends `upsert` (without id) for the documents that refer to it, `refresh` when more than 100 do (the client loads again). The `id` of an event is the resume token: send it as `Last-Event-ID` to resume. A comment every 25 seconds. Needs a replica set or a sharded cluster: 501 (code 5011) otherwise; at most `WATCH_MAX_STREAMS` streams per instance (503).",
        "operationId": "watchDocuments",
        "parameters": [
          {
            "name": "expand",
            "in": "query",
            "description": "References to expand in each upsert (2.4.0), like on the list of documents. A change of a referenced document sends no event, unless followRefs (2.10.0).",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "followRefs",
            "in": "query",
            "description": "With expand (2.10.0): a change of a referenced document sends upsert for the documents that refer to it (refresh beyond 100).",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Lucene filter of the documents to watch.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filterCaseInsensitive",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Last-Event-ID",
            "in": "header",
            "description": "The id of the last event the client got, to resume after it.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "text/event-stream",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/mongodb/collections/{collectionName}/documents/{documentId}/history": {
      "get": {
        "tags": [
          "Document"
        ],
        "summary": "History of a Document",
        "description": "The audit records of a document of a collection declared with audit, newest first (2.3.0). For users who can read the document; administrators of the collection also get the history of deleted documents. 404 for a collection without audit.",
        "operationId": "getDocumentHistory",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId of the history",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "relaxed (default), canonical or plain, as for the documents.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditEntry"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/history": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "History of a Collection",
        "description": "The audit records of a collection declared with audit, newest first (2.3.0); for the administrators of the collection. 404 for a collection without audit.",
        "operationId": "getCollectionHistory",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "Only records from this time on (ISO date or time).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operation",
            "in": "query",
            "description": "Only records of this operation.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "insert",
                "replace",
                "update",
                "delete",
                "softDelete",
                "restore",
                "publish",
                "unpublish",
                "discardDraft"
              ]
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "extendedJson",
            "in": "query",
            "description": "relaxed (default), canonical or plain, as for the documents.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "relaxed",
                "canonical",
                "plain"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditEntry"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/declaration": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Declaration of a Collection",
        "description": "What a client needs to know of a declared collection (2.3.0): fields it must not send, version and owner fields, behaviours. 404 for a collection that is not declared.",
        "operationId": "getCollectionDeclaration",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionDeclaration"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/index": {
      "get": {
        "tags": [
          "Index"
        ],
        "summary": "List Indices for Collection",
        "description": "List all Indices for given Collection",
        "operationId": "listIndices",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MongoIndex"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Index"
        ],
        "summary": "Create Index for Collection",
        "description": "Create Index for given Collection",
        "operationId": "createIndex",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndexCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/index/stats": {
      "get": {
        "tags": [
          "Index"
        ],
        "summary": "Index usage for Collection",
        "description": "How often every Index of the given Collection was used since the counting started. Replaces the aggregation stage $indexStats, which is denied by default because its result contains the address of the database server. 404 for a collection that does not exist (2.0.0).",
        "operationId": "indexStats",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IndexUsage"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/index/details": {
      "get": {
        "tags": [
          "Index"
        ],
        "summary": "Indices with details for Collection",
        "description": "All Indices of the given Collection as the database reports them: the keys in the order of the index (`direction` is 1, -1 or the type of the key, a text index lists its fields), unique, sparse, hidden, partial filter, collation, weights, default language and expiration.",
        "operationId": "indexDetails",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IndexInfo"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/index/{indexName}": {
      "get": {
        "tags": [
          "Index"
        ],
        "summary": "Index for Collection",
        "description": "Index by Name for given Collection. 404 for an index that does not exist (2.0.0).",
        "operationId": "index",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "indexName",
            "in": "path",
            "description": "The name of your Index",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MongoIndex"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Index"
        ],
        "summary": "Delete Index",
        "description": "Delete Index by Name for given Collection",
        "operationId": "deleteIndex",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "indexName",
            "in": "path",
            "description": "The name of your Index",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexDropResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/index/field/{fieldName}": {
      "put": {
        "tags": [
          "Index"
        ],
        "summary": "Create Index by Field for Collection",
        "description": "Create Index by Field for given Collection",
        "operationId": "createIndexForField",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fieldName",
            "in": "path",
            "description": "The field Name for your index",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortAscending",
            "in": "query",
            "description": "Sort your index ascending",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndexOptionsRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter sortAscending, Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/index/field/{fieldName}/unique": {
      "put": {
        "tags": [
          "Index"
        ],
        "summary": "Create Unique Index",
        "description": "Create Unique Index by Field for given Collection",
        "operationId": "createUniqueIndex",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fieldName",
            "in": "path",
            "description": "The field Name for your index",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortAscending",
            "in": "query",
            "description": "Sort your index ascending",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "Name for your index",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter sortAscending",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/index/field/{fieldName}/{duration}/expiring": {
      "put": {
        "tags": [
          "Index"
        ],
        "summary": "Create expiring Index by Field for Collection",
        "description": "Create expiring Index by Field for given Collection",
        "operationId": "createExpiringIndex",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fieldName",
            "in": "path",
            "description": "The field Name for your index",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "duration",
            "in": "path",
            "description": "Expiring duration: a number with a unit, e.g. 15d, 6h, 30m, 90s or 1.5 minutes",
            "required": true,
            "schema": {
              "default": "15d",
              "type": "string"
            }
          },
          {
            "name": "sortAscending",
            "in": "query",
            "description": "Sort your index ascending",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "Name for your index",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: query parameter sortAscending",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/index/field/{fieldName}/text": {
      "put": {
        "tags": [
          "Index"
        ],
        "summary": "Create text index by field for collection",
        "description": "Create text index by field for given collection",
        "operationId": "createTextIndex",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fieldName",
            "in": "path",
            "description": "The field Name for your index",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndexOptionsRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndexCreateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/version": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Version Information",
        "description": "Version Info of the MongoCamp API",
        "operationId": "version",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Version"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/system/jobs": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "Registered Jobs",
        "description": "Returns the List of all registered Jobs with full information",
        "operationId": "jobsList",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JobInformation"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Jobs"
        ],
        "summary": "Register Job",
        "description": "Register a Job and return the JobInformation with next schedule information",
        "operationId": "registerJob",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobConfig"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobInformation"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/jobs/{jobGroup}/{jobName}": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Execute Job",
        "description": "Execute scheduled Job manually",
        "operationId": "executeJob",
        "parameters": [
          {
            "name": "jobGroup",
            "in": "path",
            "description": "Group Name of the Job",
            "required": true,
            "schema": {
              "default": "Default",
              "type": "string"
            }
          },
          {
            "name": "jobName",
            "in": "path",
            "description": "Name of the Job",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Jobs"
        ],
        "summary": "Delete Job",
        "description": "Delete Job and reload all Job Information. 404 for a job that does not exist (2.0.0).",
        "operationId": "deleteJob",
        "parameters": [
          {
            "name": "jobGroup",
            "in": "path",
            "description": "Group Name of the Job",
            "required": true,
            "schema": {
              "default": "Default",
              "type": "string"
            }
          },
          {
            "name": "jobName",
            "in": "path",
            "description": "Name of the Job",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Jobs"
        ],
        "summary": "Update Job",
        "description": "Add Job and get JobInformation back",
        "operationId": "updateJob",
        "parameters": [
          {
            "name": "jobGroup",
            "in": "path",
            "description": "Group Name of the Job",
            "required": true,
            "schema": {
              "default": "Default",
              "type": "string"
            }
          },
          {
            "name": "jobName",
            "in": "path",
            "description": "Name of the Job",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobConfig"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobInformation"
                }
              }
            }
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/jobs/classes": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "summary": "Possible Jobs",
        "description": "Returns the List of possible job classes",
        "operationId": "possibleJobsList",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/cluster": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Registered Jobs",
        "description": "Returns the List of all registered Jobs with full information",
        "operationId": "viewCluster",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClusterInformation"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/info": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "System Information",
        "description": "Information about the system the server is connected to: the version of the MongoDB server",
        "operationId": "systemInfo",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SystemInfo"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/stats": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "System Statistics",
        "description": "The numbers of the database server for a server overview: uptime, connections, operation counters (totals since the start of the database server) and the state of the replica set. A database user without the role clusterMonitor gives partial true and no uptime, connections and counters; a server that is not part of a replica set has no replicaSet. No host names or addresses.",
        "operationId": "systemStats",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SystemStats"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/capabilities": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "System Capabilities",
        "description": "What this server can do, for every logged in user: the names of the features, the major version of MongoDB, the limits (size of an import, status of a request without the grant) and the operators that an aggregation refuses. A server that has no such route is an older version.",
        "operationId": "systemCapabilities",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Capabilities"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/migrations": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "List Migrations",
        "description": "Every defined and recorded migration with its state: applied, pending, failed or changed (applied, but its source changed since) (2.11.0). Empty without migrations. For administrators.",
        "operationId": "listMigrations",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MigrationStatus"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/migrations/run": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Run Migrations",
        "description": "Applies the pending migrations in the order of their ids, up to to (2.11.0); waits for another instance that runs them (lock). A failed migration is recorded and answered as error. For administrators.",
        "operationId": "runMigrations",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MigrationRunRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MigrationRunResult"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/{documentId}/history/{auditId}/restore": {
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Restore a Version of a Document",
        "description": "Puts a document back to its state after (state=before: before) an audit record of a collection declared with audit (2.11.0): a replace through validation, behaviours and access rules (a versioned document gets a new version), or an insert when the document was deleted. Audited as restore. 400 for a collection without audit or a record without that state, 404 for a record of another document or a document outside the scope of the caller. Needs write and read.",
        "operationId": "restoreDocumentVersion",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId to restore",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "auditId",
            "in": "path",
            "description": "The _id of the audit record (hex)",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "description": "after (default) or before the audited write",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "after",
                "before"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/{documentId}/publish": {
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Publish a Document",
        "description": "Makes the working copy of a document of a collection declared with drafts its published state (2.11.0), validated like a write; sets _status published, publishedAt and publishedBy. Audited as publish. 400 for a collection without drafts.",
        "operationId": "publishDocument",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId to publish",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/{documentId}/unpublish": {
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Unpublish a Document",
        "description": "Makes a document of a collection declared with drafts a draft again (2.11.0): its working copy becomes the document, readers no longer see it. Audited as unpublish.",
        "operationId": "unpublishDocument",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId to unpublish",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/collections/{collectionName}/documents/{documentId}/discard-draft": {
      "post": {
        "tags": [
          "Document"
        ],
        "summary": "Discard the Draft of a Document",
        "description": "Drops the pending changes of a published document of a collection declared with drafts (2.11.0). 400 when there are none. Audited as discardDraft.",
        "operationId": "discardDocumentDraft",
        "parameters": [
          {
            "name": "collectionName",
            "in": "path",
            "description": "The name of your MongoDb Collection",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "in": "path",
            "description": "DocumentId of the draft",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResponse"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/buckets/{bucketName}/files/{fileId}/link": {
      "post": {
        "tags": [
          "File"
        ],
        "summary": "Signed Link of a File",
        "description": "A signed, expiring link that downloads the file (or an image variant of a declared bucket) without authentication (2.11.0): GET /files/signed/{token}. expiresIn in seconds or as duration (default 1h, at most FILE_LINK_MAX_DURATION). Needs the read grant of the bucket and its read rules.",
        "operationId": "createFileLink",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of the bucket",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "description": "The id of the file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileLinkRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileLink"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/mongodb/buckets/{bucketName}/links": {
      "delete": {
        "tags": [
          "Bucket"
        ],
        "summary": "Revoke the Signed Links of a Bucket",
        "description": "A new salt for the signed links of the bucket (2.11.0): every link issued before answers 403. Needs the write grant of the bucket.",
        "operationId": "revokeFileLinks",
        "parameters": [
          {
            "name": "bucketName",
            "in": "path",
            "description": "The name of the bucket",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/files/signed/{token}": {
      "get": {
        "tags": [
          "File"
        ],
        "summary": "Download by Signed Link",
        "description": "The file (or the image variant) of a signed link, without authentication (2.11.0). 403 for a changed or revoked link, 410 for an expired one.",
        "operationId": "getSignedFile",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "The token of the link",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/health/live": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Liveness",
        "description": "The process answers (2.11.0), without authentication: 200, 503 while the server shuts down.",
        "operationId": "healthLive",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthAnswer"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/health/ready": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Readiness",
        "description": "MongoDB answers a ping, the migrations are applied and the server is not shutting down (2.11.0): 200, else 503 with the names of the failing checks; administrators also get the messages. No authentication needed.",
        "operationId": "healthReady",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthAnswer"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        }
      }
    },
    "/system/queue": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Queued jobs",
        "description": "3.0.0, administrators: the jobs of the queue, newest first; filter by state and name.",
        "operationId": "listQueuedJobs",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "description": "pending, running, done or failed",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "running",
                "done",
                "failed"
              ]
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "The name of the job",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QueuedJob"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/queue/{jobId}/retry": {
      "post": {
        "tags": [
          "System"
        ],
        "summary": "Retry a failed job",
        "description": "3.0.0, administrators: a failed job (dead letter) runs again with all its attempts; 404 for no failed job with the id.",
        "operationId": "retryQueuedJob",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "description": "The id of the queued job",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/queue/{jobId}": {
      "delete": {
        "tags": [
          "System"
        ],
        "summary": "Delete a queued job",
        "description": "3.0.0, administrators: deletes a job that is not running; 404 otherwise.",
        "operationId": "deleteQueuedJob",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "description": "The id of the queued job",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/webhooks": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Webhooks",
        "description": "3.0.0, administrators: the stored and the declared webhooks (without their secrets).",
        "operationId": "listWebhooks",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Webhook"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "post": {
        "tags": [
          "System"
        ],
        "summary": "Create a webhook",
        "description": "3.0.0, administrators: a webhook for document events; the answer has the secret of the signatures (only this once). 400 for a URL that is no http(s) or has credentials.",
        "operationId": "createWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/webhooks/{webhookId}": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "A webhook",
        "description": "3.0.0, administrators: a stored webhook.",
        "operationId": "getWebhook",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "description": "The id of the webhook",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "patch": {
        "tags": [
          "System"
        ],
        "summary": "Change a webhook",
        "description": "3.0.0, administrators: url, events, collections, active, includeDocuments; switched on again, its failures start over.",
        "operationId": "updateWebhook",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "description": "The id of the webhook",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "System"
        ],
        "summary": "Delete a webhook",
        "description": "3.0.0, administrators.",
        "operationId": "deleteWebhook",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "description": "The id of the webhook",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonValue_Boolean"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/webhooks/{webhookId}/deliveries": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Deliveries of a webhook",
        "description": "3.0.0, administrators: the latest deliveries (7 days), newest first.",
        "operationId": "listWebhookDeliveries",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "description": "The id of the webhook",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rowsPerPage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookDelivery"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    },
    "/system/backups": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "List Backups",
        "description": "The manifests of the stored backups, newest first (2.11.0). For administrators.",
        "operationId": "listBackups",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BackupManifest"
                  }
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      },
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Write a Backup",
        "description": "Writes a backup now (2.11.0): BACKUP_COLLECTIONS (default the declared and the internal collections) as gzipped canonical Extended JSON into the bucket <AUTH_PREFIX>backups or BACKUP_DIRECTORY; keeps BACKUP_RETENTION backups. 409 while another instance writes one. For administrators.",
        "operationId": "runBackup",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupManifest"
                }
              }
            }
          },
          "default": {
            "description": "",
            "headers": {
              "x-error-code": {
                "description": "Error Code",
                "required": true,
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 100
              },
              "x-error-message": {
                "description": "Message of the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Error Message"
              },
              "x-error-additional-info": {
                "description": "Additional information for the MongoCampException",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Additional Error Info"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDescription"
                }
              }
            }
          }
        },
        "security": [
          {
            "httpAuth": []
          },
          {
            "httpAuth1": []
          },
          {
            "apiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "HealthAnswer": {
        "title": "HealthAnswer",
        "type": "object",
        "required": [
          "status",
          "checks"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "fail"
            ]
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "ok"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "ok": {
                  "type": "boolean"
                },
                "message": {
                  "description": "For administrators only.",
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "BackupManifest": {
        "title": "BackupManifest",
        "type": "object",
        "required": [
          "id",
          "createdAt",
          "database",
          "collections",
          "coreVersion"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "database": {
            "type": "string"
          },
          "coreVersion": {
            "type": "string"
          },
          "collections": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "count",
                "indexes"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "count": {
                  "type": "integer",
                  "format": "int64"
                },
                "indexes": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": true
                  }
                },
                "validator": {
                  "type": "object",
                  "additionalProperties": true
                },
                "validationLevel": {
                  "type": "string"
                },
                "validationAction": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "FileLinkRequest": {
        "title": "FileLinkRequest",
        "type": "object",
        "properties": {
          "expiresIn": {
            "description": "Seconds, or a duration like 1h (default 1h)."
          },
          "variant": {
            "description": "An image variant ({ w, h, fit, format } or { preset }) of a declared bucket with variants.",
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "FileLink": {
        "title": "FileLink",
        "type": "object",
        "required": [
          "token",
          "url",
          "expiresAt"
        ],
        "properties": {
          "token": {
            "type": "string"
          },
          "url": {
            "description": "The path of the download relative to the API root (/files/signed/{token}).",
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "MigrationStatus": {
        "title": "MigrationStatus",
        "type": "object",
        "required": [
          "id",
          "state",
          "defined",
          "reversible"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "applied",
              "pending",
              "failed",
              "changed"
            ]
          },
          "defined": {
            "description": "Known to the server (false for a record of a migration that is no longer defined).",
            "type": "boolean"
          },
          "reversible": {
            "description": "Has a down().",
            "type": "boolean"
          },
          "record": {
            "$ref": "#/components/schemas/MigrationRecord"
          }
        }
      },
      "MigrationRecord": {
        "title": "MigrationRecord",
        "type": "object",
        "required": [
          "checksum",
          "startedAt"
        ],
        "properties": {
          "description": {
            "type": "string"
          },
          "checksum": {
            "type": "string"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "finishedAt": {
            "type": "string",
            "format": "date-time"
          },
          "durationMs": {
            "type": "integer",
            "format": "int64"
          },
          "error": {
            "description": "The message of the last failed run.",
            "type": "string"
          }
        }
      },
      "MigrationRunRequest": {
        "title": "MigrationRunRequest",
        "type": "object",
        "properties": {
          "to": {
            "description": "The last migration to apply (default all).",
            "type": "string"
          }
        }
      },
      "MigrationRunResult": {
        "title": "MigrationRunResult",
        "type": "object",
        "required": [
          "applied"
        ],
        "properties": {
          "applied": {
            "description": "The ids of the migrations that ran.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "BucketInformation": {
        "title": "BucketInformation",
        "type": "object",
        "required": [
          "name",
          "files",
          "size",
          "avgObjectSize"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "files": {
            "type": "integer",
            "format": "int64"
          },
          "size": {
            "type": "number",
            "format": "double"
          },
          "avgObjectSize": {
            "type": "number",
            "format": "double"
          },
          "declared": {
            "description": "The bucket is declared (2.11.0, defineMongocampBucket).",
            "type": "boolean"
          },
          "referencedBy": {
            "description": "The file references of the declared collections to this bucket (2.11.0); empty when none.",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "collection",
                "database",
                "field",
                "many"
              ],
              "properties": {
                "collection": {
                  "type": "string"
                },
                "database": {
                  "type": "string"
                },
                "field": {
                  "type": "string"
                },
                "many": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      },
      "Capabilities": {
        "title": "Capabilities",
        "type": "object",
        "required": [
          "serverVersion",
          "limits"
        ],
        "properties": {
          "serverVersion": {
            "type": "string"
          },
          "mongoDbMajor": {
            "type": "integer",
            "format": "int32"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "limits": {
            "$ref": "#/components/schemas/CapabilityLimits"
          },
          "aggregationStagesDenied": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CapabilityLimits": {
        "title": "CapabilityLimits",
        "type": "object",
        "required": [
          "importMaxBytes",
          "bodyMaxBytes",
          "pagingMaxRows",
          "exportMaxDocuments",
          "gridfsUploadMaxBytes",
          "grantDeniedStatus"
        ],
        "properties": {
          "importMaxBytes": {
            "type": "integer",
            "format": "int64"
          },
          "bodyMaxBytes": {
            "description": "BODY_MAX_BYTES (2.6.0); 0 is no limit.",
            "type": "integer",
            "format": "int64"
          },
          "pagingMaxRows": {
            "description": "PAGING_MAX_ROWS (2.6.0); 0 is no limit.",
            "type": "integer",
            "format": "int64"
          },
          "exportMaxDocuments": {
            "description": "EXPORT_MAX_DOCUMENTS (2.6.0); 0 is no limit.",
            "type": "integer",
            "format": "int64"
          },
          "gridfsUploadMaxBytes": {
            "description": "GRIDFS_UPLOAD_MAX_BYTES (2.6.0); 0 is no limit.",
            "type": "integer",
            "format": "int64"
          },
          "grantDeniedStatus": {
            "type": "integer",
            "format": "int32"
          },
          "rateLimitLogin": {
            "description": "RATE_LIMIT_LOGIN (2.11.0; 3.0.0: default 10/15m): failed logins per user and address, like 10/15m; empty when off.",
            "type": "string"
          },
          "rateLimitRequests": {
            "description": "RATE_LIMIT_REQUESTS (2.11.0): requests per API key, token, user or address; empty when off.",
            "type": "string"
          }
        }
      },
      "ClusterInformation": {
        "title": "ClusterInformation",
        "type": "object",
        "required": [
          "coordinator"
        ],
        "properties": {
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClusterMemberInformation"
            }
          },
          "coordinator": {
            "$ref": "#/components/schemas/ClusterMemberInformation"
          }
        }
      },
      "ClusterMemberInformation": {
        "title": "ClusterMemberInformation",
        "type": "object",
        "required": [
          "name",
          "siteMaster",
          "siteAddress",
          "multicast",
          "coordinator"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "siteMaster": {
            "deprecated": true,
            "description": "Deprecated: JGroups cluster of the Scala server, always false",
            "type": "boolean"
          },
          "siteAddress": {
            "deprecated": true,
            "description": "Deprecated: JGroups cluster of the Scala server, always false",
            "type": "boolean"
          },
          "multicast": {
            "deprecated": true,
            "description": "Deprecated: JGroups cluster of the Scala server, always false",
            "type": "boolean"
          },
          "coordinator": {
            "type": "boolean"
          }
        }
      },
      "CollectionCollation": {
        "title": "CollectionCollation",
        "type": "object",
        "required": [
          "locale"
        ],
        "properties": {
          "locale": {
            "type": "string"
          },
          "strength": {
            "type": "integer",
            "format": "int32"
          },
          "caseLevel": {
            "type": "boolean"
          },
          "numericOrdering": {
            "type": "boolean"
          }
        }
      },
      "CollectionOptions": {
        "title": "CollectionOptions",
        "type": "object",
        "properties": {
          "capped": {
            "type": "boolean"
          },
          "sizeInBytes": {
            "type": "integer",
            "format": "int64"
          },
          "maxDocuments": {
            "type": "integer",
            "format": "int64"
          },
          "validator": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "validationLevel": {
            "type": "string"
          },
          "validationAction": {
            "type": "string"
          },
          "collation": {
            "$ref": "#/components/schemas/CollectionCollation"
          }
        }
      },
      "CollectionPermission": {
        "title": "CollectionPermission",
        "type": "object",
        "required": [
          "name",
          "read",
          "write",
          "administrate"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "read": {
            "type": "boolean"
          },
          "write": {
            "type": "boolean"
          },
          "administrate": {
            "type": "boolean"
          }
        }
      },
      "CollectionStatus": {
        "title": "CollectionStatus",
        "type": "object",
        "required": [
          "ns",
          "collectionType",
          "scaleFactor",
          "size",
          "count",
          "storageSize",
          "avgObjSize",
          "nindexes",
          "indexSizes",
          "totalIndexSize",
          "ok",
          "fetched",
          "map"
        ],
        "properties": {
          "ns": {
            "type": "string"
          },
          "collectionType": {
            "type": "string"
          },
          "scaleFactor": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "number",
            "format": "double"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "storageSize": {
            "type": "number",
            "format": "double"
          },
          "avgObjSize": {
            "type": "integer",
            "format": "int32"
          },
          "nindexes": {
            "type": "integer",
            "format": "int32"
          },
          "indexSizes": {
            "$ref": "#/components/schemas/Map_Int"
          },
          "totalIndexSize": {
            "type": "integer",
            "format": "int32"
          },
          "ok": {
            "type": "integer",
            "format": "int32"
          },
          "fetched": {
            "type": "string",
            "format": "date-time"
          },
          "map": {
            "$ref": "#/components/schemas/Map_Any"
          }
        }
      },
      "CollectionSummary": {
        "title": "CollectionSummary",
        "type": "object",
        "required": [
          "name",
          "collectionType",
          "count",
          "size",
          "storageSize",
          "avgObjSize",
          "nindexes",
          "totalIndexSize",
          "available"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "collectionType": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int64"
          },
          "size": {
            "type": "number",
            "format": "double"
          },
          "storageSize": {
            "type": "number",
            "format": "double"
          },
          "avgObjSize": {
            "type": "integer",
            "format": "int64"
          },
          "nindexes": {
            "type": "integer",
            "format": "int32"
          },
          "totalIndexSize": {
            "type": "integer",
            "format": "int64"
          },
          "available": {
            "type": "boolean"
          }
        }
      },
      "ConnectionStats": {
        "title": "ConnectionStats",
        "type": "object",
        "required": [
          "current",
          "available",
          "totalCreated"
        ],
        "properties": {
          "current": {
            "type": "integer",
            "format": "int64"
          },
          "available": {
            "type": "integer",
            "format": "int64"
          },
          "totalCreated": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "CopyRequest": {
        "title": "CopyRequest",
        "type": "object",
        "required": [
          "target"
        ],
        "properties": {
          "target": {
            "type": "string"
          },
          "filter": {
            "type": "string"
          },
          "withIndexes": {
            "type": "boolean"
          },
          "dropTarget": {
            "type": "boolean"
          }
        }
      },
      "CopyResponse": {
        "title": "CopyResponse",
        "type": "object",
        "required": [
          "name",
          "count",
          "indexes"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int64"
          },
          "indexes": {
            "type": "integer",
            "format": "int32"
          },
          "skippedIndexes": {
            "description": "2.8.0: own indexes of a declaration (mongocamp_idx_*) that were not copied, because the target is not declared (no index sync would manage them there)",
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "CountResponse": {
        "title": "CountResponse",
        "type": "object",
        "required": [
          "count"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "CreateCollectionResponse": {
        "title": "CreateCollectionResponse",
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "DatabaseInfo": {
        "title": "DatabaseInfo",
        "type": "object",
        "required": [
          "name",
          "sizeOnDisk",
          "empty",
          "fetched",
          "map"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "sizeOnDisk": {
            "type": "number",
            "format": "double"
          },
          "empty": {
            "type": "boolean"
          },
          "fetched": {
            "type": "string",
            "format": "date-time"
          },
          "map": {
            "$ref": "#/components/schemas/Map_Any"
          }
        }
      },
      "DeleteResponse": {
        "title": "DeleteResponse",
        "type": "object",
        "required": [
          "wasAcknowledged",
          "deletedCount"
        ],
        "properties": {
          "wasAcknowledged": {
            "type": "boolean"
          },
          "deletedCount": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ErrorDescription": {
        "title": "ErrorDescription",
        "type": "object",
        "required": [
          "code",
          "msg",
          "additionalInfo"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "msg": {
            "type": "string"
          },
          "additionalInfo": {
            "type": "string"
          },
          "issues": {
            "description": "The fields of a document that is not valid (a schema, a before-hook or the validator of the collection). Only set for these errors.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationIssue"
            }
          },
          "current": {
            "description": "The stored document of a version conflict (409, code 4092, 2.3.0), as Extended JSON: show it or merge with it, then send the change again with its version.",
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "ValidationIssue": {
        "title": "ValidationIssue",
        "type": "object",
        "required": [
          "path",
          "message"
        ],
        "properties": {
          "path": {
            "description": "The field in dot notation (`items.0.qty`), empty for the whole document; `[3].qty` for the fourth document of a request with several.",
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "FieldInfo": {
        "title": "FieldInfo",
        "type": "object",
        "required": [
          "path"
        ],
        "properties": {
          "path": {
            "type": "string"
          },
          "types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldTypeCount"
            }
          }
        }
      },
      "FieldTypeCount": {
        "title": "FieldTypeCount",
        "type": "object",
        "required": [
          "type",
          "count"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "FileInformation": {
        "title": "FileInformation",
        "type": "object",
        "required": [
          "_id",
          "filename",
          "length",
          "chunkSize",
          "uploadDate",
          "metadata"
        ],
        "properties": {
          "_id": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "length": {
            "type": "integer",
            "format": "int64"
          },
          "chunkSize": {
            "type": "integer",
            "format": "int64"
          },
          "uploadDate": {
            "type": "string",
            "format": "date-time"
          },
          "metadata": {
            "$ref": "#/components/schemas/Map_Any"
          }
        }
      },
      "FileUploadForm": {
        "title": "FileUploadForm",
        "type": "object",
        "required": [
          "file",
          "metaData"
        ],
        "properties": {
          "file": {
            "type": "string",
            "format": "binary"
          },
          "metaData": {
            "type": "string"
          }
        }
      },
      "Grant": {
        "title": "Grant",
        "type": "object",
        "required": [
          "name",
          "read",
          "write",
          "administrate",
          "grantType"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "read": {
            "type": "boolean"
          },
          "write": {
            "type": "boolean"
          },
          "administrate": {
            "type": "boolean"
          },
          "grantType": {
            "type": "string",
            "enum": [
              "COLLECTION",
              "BUCKET",
              "BUCKET_META"
            ]
          }
        }
      },
      "ImportResponse": {
        "title": "ImportResponse",
        "type": "object",
        "required": [
          "read",
          "inserted",
          "failed",
          "errorsTruncated"
        ],
        "properties": {
          "read": {
            "type": "integer",
            "format": "int64"
          },
          "inserted": {
            "type": "integer",
            "format": "int64"
          },
          "failed": {
            "type": "integer",
            "format": "int64"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InsertError"
            }
          },
          "errorsTruncated": {
            "type": "boolean"
          }
        }
      },
      "IndexCreateRequest": {
        "title": "IndexCreateRequest",
        "type": "object",
        "properties": {
          "keys": {
            "$ref": "#/components/schemas/Map_Int"
          },
          "indexOptionsRequest": {
            "$ref": "#/components/schemas/IndexOptionsRequest"
          },
          "orderedKeys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndexKey"
            }
          }
        }
      },
      "IndexCreateResponse": {
        "title": "IndexCreateResponse",
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "IndexDropResponse": {
        "title": "IndexDropResponse",
        "type": "object",
        "required": [
          "dropped"
        ],
        "properties": {
          "dropped": {
            "type": "boolean"
          }
        }
      },
      "IndexInfo": {
        "title": "IndexInfo",
        "type": "object",
        "required": [
          "name",
          "unique",
          "sparse",
          "hidden",
          "version"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndexKey"
            }
          },
          "unique": {
            "type": "boolean"
          },
          "sparse": {
            "type": "boolean"
          },
          "hidden": {
            "type": "boolean"
          },
          "partialFilterExpression": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "collation": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "weights": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "defaultLanguage": {
            "type": "string"
          },
          "expireAfterSeconds": {
            "type": "integer",
            "format": "int64"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "IndexKey": {
        "title": "IndexKey",
        "type": "object",
        "required": [
          "field",
          "direction"
        ],
        "properties": {
          "field": {
            "type": "string"
          },
          "direction": {
            "type": "string"
          }
        }
      },
      "IndexOptionsRequest": {
        "title": "IndexOptionsRequest",
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "background": {
            "deprecated": true,
            "description": "Deprecated: ignored by MongoDB since 4.2",
            "type": "boolean"
          },
          "defaultLanguage": {
            "type": "string"
          },
          "textVersion": {
            "type": "integer",
            "format": "int32"
          },
          "expireAfter": {
            "type": "string"
          },
          "unique": {
            "type": "boolean"
          },
          "max": {
            "type": "number",
            "format": "double"
          },
          "min": {
            "type": "number",
            "format": "double"
          },
          "sparse": {
            "type": "boolean"
          },
          "hidden": {
            "type": "boolean"
          },
          "partialFilterExpression": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "weights": {
            "$ref": "#/components/schemas/Map_Int"
          },
          "collation": {
            "$ref": "#/components/schemas/Map_Any"
          }
        }
      },
      "IndexUsage": {
        "title": "IndexUsage",
        "type": "object",
        "required": [
          "name",
          "key",
          "ops",
          "since"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "key": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "ops": {
            "type": "integer",
            "format": "int64"
          },
          "since": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "InsertError": {
        "title": "InsertError",
        "type": "object",
        "required": [
          "index",
          "code",
          "message"
        ],
        "properties": {
          "index": {
            "type": "integer",
            "format": "int32"
          },
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "InsertResponse": {
        "title": "InsertResponse",
        "type": "object",
        "required": [
          "wasAcknowledged"
        ],
        "properties": {
          "wasAcknowledged": {
            "type": "boolean"
          },
          "insertedIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "insertedCount": {
            "type": "integer",
            "format": "int64"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InsertError"
            }
          }
        }
      },
      "JobConfig": {
        "title": "JobConfig",
        "type": "object",
        "required": [
          "name",
          "className",
          "description",
          "cronExpression",
          "group",
          "priority"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "className": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "cronExpression": {
            "type": "string"
          },
          "group": {
            "type": "string"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "JobInformation": {
        "title": "JobInformation",
        "type": "object",
        "required": [
          "name",
          "group",
          "jobClassName",
          "cronExpression",
          "priority",
          "description",
          "lastScheduledFireTime",
          "nextScheduledFireTime",
          "scheduleInformation"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "group": {
            "type": "string"
          },
          "jobClassName": {
            "type": "string"
          },
          "description": {
            "description": "3.0.0 nullable (the API always answered null for an empty description)",
            "type": [
              "string",
              "null"
            ]
          },
          "cronExpression": {
            "type": "string"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "lastScheduledFireTime": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "nextScheduledFireTime": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "scheduleInformation": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "JsonSchema": {
        "title": "JsonSchema",
        "type": "object",
        "required": [
          "$schema",
          "$ref",
          "definitions"
        ],
        "properties": {
          "$schema": {
            "type": "string"
          },
          "$ref": {
            "type": "string"
          },
          "definitions": {
            "$ref": "#/components/schemas/Map_JsonSchemaDefinition"
          }
        }
      },
      "JsonSchemaDefinition": {
        "title": "JsonSchemaDefinition",
        "type": "object",
        "required": [
          "type",
          "title",
          "additionalProperties",
          "properties"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "boolean"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "properties": {
            "$ref": "#/components/schemas/Map_Map_String_Any"
          }
        }
      },
      "JsonValue_Any": {
        "title": "JsonValue_Any",
        "type": "object",
        "required": [
          "value"
        ],
        "properties": {
          "value": {}
        }
      },
      "JsonValue_Boolean": {
        "title": "JsonValue_Boolean",
        "type": "object",
        "required": [
          "value"
        ],
        "properties": {
          "value": {
            "type": "boolean"
          }
        }
      },
      "JsonValue_String": {
        "title": "JsonValue_String",
        "type": "object",
        "required": [
          "value"
        ],
        "properties": {
          "value": {
            "type": "string"
          }
        }
      },
      "Login": {
        "title": "Login",
        "type": "object",
        "required": [
          "userId",
          "password"
        ],
        "properties": {
          "userId": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        }
      },
      "LoginResult": {
        "title": "LoginResult",
        "type": "object",
        "required": [
          "authToken",
          "userProfile",
          "expirationDate"
        ],
        "properties": {
          "authToken": {
            "type": "string"
          },
          "userProfile": {
            "$ref": "#/components/schemas/UserProfile"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time"
          },
          "refreshToken": {
            "description": "3.0.0, AUTH_SESSIONS only: always the httpOnly cookie mongocamp_refresh; in the body only for a request with the header x-mongocamp-refresh-token: body, or a refresh with the token in its body",
            "type": "string"
          },
          "refreshExpirationDate": {
            "type": "string",
            "format": "date-time"
          },
          "sessionId": {
            "type": "string"
          }
        }
      },
      "RegisterRequest": {
        "title": "RegisterRequest",
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "userId": {
            "description": "the e-mail address when absent",
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "inviteToken": {
            "description": "with AUTH_REGISTRATION=invite",
            "type": "string"
          }
        }
      },
      "TokenRequest": {
        "title": "TokenRequest",
        "type": "object",
        "required": [
          "token"
        ],
        "properties": {
          "token": {
            "type": "string"
          }
        }
      },
      "EmailRequest": {
        "title": "EmailRequest",
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string"
          }
        }
      },
      "InviteRequest": {
        "title": "InviteRequest",
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ResetPasswordRequest": {
        "title": "ResetPasswordRequest",
        "type": "object",
        "required": [
          "token",
          "password"
        ],
        "properties": {
          "token": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        }
      },
      "PasswordlessLoginRequest": {
        "title": "PasswordlessLoginRequest",
        "description": "3.0.0, the token of the login link, or the address and the 6-digit code",
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        }
      },
      "QueuedJob": {
        "title": "QueuedJob",
        "description": "3.0.0, a job of the queue",
        "type": "object",
        "required": [
          "id",
          "name",
          "state",
          "runAt",
          "attempts",
          "maxAttempts",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "payload": {},
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "done",
              "failed"
            ]
          },
          "key": {
            "type": "string"
          },
          "runAt": {
            "type": "string",
            "format": "date-time"
          },
          "attempts": {
            "type": "integer",
            "format": "int32"
          },
          "maxAttempts": {
            "type": "integer",
            "format": "int32"
          },
          "lastError": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "finishedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Webhook": {
        "title": "Webhook",
        "description": "3.0.0, a webhook of document events",
        "type": "object",
        "required": [
          "id",
          "url",
          "events",
          "active",
          "includeDocuments",
          "failures",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "collections": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "active": {
            "type": "boolean"
          },
          "includeDocuments": {
            "type": "boolean"
          },
          "failures": {
            "type": "integer",
            "format": "int32"
          },
          "disabledAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "declared": {
            "type": "boolean"
          },
          "secret": {
            "description": "only in the answer of the creation",
            "type": "string"
          }
        }
      },
      "WebhookRequest": {
        "title": "WebhookRequest",
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "events": {
            "description": "document:create, document:update, document:delete, document:restore or *",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "collections": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "active": {
            "type": "boolean"
          },
          "includeDocuments": {
            "type": "boolean"
          }
        }
      },
      "WebhookDelivery": {
        "title": "WebhookDelivery",
        "type": "object",
        "required": [
          "id",
          "webhookId",
          "event",
          "collection",
          "jobId",
          "attempt",
          "ok",
          "status",
          "durationMs",
          "at"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "webhookId": {
            "type": "string"
          },
          "event": {
            "type": "string"
          },
          "collection": {
            "type": "string"
          },
          "jobId": {
            "type": "string"
          },
          "attempt": {
            "type": "integer",
            "format": "int32"
          },
          "ok": {
            "type": "boolean"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "error": {
            "type": "string"
          },
          "durationMs": {
            "type": "integer",
            "format": "int32"
          },
          "at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "RefreshTokenRequest": {
        "title": "RefreshTokenRequest",
        "description": "3.0.0, the refresh token; without it the cookie mongocamp_refresh is used",
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string"
          }
        }
      },
      "Session": {
        "title": "Session",
        "description": "3.0.0, a login session with a refresh token (AUTH_SESSIONS)",
        "type": "object",
        "required": [
          "id",
          "createdAt",
          "lastUsedAt",
          "expiresAt",
          "current"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastUsedAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "userAgent": {
            "type": "string"
          },
          "ip": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          }
        }
      },
      "Map_Any": {
        "title": "Map_Any",
        "type": "object",
        "additionalProperties": {}
      },
      "Map_Int": {
        "title": "Map_Int",
        "type": "object",
        "additionalProperties": {
          "type": "integer",
          "format": "int32"
        }
      },
      "Map_JsonSchemaDefinition": {
        "title": "Map_JsonSchemaDefinition",
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/JsonSchemaDefinition"
        }
      },
      "Map_Map_String_Any": {
        "title": "Map_Map_String_Any",
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/Map_Any"
        }
      },
      "MongoAggregateRequest": {
        "title": "MongoAggregateRequest",
        "type": "object",
        "required": [
          "allowDiskUse"
        ],
        "properties": {
          "pipeline": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineStage"
            }
          },
          "allowDiskUse": {
            "type": "boolean"
          },
          "filter": {
            "type": "string",
            "description": "2.1.0: the Lucene filter of the list as first stage, like the query parameter filter (send one of both; no URL limit in the body)"
          }
        }
      },
      "MongoCampConfiguration": {
        "title": "MongoCampConfiguration",
        "type": "object",
        "required": [
          "key",
          "value",
          "configType",
          "comment",
          "needsRestartForActivation"
        ],
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {},
          "configType": {
            "type": "string"
          },
          "comment": {
            "type": "string"
          },
          "needsRestartForActivation": {
            "type": "boolean"
          },
          "source": {
            "description": "2.8.0: where the active value comes from — env, an option of the server, an administrator's update (patched), a value stored without update (stored, e.g. the default an older server wrote at the first start), or the default",
            "type": "string",
            "enum": [
              "env",
              "option",
              "patched",
              "stored",
              "default"
            ]
          },
          "defaultValue": {
            "description": "2.8.0: the current default in the form of value; left out for a generated default (AUTH_SECRET)"
          },
          "isDefault": {
            "description": "2.8.0: value is the current default",
            "type": "boolean"
          }
        }
      },
      "MongoFindRequest": {
        "title": "MongoFindRequest",
        "type": "object",
        "required": [
          "filter",
          "sort",
          "projection"
        ],
        "properties": {
          "filter": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "sort": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "projection": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "expand": {
            "type": "array",
            "description": "References to expand (2.4.0), like the query parameter expand.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "MongoIndex": {
        "title": "MongoIndex",
        "type": "object",
        "required": [
          "name",
          "unique",
          "version",
          "namespace",
          "keys",
          "weights",
          "expire",
          "expireAfterSeconds",
          "text",
          "fetched",
          "map"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "unique": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "namespace": {
            "type": "string"
          },
          "keys": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "weights": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "expire": {
            "type": "boolean"
          },
          "expireAfterSeconds": {
            "type": "integer",
            "format": "int64"
          },
          "text": {
            "type": "boolean"
          },
          "fetched": {
            "type": "string",
            "format": "date-time"
          },
          "map": {
            "$ref": "#/components/schemas/Map_Any"
          }
        }
      },
      "OpCounters": {
        "title": "OpCounters",
        "type": "object",
        "required": [
          "insert",
          "query",
          "update",
          "delete",
          "getmore",
          "command"
        ],
        "properties": {
          "insert": {
            "type": "integer",
            "format": "int64"
          },
          "query": {
            "type": "integer",
            "format": "int64"
          },
          "update": {
            "type": "integer",
            "format": "int64"
          },
          "delete": {
            "type": "integer",
            "format": "int64"
          },
          "getmore": {
            "type": "integer",
            "format": "int64"
          },
          "command": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "PasswordUpdateRequest": {
        "title": "PasswordUpdateRequest",
        "type": "object",
        "required": [
          "password"
        ],
        "properties": {
          "password": {
            "type": "string"
          }
        }
      },
      "PipelineStage": {
        "title": "PipelineStage",
        "type": "object",
        "required": [
          "stage",
          "value"
        ],
        "properties": {
          "stage": {
            "type": "string"
          },
          "value": {}
        }
      },
      "RenameRequest": {
        "title": "RenameRequest",
        "type": "object",
        "required": [
          "target"
        ],
        "properties": {
          "target": {
            "type": "string"
          },
          "dropTarget": {
            "type": "boolean"
          }
        }
      },
      "RenameResponse": {
        "title": "RenameResponse",
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "ReplicaSetState": {
        "title": "ReplicaSetState",
        "type": "object",
        "required": [
          "name",
          "state",
          "memberCount",
          "healthyMembers"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "memberCount": {
            "type": "integer",
            "format": "int32"
          },
          "healthyMembers": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "Role": {
        "title": "Role",
        "type": "object",
        "required": [
          "name",
          "isAdmin"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "isAdmin": {
            "type": "boolean"
          },
          "collectionGrants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Grant"
            }
          }
        }
      },
      "SuggestedValidator": {
        "title": "SuggestedValidator",
        "type": "object",
        "required": [
          "validator",
          "count",
          "sample",
          "warnings"
        ],
        "properties": {
          "validator": {
            "description": "The validator: an object with the key $jsonSchema.",
            "type": "object",
            "additionalProperties": true
          },
          "count": {
            "description": "The number of documents of the collection.",
            "type": "integer",
            "format": "int64"
          },
          "sample": {
            "description": "The number of documents the suggestion is made of.",
            "type": "integer",
            "format": "int64"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "AuditEntry": {
        "title": "AuditEntry",
        "type": "object",
        "required": [
          "_id",
          "collection",
          "database",
          "operation",
          "user",
          "at"
        ],
        "properties": {
          "_id": {
            "description": "3.1.2: the id of the record itself (an ObjectId: `{ $oid }` in Extended JSON, the hex string in plain JSON); the auditId of the restore of a version."
          },
          "collection": {
            "type": "string"
          },
          "database": {
            "type": "string"
          },
          "documentId": {
            "description": "The _id of the document; absent on a summary record."
          },
          "operation": {
            "type": "string",
            "enum": [
              "insert",
              "replace",
              "update",
              "delete",
              "softDelete",
              "restore",
              "publish",
              "unpublish",
              "discardDraft"
            ]
          },
          "user": {
            "type": "string"
          },
          "actedBy": {
            "type": "string",
            "description": "3.1.1: the administrator who wrote for user (header X-AUTH-ACT-AS)."
          },
          "at": {
            "type": "object",
            "additionalProperties": true,
            "description": "The time (Extended JSON date)."
          },
          "before": {
            "type": "object",
            "additionalProperties": true
          },
          "after": {
            "type": "object",
            "additionalProperties": true
          },
          "summary": {
            "type": "object",
            "additionalProperties": true,
            "description": "A write of many documents: count and recorded."
          },
          "expiresAt": {
            "type": "object",
            "additionalProperties": true
          },
          "restoredFrom": {
            "description": "The audit record the document was put back from (2.11.0, restore of a version)."
          }
        }
      },
      "CollectionDeclaration": {
        "title": "CollectionDeclaration",
        "type": "object",
        "required": [
          "name",
          "database",
          "validation",
          "systemFields",
          "protectedFields",
          "indexes",
          "refs",
          "referencedBy"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "database": {
            "type": "string"
          },
          "validation": {
            "type": "string",
            "enum": [
              "off",
              "warn",
              "error"
            ]
          },
          "systemFields": {
            "description": "The fields the server writes (timestamps, owner, version, deleted mark); clients do not send them.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "protectedFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "indexes": {
            "description": "The indexes of the declaration and its behaviours (2.4.0), synced at the start.",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "key",
                "unique",
                "sparse",
                "origin"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "key": {
                  "type": "object",
                  "additionalProperties": true
                },
                "unique": {
                  "type": "boolean"
                },
                "sparse": {
                  "description": "2.6.0",
                  "type": "boolean"
                },
                "origin": {
                  "description": "Declared, or added for a behaviour (owner = the index on the owner field, 2.6.0; tenant = on the tenant field, 2.10.0).",
                  "type": "string",
                  "enum": [
                    "declaration",
                    "owner",
                    "tenant",
                    "search"
                  ]
                },
                "partialFilterExpression": {
                  "description": "The partial filter as relaxed Extended JSON (2.6.0), as index details show it.",
                  "type": "object",
                  "additionalProperties": true
                },
                "partialFilterFrom": {
                  "description": "softDelete when the soft delete behaviour added the partial filter to a unique index (2.6.0).",
                  "type": "string",
                  "enum": [
                    "softDelete"
                  ]
                },
                "expireAfterSeconds": {
                  "description": "2.6.0",
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          },
          "refs": {
            "description": "The references of the declaration (2.4.0), the fields a read can expand (query parameter expand).",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "collection",
                "many"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "collection": {
                  "description": "The target collection (name or database:name).",
                  "type": "string"
                },
                "many": {
                  "description": "Whether the field holds an array of ids (from the schema or the declaration); false when neither tells (2.6.0, before it was missing then).",
                  "type": "boolean"
                }
              }
            }
          },
          "referencedBy": {
            "description": "The references of the declared collections to this collection (2.6.0), from the declarations of the server; empty when none.",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "collection",
                "database",
                "field",
                "many"
              ],
              "properties": {
                "collection": {
                  "description": "The referencing collection as the routes name it (name or database:name).",
                  "type": "string"
                },
                "database": {
                  "type": "string"
                },
                "field": {
                  "description": "The field of the referencing collection that holds the id.",
                  "type": "string"
                },
                "many": {
                  "type": "boolean"
                }
              }
            }
          },
          "timestamps": {
            "type": "object",
            "properties": {
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "createdBy": {
                "type": "string"
              },
              "updatedBy": {
                "type": "string"
              }
            },
            "required": [
              "createdAt",
              "updatedAt"
            ]
          },
          "owner": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string"
              },
              "read": {
                "type": "string",
                "enum": [
                  "own",
                  "all",
                  "custom"
                ]
              }
            },
            "required": [
              "field",
              "read"
            ]
          },
          "softDelete": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string"
              },
              "purgeAfterDays": {
                "type": "number"
              }
            },
            "required": [
              "field"
            ]
          },
          "versioned": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "counter",
                  "timestamp"
                ]
              },
              "field": {
                "type": "string"
              },
              "required": {
                "type": "boolean"
              }
            },
            "required": [
              "mode",
              "field",
              "required"
            ]
          },
          "audit": {
            "type": "object",
            "properties": {
              "retentionDays": {
                "type": "number"
              }
            },
            "required": [
              "retentionDays"
            ]
          },
          "views": {
            "description": "The views of the declaration (2.10.0); POST …/views/{name} runs one.",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "hasParams"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "hasParams": {
                  "type": "boolean"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "search": {
            "description": "Full-text search (2.10.0); reads take q.",
            "type": "object",
            "properties": {
              "fields": {
                "description": "The fields of the text index with their weights.",
                "type": "object",
                "additionalProperties": {
                  "type": "integer"
                }
              },
              "language": {
                "type": "string"
              }
            },
            "required": [
              "fields",
              "language"
            ]
          },
          "embedding": {
            "description": "Embeddings (3.0.0), a vector field kept in sync with text fields through the job queue.",
            "type": "object",
            "properties": {
              "from": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "field": {
                "type": "string"
              },
              "dimensions": {
                "type": "integer",
                "format": "int32"
              },
              "readable": {
                "type": "boolean"
              }
            },
            "required": [
              "from",
              "field",
              "dimensions",
              "readable"
            ]
          },
          "tenant": {
            "description": "The tenant behaviour (2.10.0)",
            "type": "object",
            "properties": {
              "field": {
                "type": "string"
              },
              "adminBypass": {
                "type": "boolean"
              }
            },
            "required": [
              "field",
              "adminBypass"
            ]
          },
          "drafts": {
            "description": "The drafts behaviour (2.11.0): who reads the working copies (drafts=true) besides the write grant.",
            "type": "object",
            "properties": {
              "readers": {
                "$ref": "#/components/schemas/AccessRuleSummary"
              }
            },
            "required": [
              "readers"
            ]
          },
          "access": {
            "description": "The access rules of the declaration (2.10.0), per operation: all, none, roles or custom (a function on the server). A missing rule is all.",
            "type": "object",
            "properties": {
              "read": {
                "$ref": "#/components/schemas/AccessRuleSummary"
              },
              "create": {
                "$ref": "#/components/schemas/AccessRuleSummary"
              },
              "update": {
                "$ref": "#/components/schemas/AccessRuleSummary"
              },
              "delete": {
                "$ref": "#/components/schemas/AccessRuleSummary"
              },
              "adminBypass": {
                "description": "Administrators are not checked.",
                "type": "boolean"
              }
            },
            "required": [
              "read",
              "create",
              "update",
              "delete",
              "adminBypass"
            ]
          }
        }
      },
      "ViewRequest": {
        "title": "ViewRequest",
        "description": "The parameters of a view (2.10.0), Extended JSON.",
        "type": "object",
        "properties": {
          "params": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "BatchRequest": {
        "title": "BatchRequest",
        "description": "Several writes (2.10.0, POST /mongodb/batch).",
        "type": "object",
        "required": [
          "operations"
        ],
        "properties": {
          "atomic": {
            "description": "All operations in one transaction (default true); false runs them one after another and reports each result.",
            "type": "boolean"
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchOperation"
            }
          }
        }
      },
      "BatchOperation": {
        "title": "BatchOperation",
        "description": "One write: insert (document), replace (id, document), update (id, document: the fields to set, null removes one) or delete (id).",
        "type": "object",
        "required": [
          "op",
          "collection"
        ],
        "properties": {
          "op": {
            "type": "string",
            "enum": [
              "insert",
              "replace",
              "update",
              "delete"
            ]
          },
          "collection": {
            "description": "The collection (name or database:name).",
            "type": "string"
          },
          "id": {
            "description": "The id of the document (replace, update, delete), as in the path of the document routes.",
            "type": "string"
          },
          "document": {
            "description": "The document (insert, replace) or the fields to set (update), Extended JSON.",
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "BatchResponse": {
        "title": "BatchResponse",
        "type": "object",
        "required": [
          "atomic",
          "results"
        ],
        "properties": {
          "atomic": {
            "type": "boolean"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchResult"
            }
          }
        }
      },
      "BatchResult": {
        "title": "BatchResult",
        "description": "The result of one operation; with atomic every result is ok (a failing operation fails the request).",
        "type": "object",
        "required": [
          "ok"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "insertedId": {
            "description": "The id of an inserted document.",
            "type": "string"
          },
          "matchedCount": {
            "type": "integer",
            "format": "int64"
          },
          "modifiedCount": {
            "type": "integer",
            "format": "int64"
          },
          "deletedCount": {
            "type": "integer",
            "format": "int64"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDescription"
          }
        }
      },
      "AccessRuleSummary": {
        "title": "AccessRuleSummary",
        "description": "An access rule of a declared collection as clients see it (2.10.0).",
        "type": "object",
        "required": [
          "kind"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "all",
              "none",
              "roles",
              "custom"
            ]
          },
          "roles": {
            "description": "The roles of a rule of kind roles.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SchemaAnalysis": {
        "title": "SchemaAnalysis",
        "type": "object",
        "required": [
          "count",
          "sample",
          "percentageOfAnalysed"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "format": "int64"
          },
          "sample": {
            "type": "integer",
            "format": "int64"
          },
          "percentageOfAnalysed": {
            "type": "number",
            "format": "double"
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SchemaAnalysisField"
            }
          }
        }
      },
      "SchemaAnalysisField": {
        "title": "SchemaAnalysisField",
        "type": "object",
        "required": [
          "name",
          "fullName",
          "count",
          "percentageOfParent"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "fieldTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SchemaAnalysisFieldType"
            }
          },
          "count": {
            "type": "integer",
            "format": "int64"
          },
          "percentageOfParent": {
            "type": "number",
            "format": "double"
          },
          "subFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SchemaAnalysisField"
            }
          }
        }
      },
      "SchemaAnalysisFieldType": {
        "title": "SchemaAnalysisFieldType",
        "type": "object",
        "required": [
          "fieldType",
          "count",
          "percentageOfParent"
        ],
        "properties": {
          "fieldType": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int64"
          },
          "percentageOfParent": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "ExportRequest": {
        "title": "ExportRequest",
        "type": "object",
        "properties": {
          "filter": {
            "type": "string",
            "description": "Lucene filter like on the list of documents, by default all documents"
          },
          "sort": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "projection": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "expand": {
            "type": "array",
            "description": "References to expand (2.4.0), like the query parameter expand.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CountRequest": {
        "title": "CountRequest",
        "type": "object",
        "properties": {
          "filter": {
            "type": "string",
            "description": "Lucene filter like on the list of documents, by default all documents"
          }
        }
      },
      "SearchRequest": {
        "title": "SearchRequest",
        "type": "object",
        "properties": {
          "filter": {
            "type": "string"
          },
          "sort": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "projection": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expand": {
            "type": "array",
            "description": "References to expand (2.4.0), like the query parameter expand.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SettingsResponse": {
        "title": "SettingsResponse",
        "type": "object",
        "required": [
          "configurations"
        ],
        "properties": {
          "configurations": {
            "$ref": "#/components/schemas/Map_Any"
          }
        }
      },
      "SystemInfo": {
        "title": "SystemInfo",
        "type": "object",
        "required": [
          "mongoDbVersion"
        ],
        "properties": {
          "mongoDbVersion": {
            "type": "string"
          },
          "mongoDbVersionArray": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "SystemStats": {
        "title": "SystemStats",
        "type": "object",
        "required": [
          "partial"
        ],
        "properties": {
          "uptimeSeconds": {
            "type": "integer",
            "format": "int64"
          },
          "connections": {
            "$ref": "#/components/schemas/ConnectionStats"
          },
          "opcounters": {
            "$ref": "#/components/schemas/OpCounters"
          },
          "replicaSet": {
            "$ref": "#/components/schemas/ReplicaSetState"
          },
          "partial": {
            "type": "boolean"
          }
        }
      },
      "UpdateFileInformationRequest": {
        "title": "UpdateFileInformationRequest",
        "type": "object",
        "properties": {
          "filename": {
            "type": "string"
          },
          "metadata": {
            "$ref": "#/components/schemas/Map_Any"
          }
        }
      },
      "UpdateManyRequest": {
        "title": "UpdateManyRequest",
        "type": "object",
        "required": [
          "document",
          "filter"
        ],
        "properties": {
          "document": {
            "$ref": "#/components/schemas/Map_Any"
          },
          "filter": {
            "$ref": "#/components/schemas/Map_Any"
          }
        }
      },
      "UpdateResponse": {
        "title": "UpdateResponse",
        "type": "object",
        "required": [
          "wasAcknowledged",
          "modifiedCount",
          "matchedCount"
        ],
        "properties": {
          "wasAcknowledged": {
            "type": "boolean"
          },
          "upsertedIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "modifiedCount": {
            "type": "integer",
            "format": "int64"
          },
          "matchedCount": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "UpdateRoleRequest": {
        "title": "UpdateRoleRequest",
        "type": "object",
        "required": [
          "isAdmin"
        ],
        "properties": {
          "isAdmin": {
            "type": "boolean"
          },
          "collectionGrants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Grant"
            }
          }
        }
      },
      "UserInformation": {
        "title": "UserInformation",
        "type": "object",
        "required": [
          "userId",
          "password"
        ],
        "properties": {
          "userId": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "apiKey": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "email": {
            "description": "3.0.0, unique among the users (stored in lower case)",
            "type": "string"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "displayName": {
            "type": "string"
          },
          "disabled": {
            "description": "3.0.0, no login and no requests",
            "type": "boolean"
          }
        }
      },
      "ProfileUpdateRequest": {
        "title": "ProfileUpdateRequest",
        "description": "3.1.0, the fields a user changes in its own profile; null removes displayName",
        "type": "object",
        "properties": {
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "UserUpdateRequest": {
        "title": "UserUpdateRequest",
        "description": "3.0.0, the profile fields of a user; null removes email or displayName",
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailVerified": {
            "type": "boolean"
          },
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          },
          "disabled": {
            "type": "boolean"
          }
        }
      },
      "Identity": {
        "title": "Identity",
        "description": "3.0.0, a linked login of another provider (OAuth / OIDC)",
        "type": "object",
        "required": [
          "provider",
          "subject"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        }
      },
      "UserProfile": {
        "title": "UserProfile",
        "type": "object",
        "required": [
          "user",
          "isAdmin"
        ],
        "properties": {
          "user": {
            "type": "string"
          },
          "isAdmin": {
            "type": "boolean"
          },
          "apiKey": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "grants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Grant"
            }
          },
          "email": {
            "description": "3.0.0, the optional fields of the user when it has them",
            "type": "string"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "displayName": {
            "type": "string"
          },
          "identities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Identity"
            }
          },
          "disabled": {
            "type": "boolean"
          },
          "lastLoginAt": {
            "type": "string",
            "format": "date-time"
          },
          "mfaEnabled": {
            "description": "3.0.0, prepared for a later two-factor login (true when the user has a confirmed TOTP secret)",
            "type": "boolean"
          }
        }
      },
      "Version": {
        "title": "Version",
        "type": "object",
        "required": [
          "name",
          "version",
          "builtAt"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "builtAt": {
            "type": "string",
            "format": "date-time"
          },
          "core": {
            "description": "2.8.0: the package of the server core that runs (name and version of the application above may differ)",
            "$ref": "#/components/schemas/CoreVersion"
          }
        }
      },
      "CoreVersion": {
        "title": "CoreVersion",
        "type": "object",
        "required": [
          "name",
          "version"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "name": "X-AUTH-APIKEY",
        "in": "header"
      },
      "httpAuth": {
        "type": "http",
        "scheme": "bearer"
      },
      "httpAuth1": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
