---
title: "SearchCorporateStoriesPreview is like SearchCorporateStories but also includes articles that are only in preview mode in Contentful."
url: "https://developer-qual.migros.ch/apis/content-search-api-qual-v1/versions/169d9ab2-7072-4f6f-811a-fff1e6bc0086/operations/ContentSearch_SearchCorporateStoriesPreview"
---

> Full API specification: https://developer-qual.migros.ch/apis/content-search-api-qual-v1/versions/169d9ab2-7072-4f6f-811a-fff1e6bc0086.md

# SearchCorporateStoriesPreview is like SearchCorporateStories but also includes articles that are only in preview mode in Contentful.

`POST` `/migros/contentsearch/v1/preview/corporate/stories/search`

Operation ID: `ContentSearch_SearchCorporateStoriesPreview`

## Request body (required)

Content types: `application/json`

## Responses

- `200` - A successful response.
- `default` - An unexpected error response.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: ContentSearch API QUAL
  version: v1.114.1
servers:
  - url: https://api-qual.migros.ch
paths:
  /migros/contentsearch/v1/preview/corporate/stories/search:
    post:
      operationId: ContentSearch_SearchCorporateStoriesPreview
      requestBody:
        $ref: "#/components/requestBodies/ContentSearch_SearchCorporateStoriesBody"
      responses:
        "200":
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/contentsearchSearchCorporateStoriesResponse"
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/googlerpcStatus"
          description: An unexpected error response.
      security:
        - apiKeyAuth: []
      summary: |-
        SearchCorporateStoriesPreview is like SearchCorporateStories
        but also includes articles that are only in preview mode in Contentful.
      tags:
        - ContentSearch
security:
  - apiKeyAuth: []
components:
  requestBodies:
    ContentSearch_SearchCorporateStoriesBody:
      content:
        application/json:
          schema:
            allOf:
              - $ref: "#/components/schemas/contentsearchSearchCorporateStoriesRequest"
      required: true
  schemas:
    contentsearchSearchCorporateStoriesResponse:
      properties:
        stories:
          description: >-
            Optional. If stories matching the requested criteria were found,
            they're

            in here.
          items:
            allOf:
              - $ref: "#/components/schemas/contentsearchCorporateStory"
            type: object
          type: array
        totalHits:
          description: >-
            Total number of stories for this request, not taking
            options.page_size into

            account.
          format: int64
          type: string
      type: object
    googlerpcStatus:
      properties:
        code:
          format: int32
          type: integer
        details:
          items:
            allOf:
              - $ref: "#/components/schemas/protobufAny"
            type: object
          type: array
        message:
          type: string
      type: object
    contentsearchSearchCorporateStoriesRequest:
      properties:
        doNotMatch:
          description: >-
            Optional. Terms not to be matched, multiple terms will be combined
            with an

            "AND" relationship.
          items:
            allOf:
              - $ref: "#/components/schemas/contentsearchTerm"
            type: object
          type: array
        language:
          allOf:
            - $ref: "#/components/schemas/contentsearchLanguage"
          description: >-
            Optional. If set, only stories matching this language will be
            returned. By

            default, german news are returned.
        match:
          description: >-
            Optional. Terms to be matched, multiple terms will be combined with
            an

            "AND" relationship.
          items:
            allOf:
              - $ref: "#/components/schemas/contentsearchTerm"
            type: object
          type: array
        options:
          allOf:
            - $ref: "#/components/schemas/contentsearchOutputOptions"
          description: Optional. OutputOptions for pagination and sorting.
        searchTerm:
          description: Optional. Search Term for fulltext-search.
          type: string
        timeTerms:
          description: >-
            Optional. Time terms to be matched, multiple time terms will be
            combined

            with an "AND" relationship.
          items:
            allOf:
              - $ref: "#/components/schemas/contentsearchTimeTerm"
            type: object
          type: array
      type: object
    contentsearchCorporateStory:
      properties:
        content:
          description: Required.
          type: string
        id:
          title: Required. ID of the story
          type: string
        releaseDate:
          description: The time the content was published.
          format: date-time
          type: string
        slug:
          description: The story's slug.
          type: string
        tags:
          items:
            allOf:
              - $ref: "#/components/schemas/contentsearchCategoryTag"
            type: object
          title: Required. Tags of the story
          type: array
        teaserImage:
          allOf:
            - $ref: "#/components/schemas/contentsearchImage"
          title: Required. Teaser image of the story
        title:
          description: Required. The title of this story.
          type: string
        titleImage:
          allOf:
            - $ref: "#/components/schemas/contentsearchImage"
          title: Required. Title image of the story
        topic:
          description: |-
            Topic / "Dachzeile" of the story teaser.

            Content taken from the story itself.
          type: string
      title: |-
        Story represents a story published to Migros corporate websites
        and is stored in the Corporate Contentful Space with the ID: ra41rfif8mpw.
        https://app.contentful.com/spaces/ra41rfif8mpw/environments/staging/views/entries
      type: object
    protobufAny:
      additionalProperties: {}
      properties:
        "@type":
          type: string
      type: object
    contentsearchTerm:
      properties:
        field:
          description: Required. Name of the field this term applies to, e.g. 'tags.id'.
          type: string
        values:
          description: >-
            Required. Values of the above field. These will be combined with an
            "OR"

            relationship.
          items:
            type: string
          type: array
      title: |-
        Term matches a field with one or multiple values. Multiple values are
        combined with an "OR" relationship
      type: object
    contentsearchLanguage:
      default: DE
      enum:
        - DE
        - FR
        - IT
        - EN
      title: Languages which can be filtered
      type: string
    contentsearchOutputOptions:
      properties:
        nextPageFrom:
          format: int64
          title: >-
            Optional. An offset into the elasticsearch response from where news
            should

            be returned, e.g. 6
          type: string
        pageSize:
          description: Optional. The maximum number of items to return in the response.
          format: int64
          type: string
        sortBy:
          description: >-
            Optional. A list of sort parameters to determine the order of the
            results.

            Example: ["updatedAt:desc", "_score:desc"].

            Each entry specifies a field and its sort direction (asc/desc).
          items:
            type: string
          type: array
      title: OutputOptions configures pagination and sorting
      type: object
    contentsearchTimeTerm:
      description: TimeTerm filters a time field. Either min, max or both should be
        provided.
      properties:
        field:
          description: Required. Name of the field that this term applies to, e.g.
            'updated_at'.
          type: string
        max:
          description: |-
            Optional. Max timestamp value that should be allowed for the field
            (exclusive).
          format: date-time
          type: string
        min:
          description: |-
            Optional. Min timestamp value that should be allowed for the field
            (inclusive).
          format: date-time
          type: string
      type: object
    contentsearchCategoryTag:
      properties:
        category:
          type: string
        id:
          type: string
        title:
          type: string
      type: object
    contentsearchImage:
      properties:
        altText:
          type: string
        caption:
          type: string
        credits:
          type: string
        focalPoint:
          allOf:
            - $ref: "#/components/schemas/ImagePoint"
        height:
          format: int64
          type: string
        id:
          type: string
        mimeType:
          type: string
        shortCaption:
          type: string
        url:
          type: string
        width:
          format: int64
          type: string
      type: object
    ImagePoint:
      properties:
        x:
          format: int64
          type: string
        y:
          format: int64
          type: string
      type: object
  securitySchemes:
    apiKeyAuth:
      in: header
      name: X-Api-Key
      type: apiKey
```
