# Search Mixed Content

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/content/management/mixed_content/search:
    post:
      summary: Search Mixed Content
      deprecated: false
      description: >-
        Allows to search through different type of content records (e.g.
        Articles, Events)
      tags:
        - API Reference/Management API/CMS/Other/Mixed Content
      parameters:
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: X-Customer
          in: header
          description: Customer for API context.  [Details](doc-342139)
          required: false
          example: '{{CUSTOMER_ID}}'
          schema:
            type: string
            default: '{{CUSTOMER_ID}}'
        - name: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                mixed_content:
                  type: object
                  properties:
                    publication_status:
                      type: string
                      description: >-
                        When present, only records with specified type are
                        returned
                      enum:
                        - published
                        - scheduled
                      x-apidog-enum:
                        - value: published
                          name: ''
                          description: ''
                        - value: scheduled
                          name: ''
                          description: ''
                    types:
                      type: array
                      items:
                        type: string
                        enum:
                          - article
                          - event
                          - promotion
                          - store
                          - press_release
                          - job_posting
                        x-apidog-enum:
                          - value: article
                            name: ''
                            description: ''
                          - value: event
                            name: ''
                            description: ''
                          - value: promotion
                            name: ''
                            description: ''
                          - value: store
                            name: ''
                            description: ''
                          - value: press_release
                            name: ''
                            description: ''
                          - value: job_posting
                            name: ''
                            description: ''
                      default:
                        - event
                        - article
                        - promotion
                      description: >-
                        When present, only records with specified type are
                        returned

                        **If missing will default into types used for mixed
                        content block (article, event, promotion).**
                    page_no:
                      type: integer
                      description: >-
                        Number of results page. See: [API
                        Pagination](doc-341638)
                      default: 1
                    per_page:
                      type: integer
                      description: >-
                        Number of results to be returned per request. See: [API
                        Pagination](doc-341638)
                      default: 100
                    sort_by:
                      type: array
                      items:
                        type: string
                        enum:
                          - visible_since
                          - visible_until
                          - created_at
                          - updated_at
                        x-apidog-enum:
                          - value: visible_since
                            name: ''
                            description: ''
                          - value: visible_until
                            name: ''
                            description: ''
                          - value: created_at
                            name: ''
                            description: ''
                          - value: updated_at
                            name: ''
                            description: ''
                      description: 'See: [Sorting params](doc-341639)'
                    sort_directions:
                      type: array
                      items:
                        type: string
                        enum:
                          - ASC
                          - DESC
                        x-apidog-enum:
                          - value: ASC
                            name: ''
                            description: ''
                          - value: DESC
                            name: ''
                            description: ''
                      description: 'See: [Sorting params](doc-341639)'
                    search:
                      type: string
                      description: >-
                        When present, only records with pharse in headline,
                        title 
                    references:
                      type: array
                      items:
                        type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - article
                              - event
                              - promotion
                            x-apidog-enum:
                              - value: article
                                name: ''
                                description: ''
                              - value: event
                                name: ''
                                description: ''
                              - value: promotion
                                name: ''
                                description: ''
                          id:
                            type: integer
                        x-apidog-orders:
                          - type
                          - id
                        x-apidog-ignore-properties: []
                      description: >-
                        When present, only records matching given type + id pair
                        are returned
                    tag_ids:
                      $ref: '#/components/schemas/tag_ids'
                      description: >-
                        When present, only records with one of specified tags
                        are returned
                  x-apidog-orders:
                    - publication_status
                    - types
                    - page_no
                    - per_page
                    - sort_by
                    - sort_directions
                    - search
                    - references
                    - tag_ids
                  x-apidog-ignore-properties: []
              required:
                - mixed_content
              x-apidog-orders:
                - mixed_content
              x-apidog-ignore-properties: []
            example:
              mixed_content:
                publication_status: published
                types:
                  - event
                  - article
                page_no: 2
                per_page: 10
                sort_by:
                  - visible_since
                sort_directions:
                  - DESC
                tag_ids:
                  - 1
                  - 2
                  - 3
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          $ref: '#/components/schemas/id'
                        type:
                          type: string
                          enum:
                            - article
                            - event
                            - promotion
                            - store
                            - job_posting
                            - press_release
                          x-apidog-enum:
                            - value: article
                              name: ''
                              description: ''
                            - value: event
                              name: ''
                              description: ''
                            - value: promotion
                              name: ''
                              description: ''
                            - value: store
                              name: ''
                              description: ''
                            - value: job_posting
                              name: ''
                              description: ''
                            - value: press_release
                              name: ''
                              description: ''
                        customer_id:
                          $ref: '#/components/schemas/id.customer_id'
                        title: &ref_0
                          $ref: '#/components/schemas/LocalizedContent'
                        headline: *ref_0
                        visible_since:
                          anyOf:
                            - $ref: '#/components/schemas/cms.visible_since'
                            - type: 'null'
                        visible_until:
                          anyOf:
                            - $ref: '#/components/schemas/cms.visible_until'
                            - type: 'null'
                        created_at:
                          $ref: '#/components/schemas/date_time.created_at'
                        updated_at:
                          $ref: '#/components/schemas/date_time.updated_at'
                        image:
                          anyOf:
                            - $ref: '#/components/schemas/File'
                            - type: 'null'
                        publication_status:
                          $ref: '#/components/schemas/cms.publication_status'
                        url:
                          $ref: '#/components/schemas/cms.url'
                      required:
                        - id
                        - type
                        - customer_id
                        - title
                        - headline
                        - visible_since
                        - visible_until
                        - created_at
                        - updated_at
                        - image
                        - publication_status
                        - url
                      x-apidog-orders:
                        - id
                        - type
                        - customer_id
                        - title
                        - headline
                        - visible_since
                        - visible_until
                        - created_at
                        - updated_at
                        - image
                        - publication_status
                        - url
                      x-apidog-ignore-properties: []
                    description: >-
                      Fields that are common for all types are listed here.
                      Response includes also type-specific fields like "author"
                      for articles
                  pagination_info:
                    $ref: '#/components/schemas/PaginationInfo'
                required:
                  - items
                  - pagination_info
                x-apidog-orders:
                  - items
                  - pagination_info
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: API Reference/Management API/CMS/Other/Mixed Content
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3630867-run
components:
  schemas:
    tag_ids:
      type: array
      items:
        type: integer
        minimum: 1
        examples:
          - 8216745
        title: References to tags
      description: >-
        ID of record's
        [Tags](https://api.developer.placewise.com/doc-346913.md) 
      x-apidog-folder: ''
    PaginationInfo:
      type: object
      properties:
        count:
          type: integer
          description: Actual number of results returned in request
          readOnly: true
          examples:
            - 1000
        total_count:
          type: integer
          description: Number of all available results
          minimum: 1
          examples:
            - 2050
        per_page:
          type: integer
          description: Number of results returned per request
          readOnly: true
          examples:
            - 1000
        total_pages:
          type: integer
          description: Number of all available pages
          readOnly: true
          examples:
            - 3
        current_page:
          type: integer
          readOnly: true
          examples:
            - 1
        next_page:
          type: integer
          description: Next available page (null when it's a last page)
          readOnly: true
          examples:
            - 2
          nullable: true
        prev_page:
          type: integer
          description: Next available page (null when it's a first page)
          readOnly: true
          examples:
            - null
          nullable: true
        is_first_page:
          type: boolean
          readOnly: true
          examples:
            - true
        is_last_page:
          type: boolean
          readOnly: true
          examples:
            - false
        is_out_of_range:
          type: boolean
          description: Is given `per_page` param out of range?
          readOnly: true
          examples:
            - false
        offset:
          type: integer
          readOnly: true
          examples:
            - 0
      required:
        - count
        - total_count
        - per_page
        - total_pages
        - current_page
        - next_page
        - prev_page
        - is_first_page
        - is_last_page
        - is_out_of_range
        - offset
      x-apidog-orders:
        - count
        - total_count
        - per_page
        - total_pages
        - current_page
        - next_page
        - prev_page
        - is_first_page
        - is_last_page
        - is_out_of_range
        - offset
      readOnly: true
      x-apidog-ignore-properties: []
      nullable: true
      x-apidog-folder: ''
    cms.url:
      type: string
      description: Address of the entity page on website
      examples:
        - path/to/:id
      readOnly: true
      x-apidog-folder: ''
    cms.publication_status:
      type: string
      description: >-
        Visibility status of the record in [CMS Public API](doc-341653) that
        takes into the consideration `status`, `visible_since`  and
        `visible_until` dates
      enum:
        - published
        - draft
        - expired
        - scheduled
      examples:
        - published
      readOnly: true
      x-apidog-enum:
        - value: published
          name: ''
          description: ''
        - value: draft
          name: ''
          description: ''
        - value: expired
          name: ''
          description: ''
        - value: scheduled
          name: ''
          description: ''
      x-apidog-folder: ''
    File:
      type: object
      properties:
        url:
          type: string
          format: uri
          readOnly: true
          examples:
            - https://example.com/image.png
        identifier:
          type: string
          description: Only present when parent record has many files
          examples:
            - '1'
        mime_type:
          type: string
          examples:
            - image/jpeg
          readOnly: true
          description: Only present in certain circumstances
          nullable: true
        created_at:
          type: string
          format: date-time
          examples:
            - '2022-11-09T15:46:00.252860Z'
        updated_at:
          type: string
          format: date-time
          readOnly: true
          examples:
            - '2022-11-09T15:46:00.252860Z'
        image_details:
          type: object
          properties:
            width:
              type: integer
              minimum: 1
            height:
              type: integer
              minimum: 1
          x-apidog-orders:
            - width
            - height
          x-apidog-ignore-properties: []
          nullable: true
      x-apidog-orders:
        - url
        - identifier
        - mime_type
        - created_at
        - updated_at
        - image_details
      required:
        - url
        - created_at
        - updated_at
      readOnly: true
      x-apidog-ignore-properties: []
      nullable: true
      x-apidog-folder: ''
    date_time.updated_at:
      type: string
      description: Time of the last record update
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    date_time.created_at:
      type: string
      description: Time of record creation
      format: date-time
      examples:
        - '2022-11-05T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    cms.visible_until:
      type: string
      description: Date until the record is visible in [CMS Public API](doc-341653)
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      x-apidog-folder: ''
    cms.visible_since:
      type: string
      description: Date since the record is visible in [CMS Public API](doc-341653)
      format: date-time
      examples:
        - '2022-11-09T16:25:58.099512Z'
      x-apidog-folder: ''
    LocalizedContent:
      type: object
      properties: {}
      x-apidog-orders: []
      title: ''
      examples:
        - en: Text
      additionalProperties:
        type: string
        description: >-
          The actual set of languages depends on LC configuration. See:
          [Localization](doc-341959)
        examples:
          - Tekst
        nullable: true
      x-apidog-ignore-properties: []
      nullable: true
      x-apidog-folder: ''
    id.customer_id:
      type: integer
      format: uint64
      readOnly: true
      examples:
        - 447
      description: Customer the record is assigned to
      x-apidog-folder: ''
    id:
      type: integer
      description: Primary identifier of the record
      format: uint64
      readOnly: true
      examples:
        - 1
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```