---
title: "Submit Job"
method: POST
path: "/"
---

# Submit Job

`POST /`

Create Ads from Products via API

## Request body

- object
  - `TaskId` 'create-ads-from-products' | 'create-ads-from-product-query' | 'create-native-product-ad' — The type of task you are submitting. Currently only `create-ads-from-products` and `create-ads-from-product-query` are supported.
  - `TaskArgs` object — Arguments specific to your TaskId
    - `ProductUris` string[] — Array of ItemDB product URIs. Example URI: `itemdb://12345/100/01936422964`. Structure is `itemdb://{network_id}/{catalog_id}/{item_id}`
    - `FlightId` integer — ID of the Flight that Ads should be associated with
    - `AdTemplateUri` string — The ItemDB URI of the Ad Template to be used for creating Ads from product data. Example URI: `itemdb://12345/101/0e9321b3-1446-47ec-b1d7-705bfb7b3fb5`. Structure: `itemdb://{network_id}/{ad_templates_table_id}/{template_uuid}`
    - `Overrides` object — Note that Overrides is a mapping of ItemDB URIs to arrays of objects. Each ItemDB URI specified must be present in ProductUris
      - `<ItemDB URI 1>` object[]
        - `source` string — Either the source field from the product or a scalar value (for `constant` Ops)
        - `target` string[] — Array of strings representing the path into the `ad` or `creative` where the source value should be saved.
        - `op` 'constant' | 'literal' | 'stringify' | 'stringify-array' — How the source should be mapped to the target.
      - `<ItemDB URI 2>` object[]
        - `source` string — Either the source field from the product or a scalar value (for `constant` Ops)
        - `target` string[] — Array of strings representing the path into the `ad` or `creative` where the source value should be saved.
        - `op` 'constant' | 'literal' | 'stringify' | 'stringify-array' — How the source should be mapped to the target.
    - `ProductQuery` unknown[]
      - unknown

## Response `200`

200

- object
  - `CompletedTime` unknown
  - `TaskId` string
  - `NetworkId` integer
  - `Status` string
  - `TaskArgs` object
    - `ProductUris` string[]
    - `AdTemplateUri` string
    - `FlightId` integer
  - `AvailableTime` string
  - `Output` object
  - `Id` integer
  - `PartitionId` unknown

---

[API](https://skmtc.net/kevel/apis/engine-apis.md) · [All operations](https://skmtc.net/kevel/apis/engine-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kevel/engine-apis/versions/0ca55f45aa7d/schema)
