> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Folder

> Create a folder in a SharePoint document library or OneDrive

Create a folder in a SharePoint document library or OneDrive. Returns the existing folder if it already exists.

|                       |                            |
| --------------------- | -------------------------- |
| **App**               | Microsoft SharePoint       |
| **Operation ID**      | `sharepoint_create_folder` |
| **Type**              | Action                     |
| **Connection**        | `sharepoint` (required)    |
| **Credits per run**   | 1                          |
| **Agent / MCP tool**  | Yes                        |
| **Requires approval** | Yes (write operation)      |

## Inputs

| Field         | Type                 | Required | Default | Description                                                                                                                                            |
| ------------- | -------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `site`        | string or SelectItem | No       | -       | SharePoint site the document library belongs to, or 'me' for the user's own OneDrive.                                                                  |
| `drive`       | string or SelectItem | No       | -       | Document library (drive) to create the folder in. Not needed when folder\_path is a full SharePoint link.                                              |
| `folder_path` | string               | No       | -       | Parent folder: a path inside the library, e.g. 'Creative Ads', or a full SharePoint folder link. Leave empty to create the folder in the library root. |
| `folder_name` | string               | Yes      | -       | Name of the folder to create, e.g. '2026-08'.                                                                                                          |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `Dict`

Returns the created (or already existing) folder.

**Fields**: `folder_id`, `folder_name`, `folder_url`, `created`
