> ## 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 v1 jobs

> Creates a new import job. Returns a job ID that you'll use to upload the file and track progress.



## OpenAPI

````yaml openapi/dataimport-v1.json POST /v1/Jobs
openapi: 3.0.1
info:
  title: DataImport.Api
  version: v1
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:
  /v1/Jobs:
    post:
      tags:
        - Service2Service
      description: >-
        Creates a new import job. Returns a job ID that you'll use to upload the
        file and track progress.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportJobRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ImportJobRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ImportJobRequest'
      responses:
        '201':
          description: Created
          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'
components:
  schemas:
    ImportJobRequest:
      required:
        - entityName
        - format
      type: object
      properties:
        entityName:
          minLength: 1
          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'
      additionalProperties: false
    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
    ImportMode:
      enum:
        - Incremental
        - Full
      type: string
    Format:
      enum:
        - Csv
        - Jsonl
      type: string
    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

````