Sorry, no results found for "".
"mark.smith@example.com"
Returns a resource object of type site_invitation
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const siteInvitation = await client.siteInvitations.create({ email: "mark.smith@example.com", role: { type: "role", id: "34" }, });
// Check the 'Returned output' tab for the result ☝️ console.log(siteInvitation);}
run();
{ id: "312", email: "mark.smith@example.com", expired: "mark.smith@example.com", role: { type: "role", id: "34" },}