update()
Updates the given machine.
Returns the updated Machine object.
function update(params: UpdateMachineParams): Promise<Machine>const machineId = 'mch_123'
const response = await clerkClient.machines.update({
machineId,
name: 'New Machine Name',
defaultTokenTtl: 3600,
})Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint PATCH/machines/{machine_id}. See the BAPI reference for more information.
Feedback
Last updated on