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

# Add files and folders

> Create new folders and upload files to specific directories

### Path

<ParamField path="YOUR_BUCKET_NAME" type="string" required>
  The name of the S3 bucket you want to create folders and files in.
</ParamField>

<ParamField path="PATH+" type="string" required>
  The path that you would like to add folders or files to of the form "folder1/folder2" or empty string if you want to add a file to the root directory.
</ParamField>

### Response

<ResponseField name="statusCode" type="number">
  Based off of standard HTTP request guidelines
</ResponseField>

<ResponseField name="body" type="object">
  Information concerning s3 bucket path request
</ResponseField>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "statusCode": 200,
    "body" {
      ...
      compelete: true,
    }
  }
  ```

  ```json Error Response theme={null}
  {
    "statusCode": 400,
    "body" {
      err: { ... },
      compelete: false
    }
  }
  ```
</ResponseExample>
