# site\_password\_set

Source: <https://telegafirst.com/docs/mcp-tool-site-password-set>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: 9d4b46e255019d2ed1656a77074ae9d1ebc6f4d2f04d393581d3500c9e1c24dd
Version: 4

# site\_password\_set

Create a named password for closed sections of the site, or change it: the same \`name\` takes the new password and signs out everyone who entered with the old one. \`name\`: lowercase letters, digits, - (\`acme\`, \`course-2026\`); \`password\`: 8-128 characters; \`remember\_days\`: 1-365 (default 30), how long a visitor stays signed in on a device; \`note\`: up to 200 characters, who it is for (\`Acme LLC, Ivan\`), absent keeps it, null clears it. A rule names it in \`site\_gate\_set\` \`any\_of\`: \`{"kind":"password","password":"acme"}\`; one password can serve many rules, and signing in once opens every section that accepts it. The platform keeps the password: no listing shows it, \`site\_password\_reveal\` reads it back when the owner needs it. Pass it to the audience yourself and keep it out of HTML, JS and bundle files. Up to 100 per business, on every plan. Returns \`{password:{id,name,note,remember\_days,changed\_at,used\_by\_rules,sections},created,unprojected\_hosts}\`.

## Права и условия

required\_scopes: ALL.

| Поле | Значение |
| - | - |
| description | "Create a named password for closed sections of the site, or change it: the same \`name\` takes the new password and signs out everyone who entered with the old one. \`name\`: lowercase letters, digits, - (\`acme\`, \`course-2026\`); \`password\`: 8-128 characters; \`remember\_days\`: 1-365 (default 30), how long a visitor stays signed in on a device; \`note\`: up to 200 characters, who it is for (\`Acme LLC, Ivan\`), absent keeps it, null clears it. A rule names it in \`site\_gate\_set\` \`any\_of\`: \`{\\"kind\\":\\"password\\",\\"password\\":\\"acme\\"}\`; one password can serve many rules, and signing in once opens every section that accepts it. The platform keeps the password: no listing shows it, \`site\_password\_reveal\` reads it back when the owner needs it. Pass it to the audience yourself and keep it out of HTML, JS and bundle files. Up to 100 per business, on every plan. Returns \`{password:{id,name,note,remember\_days,changed\_at,used\_by\_rules,sections},created,unprojected\_hosts}\`." |
| domain | "site" |
| name | "site\_password\_set" |
| platform\_version | "42248466c94e00eec0d71429ed34a30fd211e9b0" |
| required\_scopes | \["site:write"] |
| risk | "write" |
| scope | "site:write" |
| title | "Site Password Set" |

## Входные параметры

[site\_password\_set: inputSchema](https://telegafirst.com/docs/schema-b76f5a48a373a4244dd01100220aec4995ca72dffdbe217ecd5b99dcbe977818)

## Результат

[site\_password\_set: outputSchema](https://telegafirst.com/docs/schema-9115d05b68fdb3027e64c402267cd196201cc7ef89bab834c66bf39d8446d503)
