---
title: "Create directories."
method: POST
path: "/directories/prepare"
---

# Create directories.

`POST /directories/prepare`

## Request

- Base URL: `https://docs.vertica.com/v1`
- URL: `https://docs.vertica.com/v1/directories/prepare`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vertica/apis/node-management-agent-api/docs/directories/prepare/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- CreateDirParams: Parameters for creating directories on the local host.
  - `catalog_path` string
  - `depot_path` string
  - `for_revive` boolean
  - `force_cleanup` boolean
  - `ignore_parent` boolean
  - `storage_locations` string[]: storage_locations should not contain any user storage locations
  - `user_storage_locations` string[]: user_storage_locations will not be forcibly cleaned during database revive

## Response `200`

A GenericMapResponse is the default response that is generated,
the response value is of type "Map" with both key and value of type "string".

- object

## Other responses

- `400`: A RFC7807Error is a generated error that follows RFC7807 specification.
- `405`: A RFC7807Error is a generated error that follows RFC7807 specification.
- `500`: A RFC7807Error is a generated error that follows RFC7807 specification.

---

[API](https://skmtc.dev/vertica/apis/node-management-agent-api.md) - [All operations](https://skmtc.dev/vertica/apis/node-management-agent-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vertica/apis/node-management-agent-api/revisions/1d9449e2142a?raw)
