Update Clerk machine

Update a machine's name or default token TTL in a connected Clerk instance.

← All Clerk endpoints · Capability overview

PATCH/v1/clerk/machines/{machine_id}

https://api.vee3.io/v1/clerk/machines/{machine_id}

8 tokens

Update a machine's name or default token TTL in a connected Clerk instance.

Authorization

Send your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

MCP

The same capability is available as an MCP tool on Vee3 hosted MCP.

Tool name

clerk.update_machine
Parameters4 fields
clerk_instance_idstringOptional

Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.

machine_idstringRequired

Clerk machine id (mch_...) to retrieve or modify.

namestringOptional

Updated machine display name.

default_token_ttlintegerOptional

Updated default M2M token lifetime in seconds.

min 1, max 315360000

Response8 fields
machineobject
7 fields

Updated machine object from the Backend API.

idstring

Machine id (mch_...).

namestring

Machine display name.

instance_idstring

Clerk instance id (ins_...) that owns the machine.

default_token_ttlinteger

Default token lifetime in seconds for tokens created by this machine.

secret_keystring

Machine secret key returned on create. Treat as high-privilege — do not log.

created_atinteger

Unix timestamp in milliseconds when the machine was created.

updated_atinteger

Unix timestamp in milliseconds when the machine was last updated.

HTTP errors: clerk_connection_required, clerk_connection_not_found, clerk_connection_invalid, validation_error, unauthorized, payment_required