Sorry, no results found for "".
Returns a resource object of type editing_session
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const editingSessionId = "312";7 8 const editingSession = await client.editingSessions.destroy(editingSessionId);9 10 // Check the 'Returned output' tab for the result ☝️11 console.log(editingSession);12}13 14run();
1{2 id: "312",3 last_activity_at: "2019-03-30T09:29:14.872Z",4 locked_at: "2019-03-30T09:29:14.872Z",5 editor: { type: "account", id: "312" },6 active_item: { type: "item", id: "hWl-mnkWRYmMCSTq4z_piQ" },7 active_item_type: { type: "item_type", id: "DxMaW10UQiCmZcuuA-IkkA" },8}