Work

Work Create

There are a list of available work-types in the workflow api.

To create a work unit, there is a config block with the work configuration settings, with the fields listed in the workflow.


curl -s -H "Authorization: $LIOKEY" \
  -XPOST "https://api.lytics.io/api/work" -d '
{
    "workflow_id":"eventscopy"
    , "name":"Ecommerce Demo Copy"
    , "config":{
        "destination_aid": "2223"
    }
}
' | jq '.'

post/api/work

Request

  • Base URL
    https://api.lytics.io
  • URL
    https://api.lytics.io/api/work
  • Auth
    API key in header Authorization

Query parameters

account_idstring

Your Lytics account ID.

Request body

workflow_idstring

Example request

{
  "config": {
    "delimiter": null,
    "email_to": "fake@gmail.com",
    "fields": [],
    "limit": null,
    "segment_id": "d5975ab901f7f660845c95ee6aa3cadd",
    "table": "user",
    "write_headers": true
  },
  "workflow_id": "75ce615fdfa048b7a5d5ea41fe7c1260"
}

Response

Created

Example response

{
  "data": {
    "account_id": "4f7b525bdba058fc096757a6",
    "aid": 12,
    "config": {
      "delimiter": null,
      "email_to": "fake@gmail.com",
      "fields": [],
      "limit": null,
      "segment_id": "d5975ab901f7f660845c95ee6aa3cadd",
      "table": "user",
      "write_headers": true
    },
    "state": {},
    "statuscode": "completed",
    "hidden": false,
    "id": "ca756c13469228b723652f1e5168650f",
    "created": "2014-08-04T21:18:20.124Z",
    "updated": "2014-08-04T21:18:20.124Z",
    "runtime": "",
    "deleted": false,
    "tag": "",
    "user_id": "50f4c7c6e327a73ae8000004",
    "work_state_version": 0,
    "workflow": "lytics_simple_csv_export",
    "workflow_id": "75ce615fdfa048b7a5d5ea41fe7c1260"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.