---
search:
  tags:
    - Sandboxes
    - POST
seo:
  description: >-
    Make directories. Reference for the POST /v1/sandboxes/{id}/directories
    endpoint in the Ibby API.
sidebar:
  label: Make directories
  badge: POST
title: Make directories
type: openapi-operation
---
`POST /v1/sandboxes/{id}/directories`

**Request body** (`application/json`, required)

- `paths` (string[], required) — Directories to make, with their parents. One that exists already is fine.

Request body example:

```json
{
  "paths": [
    "string"
  ]
}
```

**Responses**

- `200` — The directories exist.
- `400` — \`invalid\_request\`: The request does not match the contract.
- `401` — \`unauthorized\`: The API key is missing, unknown or revoked.
- `404` — \`not\_found\`: No such resource in this key's lane. Another lane's ids are not found either.
- `409` — \`sandbox\_stopped\`: The sandbox has stopped: its lifetime or size limit was reached, or it was removed. \`in\_progress\`: A call with this \`Idempotency-Key\` is still running, or the sandbox is still being created. Retry later. \`idempotency\_mismatch\`: The \`Idempotency-Key\` was used before with a different body.
- `500` — \`internal\_error\`: The platform failed. A retry may succeed; for a call that creates or writes, retry with the same Idempotency-Key.
- `503` — \`unavailable\`: A service behind the API could not be reached. Retry after a short wait; for a call that creates or writes, with the same Idempotency-Key.

Response example, 200:

```json
{
  "paths": [
    "string"
  ]
}
```
