// This file is autogenerated, DO NOT EDIT // Use `node scripts/generate-docs-examples.js` to generate the docs examples [source, js] ---- const response = await client.security.putRoleMapping({ name: "direct_pki_only", roles: ["role_for_pki1_direct"], rules: { all: [ { field: { "realm.name": "pki1", }, }, { field: { "metadata.pki_delegated_by_user": null, }, }, ], }, enabled: true, }); console.log(response); ----