Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Job result

Retrieve a job result

Returns

Returns a resource object of type job_result

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const jobResultId = "34";
const jobResult = await client.jobResults.find(jobResultId);
// Check the 'Returned output' tab for the result ☝️
console.log(jobResult);
}
run();
{
id: "34",
status: 200,
payload: {
data: { id: 999, type: "item_type", attributes: { some: "attributes" } },
},
}