# Choose folders to scan

Read or choose native Yahoo/AOL folders for your own connected workspace mailbox. Requires the current mailbox owner and active consent. Folder names and derived data are prohibited from advertising use.

Access class: `workspace`.

## Endpoint

`PUT /v1/connections/{id}/mail-folders`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

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

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": [
    {
      "attributes": [
        "string"
      ],
      "delimiter": "string",
      "name": "string",
      "present": true,
      "selectable": true,
      "special_use": [
        "string"
      ],
      "watch_enabled": true
    }
  ],
  "no_advertising": true
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
