Show examples in:
Update a collaborator

Body Parameters

is_active  Optional  boolean  Example: true

Whether the user is active or not

role  Optional  { type: "role", id: role.id }

Role

Returns

Returns a user resource object.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const userId = '312';
const user = await client.users.update(userId, {});
console.log(user);
}
run();