Choose your language:
    Retrieve a job result
    Returns
    Returns a job_result object.

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const jobResultId = '34';
    const jobResult = await client.jobResult.find(jobResultId);
    console.log(jobResult);
    }
    run();
    Returned output:
    > node example.js
    {
    "id": "34",
    "status": 200,
    "payload": {
    "data": {
    "id": 999,
    "type": "item_type",
    "attributes": {
    "some": "attributes"
    }
    }
    }
    }