Jobs API

Using this API we can get information about the job

HTTP Method Endpoint Description
GET /jobs Get Latest 50 Jobs
GET /jobs/{id} Get Info about a single job

Sample Request

curl -i -X GET -H "X-Api-Key: {key}" 'https://api.vnative.com/jobs/{id}'

Sample Response

{
    "success": true,
    "data": {
        "job": {
            "orgId": "{orgId}",
            "type": "import",
            "subType": "job_import_conversion",
            "relatedObject": {
                "csvPath": "59f2243beda1b.csv"
            },
            "resource": "Conversion",
            "resourceId": null,
            "state": "done",
            "_id": "{id}",
            "created": "2017-10-26 18:06:51",
            "modified": "2017-10-26 18:07:03",
            "meta": {}
        },
        "logs": [
            {
                "object": "job.logs",
                "priority": 1,
                "message": "Total Conversions Updated/Imported: 2",
                "_id": "59f2244789d4465d6e7a2f8e",
                "created": "2017-10-26 23:37:03"
            },
            {
                "object": "job.logs",
                "priority": 1,
                "message": "Report will be updated for date 2017-10-24",
                "_id": "59f2244789d4465d6e7a2f8b",
                "created": "2017-10-26 23:37:03"
            },
            {
                "object": "job.logs",
                "priority": 1,
                "message": "Report will be updated for date 2017-10-25",
                "_id": "59f2244789d4465d6e7a2f87",
                "created": "2017-10-26 23:37:03"
            }
        ]
    }
}

Notes

  • Job Status can be pending, running, done, failed
  • Currently the latest 100 logs will be displayed when getting info about a single job

results matching ""

    No results matching ""