post:
  tags:
    - Vault
  summary: Initialize vault
  operationId: VaulAdminInittPost
  description: >-
    Initializes vault database and stores password for further requests. This
    API requires the current user to be member of group `Administrators`.
    Returns 403 otherwise. The `Administrators` group name is hardcoded and
    cannot be changed at the moment
  requestBody:
    description: Password to unlock the vault
    content:
      '*/*':
        schema:
          $ref: ../components/schemas/SinglePassword.yaml
    required: true
  responses:
    '201':
      description: Successful Operation
      content: {}
    '400':
      description: Password is too short or too long
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
    '403':
      description: >-
        current user should belong to Administrators group to access this
        resource
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
    '409':
      description: vault is already initialized
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
    '500':
      description: Invalid Operation
      content:
        application/json:
          schema:
            $ref: ../components/schemas/ErrorPayload.yaml
  x-codegen-request-body-name: password
