Sorry, no results found for "".
Email
"mark.smith@example.com"
Role
Returns a resource object of type site_invitation
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const siteInvitation = await client.siteInvitations.create({7 email: "mark.smith@example.com",8 role: { type: "role", id: "34" },9 });10 11 // Check the 'Returned output' tab for the result ☝️12 console.log(siteInvitation);13}14 15run();
1{2 id: "312",3 email: "mark.smith@example.com",4 expired: "mark.smith@example.com",5 role: { type: "role", id: "34" },6}