Replace Clerk role set
Replace a role set with another role set in a connected Clerk application.
← All Clerk endpoints · Capability overview
/v1/clerk/role-sets/{role_set_id}/replacehttps://api.vee3.io/v1/clerk/role-sets/{role_set_id}/replace
Replace a role set with another role set in a connected Clerk application.
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.replace_role_setParameters4 fields
clerk_instance_idstringOptionalClerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.
role_set_idstringRequiredClerk role set id or key to retrieve, update, or modify.
dest_role_set_keystringRequiredKey of the destination role set to migrate members to.
reassignment_mappingsobjectOptionalOptional map of source role keys to destination role keys.
Response3 fields
role_set_migrationobject2 fieldsClerk role set migration payload.
role_set_migrationobjectidstringRole set migration id.
statusstringMigration status (for example pending or completed).
HTTP errors: clerk_connection_required, clerk_connection_not_found, clerk_connection_invalid, validation_error, unauthorized, payment_required