---
title: "Creates a folder on Agent"
method: POST
path: "/agents/{id}/fs/createfolder"
tags: ["Agents"]
---

# Creates a folder on Agent

`POST /agents/{id}/fs/createfolder`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/agents/{id}/fs/createfolder`
- Auth: API key in header `Authorization`

Creates a folder on Agent's filesystem or bucket/share/container in object storage.

## Path parameters

- `id` number, required

## Request body

- object
  - `path` string, required: Path to folder or name of bucket/share/container
  - `storageId` number: Storage id. Storage configuration must have empty bucket/share/container Please set the maximum request timeout (more than 30 sec) because the request may take a long time.

## Response `200`

Successful response

- object

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
