| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

### Request Parameters

| Parameter             | Type              | Required | Description                                   |
| :-------------------- | :---------------- | :------- | :-------------------------------------------- |
| `hashid`             | string            | required | ID of the source folder                       |
| `to_folder_id`       | string            | required | ID of the destination folder                  |
| `name`               | string            | required | length ≤ 255                                 |
| `category`           | string            | enum     | - `BUSINESS` \- Business                     |
|                      |                   |          | - `HOUSEHOLD` \- Household                   |
|                      |                   |          | - `OTHER` \- Other                           |
| `parent_folder`      | string \| null    |          |                                                |
| `portal_flows_enabled` | boolean         |          | Whether portal flows are enabled for this folder |
| `welcome_page_enabled` | boolean         |          | Whether the welcome/consent page is shown for this folder's portal users |
| `disabled_flow_slugs` | array of strings  |          | List of disabled flow slugs                  |

### Content-Type

| Content-Type                             | Description                                      |
| :--------------------------------------- | :----------------------------------------------- |
| `application/json`                      | Default content type for requests                |
| `application/x-www-form-urlencoded`     | Alternative content type                          |
| `multipart/form-data`                   | Alternative content type for file uploads        |

# Response

### `200 OK`

```json
{
  "message": "string",
  "files_moved": 0,
  "from_folder": {
    "id": "string",
    "name": "string"
  },
  "to_folder": {
    "id": "string",
    "name": "string"
  }
}
```

### Error Responses

- `400 Bad Request`
- `401 Unauthorized`
- `404 Not Found`

### Example cURL Request

```
curl --request POST \
     --url https://api.flextract.dev/api/folders/hashid/merge/to/to_folder_id/ \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
```
