# CORS preflight



Operation: createSearchOverviewOptions
OPTIONS /api/recommendation/overviews/{collection}

Access: anonymous. Automatic retries: none. Redirects: manual. Request body limit: 0 bytes.
Default timeout: 30 seconds. Response limit: 16 MiB. Pagination is opt-in and bounded; an exhausted bound reports incomplete execution.

[HTML reference](/developers/api/createSearchOverviewOptions) · [Authoritative schemas](/api/openapi.json)

## Wire contract

```json
{
  "operationId": "createSearchOverviewOptions",
  "summary": "CORS preflight",
  "parameters": [
    {
      "name": "collection",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "enum": [
          "videos",
          "movies",
          "music",
          "podcasts"
        ]
      }
    }
  ],
  "tags": [
    "recommendation"
  ],
  "security": [],
  "responses": {
    "204": {
      "description": "Preflight response"
    },
    "403": {
      "description": "Origin is not allowed"
    }
  }
}
```

## Synthetic examples

### curl

```bash
curl --fail-with-body --max-time 30 --max-filesize 16777216 --request OPTIONS 'https://irvinebroque.com/api/recommendation/overviews/videos'
```

### TypeScript

```typescript
import { PublicApi } from '@irvinebroque/public-api';
const api = new PublicApi();
const result = await api.recommendation.overviewOptions({
  "collection": "videos"
});
console.log(result.status, result.headers.get('content-type')); // Keep transient capabilities in memory.
```

### CLI

```bash
irvinebroque recommendation overview-options --collection 'videos'
```
