Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Invitation

Update an invitation

Body parameters

role Optional

Role

Returns

Returns a resource object of type site_invitation

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const siteInvitationId = "312";
const siteInvitation = await client.siteInvitations.update(siteInvitationId, {
id: "312",
});
// 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" },
}