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

# Post v2 jobs

> Imports file for a specific Entity type. Supports CSV and JSONL formats.



## OpenAPI

````yaml openapi/dataimport-v2.json POST /v2/Jobs
openapi: 3.0.1
info:
  title: DataImport.Api
  version: v2
servers:
  - url: https://{host}/dataimport
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v2/Jobs:
    post:
      tags:
        - Service2Service
      description: Imports file for a specific Entity type. Supports CSV and JSONL formats.
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - EntityName
                - file
                - Format
              type: object
              properties:
                file:
                  type: string
                  format: binary
                EntityName:
                  enum:
                    - BlockMembers
                    - BonusAdjustment
                    - Hierarchy
                    - Hierarchy(Incremental)
                    - HierarchyReferenceBook
                    - LoyaltyCards
                    - Members
                    - OffersV2
                    - Product
                    - PromotionSegmentation
                    - Promotions
                    - Purchases
                    - Stores
                    - StoresAdjustments
                    - UpdatePurchases
                  type: string
                ImportMode:
                  $ref: '#/components/schemas/ImportMode'
                Format:
                  $ref: '#/components/schemas/Format'
            encoding:
              file:
                style: form
              EntityName:
                style: form
              ImportMode:
                style: form
              Format:
                style: form
      responses:
        '202':
          description: Accepted
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ImportJobStateResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ImportJobStateResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ImportJobStateResponse'
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/WebServiceError'
            application/json:
              schema:
                $ref: '#/components/schemas/WebServiceError'
            text/json:
              schema:
                $ref: '#/components/schemas/WebServiceError'
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/WebServiceError'
            application/json:
              schema:
                $ref: '#/components/schemas/WebServiceError'
            text/json:
              schema:
                $ref: '#/components/schemas/WebServiceError'
components:
  schemas:
    ImportMode:
      enum:
        - Incremental
        - Full
      type: string
    Format:
      enum:
        - Csv
        - Jsonl
      type: string
    ImportJobStateResponse:
      type: object
      properties:
        jobId:
          type: string
          nullable: true
        status:
          $ref: '#/components/schemas/ImportJobState'
      additionalProperties: false
    WebServiceError:
      required:
        - message
        - name
      type: object
      properties:
        name:
          minLength: 1
          type: string
        message:
          minLength: 1
          type: string
        details:
          nullable: true
      additionalProperties: false
    ImportJobState:
      enum:
        - Created
        - Pending
        - Queued
        - Started
        - Done
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        JWT Authorization header using the Bearer scheme. Example: "Bearer
        {token}"
      name: Authorization
      in: header

````