# Create a vault

Create a new vault

Endpoint: POST /v2/vaults
Version: 2.0
Security: TokenAuth

## Security:

  - `TokenAuth` (unknown)
    apiKey in header Authorization

## Request fields (application/json):

  - `name` (string, required)
    The name of the vault
    Example: Treasury vault

  - `description` (string)
    The description of the vault
    Example: A vault used by the treasury department

  - `externalId` (string)
    External ID of this vault, unique to the organization
    Example: ce4918bf-a199-4ce2-85a3-d0d296855384

  - `correlationId` (string)
    Correlation ID for tracking correlating actions with this vault creation
    Example: ce4918bf-a199-4ce2-85a3-d0d296855384

## Response 200 fields (application/json):

  - `id` (string, required)
    The vault ID
    Example: ce4918bf-a199-4ce2-85a3-d0d296855384

  - `createdBy` (string, required)
    The user ID that created the vault
    Example: ce4918bf-a199-4ce2-85a3-d0d296855384

  - `createdAt` (string, required)
    The date and time the vault was created
    Example: 2022-03-29T10:22:22.420Z

  - `updatedAt` (string, required)
    The date and time the vault was updated
    Example: 2022-03-29T10:22:22.420Z

  - `name` (string, required)
    The name of the vault
    Example: Treasury vault

  - `description` (string)
    The description of the vault
    Example: A vault used by the treasury department

  - `externalId` (string)
    External ID of this vault, unique to the organization
    Example: ce4918bf-a199-4ce2-85a3-d0d296855384

  - `correlationId` (string)
    Correlation ID for the vault
    Example: ce4918bf-a199-4ce2-85a3-d0d296855384

## Response 400:

  - `400` (unknown)
    Returned when the request is malformed or invalid.

## Response 400 fields (application/json):

  - `code` (integer)

  - `message` (string)

  - `details` (array)

  - `details.@type` (string)

## Response 401:

  - `401` (unknown)
    Returned when the request was unauthorized.

## Response 401 fields (application/json):

  - `code` (integer)

  - `message` (string)

  - `details` (array)

  - `details.@type` (string)

## Response 403:

  - `403` (unknown)
    Returned when the request was forbidden.

## Response 403 fields (application/json):

  - `code` (integer)

  - `message` (string)

  - `details` (array)

  - `details.@type` (string)

## Response 404:

  - `404` (unknown)
    Returned when the resource does not exist.

## Response 404 fields (application/json):

  - `code` (integer)

  - `message` (string)

  - `details` (array)

  - `details.@type` (string)

## Response default:

  - `default` (unknown)
    An unexpected error response.

## Response default fields (application/json):

  - `code` (integer)

  - `message` (string)

  - `details` (array)

  - `details.@type` (string)

## Response 400 examples:

  - `response` (unknown)

## Response 401 examples:

  - `response` (unknown)

## Response 403 examples:

  - `response` (unknown)

## Response 404 examples:

  - `response` (unknown)

