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

# Create a result from JSON

> Creates a CSV result file from JSON data.



## OpenAPI

````yaml https://console.lomaplatform.com/api/vendor/v1/openapi post /api/vendor/v1/orders/{orderId}/results/json
openapi: 3.1.0
info:
  title: LOMA Vendor API
  version: 1.0.0
  description: >-
    API for managing vendor data on LOMA.

    ### Authentication


    Your API Key should be passed in the `API-Key` header formatted as
    `KEY_ID:KEY_SECRET`.


    Vendors can create API keys in the LOMA console.
  contact:
    email: support@lomaplatform.com
servers:
  - url: https://console.lomaplatform.com
security: []
paths:
  /api/vendor/v1/orders/{orderId}/results/json:
    post:
      tags:
        - Order Results
      summary: Create a result from JSON
      description: Creates a CSV result file from JSON data.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  minLength: 1
                  maxLength: 256
                data:
                  anyOf:
                    - type: array
                      items: {}
                    - type: array
                      items:
                        type: array
                        items: {}
                    - type: object
                      properties:
                        fields:
                          type: array
                          items:
                            type: string
                        data:
                          type: array
                          items:
                            type: array
                            items: {}
                          description: >-
                            Can be an array of arrays, an array of objects, or
                            an object explicitly defining fields and data
                      required:
                        - fields
                        - data
              required:
                - title
                - data
      responses:
        '200':
          description: 200 OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                required:
                  - id
                example:
                  id: res_sMU0yB4xnQDL
        '404':
          description: Order not found
      security:
        - apiKeyHeader: []
components:
  securitySchemes:
    apiKeyHeader:
      type: apiKey
      in: header
      name: API-Key
      description: API Key for the vendor

````