> ## Documentation Index
> Fetch the complete documentation index at: https://docs.taidalos.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Media Search



## OpenAPI

````yaml POST /v1/media-searches/create-search
openapi: 3.0.0
info:
  title: Taidalos API Documentation
  termsOfService: https://www.taidalos.com/gtc/
  contact:
    name: Customer Support
    url: https://www.taidalos.com
    email: cs@taidalos.com
  version: '1.0'
servers:
  - url: https://api.taidalos.com
security: []
tags:
  - description: Operations about subjects
    name: Subjects
  - description: Operations about media search configuration
    name: Media Search Configuration
  - description: Operations about media search
    name: Media Search
externalDocs:
  description: Get started with guides
  url: https://taidalos.com/tags/guide/
paths:
  /v1/media-searches/create-search:
    post:
      tags:
        - Media Search
      summary: Create Media Search
      parameters:
        - description: <Authorization Token>
          name: Authorization
          in: header
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/main.createMediaSearchRequest'
        description: request body
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/main.createMediaSearchResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/main.problemJson'
components:
  schemas:
    main.createMediaSearchRequest:
      type: object
      properties:
        data:
          description: >-
            `data` holds the request payload for creating a media search,
            including subject, configuration, and execution details.
          type: object
          properties:
            execute_immediately:
              description: >-
                `execute_immediately` indicates if the media search should be
                executed immediately after creation.
              type: boolean
              example: true
            media_search_configuration_id:
              description: >-
                `media_search_configuration_id` represents the unique identifier
                for the media search configuration used in the// request
                Search.ConfigId represents the UUID for the media search
                configuration associated with the request.
              type: string
              example: 8920772b-c7a7-42cb-8a6b-0bdfbabb8334
            subject_id:
              description: >-
                `subject_id` represents the unique identifier of the subject
                involved in the media search request.
              type: string
              example: 43a87a3d-0808-4fd2-9cd1-9dbc9c9f75e0
    main.createMediaSearchResponse:
      type: object
      properties:
        data:
          description: >-
            `data` contains the media search result identifiers, including
            `media_search_id` and `media_search_execution_id`.
          type: object
          properties:
            media_search_execution_id:
              description: >-
                `media_search_execution_id` represents the unique identifier for
                tracking the execution of a media search.
              type: string
            media_search_id:
              description: >-
                `media_search_id` represents the unique identifier of a created
                media search within the response.
              type: string
    main.problemJson:
      type: object
      properties:
        context:
          description: >-
            `context` provides additional information about the error, including
            the HTTP method and path where it occurred.
          allOf:
            - $ref: '#/components/schemas/main.defaultProblemContext'
        details:
          description: >-
            `details` provides a detailed human-readable explanation of the
            specific error.
          type: string
          example: Details explaining the error
        instance:
          description: >-
            `instance` specifies a unique URI identifying the context of the
            error, such as organisation, user, and request details.
          type: string
          example: /org/{org_id}/user/{user_id}/request-id/{request_id}
        title:
          description: >-
            `title` provides a short, human-readable summary of the problem type
            or error encountered.
          type: string
          example: Error ShortName
        type:
          description: >-
            `type` is a URI reference that identifies the problem type, allowing
            clients to recognize the type of error encountered.
          type: string
          example: https://errors.taidalos.com/common/{error-type}
    main.defaultProblemContext:
      type: object
      required:
        - method
        - path
      properties:
        method:
          description: >-
            `method` specifies the HTTP method (e.g., GET, POST) that was used
            in the problematic request.
          type: string
          example: '{method}'
        path:
          description: >-
            `path` specifies the HTTP request path associated with the
            encountered problem.
          type: string
          example: '{path}'
        timestamp:
          type: string

````