Выдаёт наказание с актуальной revision. Если действие приводит к снятию сотрудника, требуется confirm_removal. Обязателен заголовок Idempotency-Key.
Доступ
personnel:warnings_issue либо personnel:reprimands_issue.
string
required
Партнёрский Bearer-токен. Подробнее в разделе «Авторизация».
Особенности
Сначала откройте метод подготовки. Перед выполнением операции возьмите revision из его ответа и передайте её как revision.Третье предупреждение может стать выговором. Проверьте will_create_reprimand и scope personnel:reprimands_issue. При will_remove=true для операции необходимы confirm_removal=true и scope personnel:remove.
Параметры
string
required
Уникальный ключ действия: от 16 до 128 печатных ASCII-символов без пробелов. При повторе того же запроса используйте тот же ключ. Для нового действия создайте новый. До 128 символов.
Тело запроса
Передайте JSON с заголовком Content-Type: application/json.
object
required
Модератор, который инициировал действие через бота. CRM определяет его аккаунт по привязанному внешнему ID и проверяет полномочия.
Show Поля
string
required
ID модератора на выбранной платформе, строкой. Это ID пользователя, а не имя или ID бота. До 20 символов.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Guard API","description":"Документация по API продуктов Guard","colors":{"primary":"#5865F2","light":"#5865F2","dark":"#435BD7"},"logo":{"light":"https://mintcdn.com/guard/zIwTdT8kzLkO5eRD/images/guard-light.svg?fit=max\u0026auto=format\u0026n=zIwTdT8kzLkO5eRD\u0026q=85\u0026s=31b29878f6a0790002bd33bfb97c4b0e","dark":"https://mintcdn.com/guard/zIwTdT8kzLkO5eRD/images/guard.svg?fit=max\u0026auto=format\u0026n=zIwTdT8kzLkO5eRD\u0026q=85\u0026s=5ab48f6d543cf940bd356769bbc2bf83","href":"https://forum.arzguard.com"},"favicon":{"light":"https://mintcdn.com/guard/zIwTdT8kzLkO5eRD/images/guard-light.svg?fit=max\u0026auto=format\u0026n=zIwTdT8kzLkO5eRD\u0026q=85\u0026s=31b29878f6a0790002bd33bfb97c4b0e","dark":"https://mintcdn.com/guard/zIwTdT8kzLkO5eRD/images/guard.svg?fit=max\u0026auto=format\u0026n=zIwTdT8kzLkO5eRD\u0026q=85\u0026s=5ab48f6d543cf940bd356769bbc2bf83"},"background":{"decoration":"gradient","color":{"light":"#E9EEF9","dark":"#070B15"}},"navbar":{"links":[{"href":"/cerberus-crm/overview","label":"Cerberus CRM"}],"primary":{"type":"button","label":"Форум","href":"https://forum.arzguard.com"}},"footer":{"socials":{"telegram":"https://t.me/arzguard","website":"https://forum.arzguard.com","discord":"https://discord.gg/arzguard"}},"fonts":{"family":"Poppins"},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"thumbnails":{"background":"https://mintcdn.com/guard/hzkKlKWmUKkpKwOO/images/ARZGDS(3).png?fit=max\u0026auto=format\u0026n=hzkKlKWmUKkpKwOO\u0026q=85\u0026s=5b75dca8a2708092c007a4fe1eae1748"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Discord сервер","icon":"discord","href":"https://discord.gg/arzguard"},{"anchor":"Telegram канал","icon":"telegram","href":"https://t.me/arzguard"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"guard","hasAudioNarration":false,"actualSubdomain":"guard","customDomains":["docs.arzguard.com"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-guard-fd0af4bc","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6afa40d5541a7d21b8768b1a","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Guard Forum","count":86},{"language":"default","tag":"Стандартный API","count":69},{"language":"default","tag":"Cerberus CRM","count":49},{"language":"default","tag":"Методы API","count":43},{"language":"default","tag":"Личные диалоги","count":14},{"language":"default","tag":"Записи профиля","count":11},{"language":"default","tag":"Темы","count":10},{"language":"default","tag":"Вложения","count":9},{"language":"default","tag":"Guard Stats","count":8},{"language":"default","tag":"Сообщения","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"cerberus-crm/api/post-personnel-sanctions-issue","slug":"/cerberus-crm/api/post-personnel-sanctions-issue","pageMetadata":{"title":"Выдать предупреждение или выговор","sidebarTitle":"Выдать предупреждение или выговор","description":"Выдаёт наказание с актуальной revision.","icon":"clipboard-list","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/issue","playground":"simple","authMethod":"bearer","href":"/cerberus-crm/api/post-personnel-sanctions-issue"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Выдаёт наказание с актуальной revision.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Выдаёт наказание с актуальной revision. Если действие приводит к снятию сотрудника, требуется confirm_removal. Обязателен заголовок Idempotency-Key.`}),`\n`,_jsx(Heading,{level:`2`,id:`доступ`,children:`Доступ`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`personnel:warnings_issue`}),` либо `,_jsx(_components.code,{children:`personnel:reprimands_issue`}),`.`]}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Партнёрский Bearer-токен. Подробнее в разделе `,_jsx(_components.a,{href:`/cerberus-crm/authentication`,children:`«Авторизация»`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`особенности`,children:`Особенности`}),`\n`,_jsxs(_components.p,{children:[`Сначала откройте `,_jsx(_components.a,{href:`/cerberus-crm/api/post-personnel-sanctions-options`,children:`метод подготовки`}),`. Перед выполнением операции возьмите `,_jsx(_components.code,{children:`revision`}),` из его ответа и передайте её как `,_jsx(_components.code,{children:`revision`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Третье предупреждение может стать выговором. Проверьте `,_jsx(_components.code,{children:`will_create_reprimand`}),` и scope `,_jsx(_components.code,{children:`personnel:reprimands_issue`}),`. При `,_jsx(_components.code,{children:`will_remove=true`}),` для операции необходимы `,_jsx(_components.code,{children:`confirm_removal=true`}),` и scope `,_jsx(_components.code,{children:`personnel:remove`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`параметры`,children:`Параметры`}),`\n`,_jsx(ParamField,{header:`Idempotency-Key`,type:`string`,required:true,id:`param-idempotency-key`,children:_jsx(_components.p,{children:`Уникальный ключ действия: от 16 до 128 печатных ASCII-символов без пробелов. При повторе того же запроса используйте тот же ключ. Для нового действия создайте новый. До 128 символов.`})}),`\n`,_jsx(Heading,{level:`3`,id:`тело-запроса`,children:`Тело запроса`}),`\n`,_jsxs(_components.p,{children:[`Передайте JSON с заголовком `,_jsx(_components.code,{children:`Content-Type: application/json`}),`.`]}),`\n`,_jsxs(ParamField,{body:`moderator`,type:`object`,required:true,id:`param-moderator`,children:[_jsx(_components.p,{children:`Модератор, который инициировал действие через бота. CRM определяет его аккаунт по привязанному внешнему ID и проверяет полномочия.`}),_jsxs(Expandable,{title:`Поля`,children:[_jsx(ParamField,{body:`platform_user_id`,type:`string`,required:true,id:`param-platform-user-id`,children:_jsx(_components.p,{children:`ID модератора на выбранной платформе, строкой. Это ID пользователя, а не имя или ID бота. До 20 символов.`})}),_jsx(ParamField,{body:`provider`,type:`string`,required:true,id:`param-provider`,children:_jsxs(_components.p,{children:[`Платформа модератора: discord — Discord, telegram — Telegram. Допустимые значения `,_jsx(_components.code,{children:`discord`}),`, `,_jsx(_components.code,{children:`telegram`}),`.`]})})]})]}),`\n`,_jsx(ParamField,{body:`sanction`,type:`object`,required:true,id:`param-sanction`,children:_jsxs(Expandable,{title:`Поля`,children:[_jsx(ParamField,{body:`confirm_removal`,type:`boolean`,required:true,id:`param-confirm-removal`,children:_jsx(_components.p,{children:`Подтверждение снятия сотрудника, если подготовка действия вернула will_remove: true.`})}),_jsx(ParamField,{body:`kind`,type:`string`,required:true,id:`param-kind`,children:_jsxs(_components.p,{children:[`Взыскание: warning — предупреждение, reprimand — выговор. Допустимые значения `,_jsx(_components.code,{children:`warning`}),`, `,_jsx(_components.code,{children:`reprimand`}),`.`]})}),_jsx(ParamField,{body:`reason`,type:`string`,required:true,id:`param-reason`,children:_jsx(_components.p,{children:`Причина действия или записи. До 5000 символов.`})}),_jsx(ParamField,{body:`revision`,type:`string`,required:true,id:`param-revision`,children:_jsx(_components.p,{children:`Ревизия текущего состояния. Передавайте актуальное значение, полученное при подготовке действия или чтении состояния. До 64 символов.`})}),_jsx(ParamField,{body:`server_id`,type:`string | integer`,required:true,id:`param-server-id`,children:_jsx(_components.p,{children:`Уникальный номер сервера из GET /api/partner/v1/servers или UUID сервера. Сервер должен входить в выданный боту доступ.`})}),_jsxs(ParamField,{body:`target_id`,type:`string`,required:true,id:`param-target-id`,children:[_jsx(_components.p,{children:`Идентификатор сотрудника в CRM, в том числе незарегистрированного участника состава (UUID).`}),_jsxs(_components.p,{children:[`Формат `,_jsx(_components.code,{children:`uuid`}),`.`]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`успешный-ответ`,children:`Успешный ответ`}),`\n`,_jsxs(_components.p,{children:[`HTTP `,_jsx(_components.code,{children:`200`}),`. Запрос выполнен успешно.`]}),`\n`,_jsx(ResponseField,{name:`kind`,type:`string`,required:true,id:`param-kind-1`,children:_jsx(_components.p,{children:`Взыскание: warning — предупреждение, reprimand — выговор.`})}),`\n`,_jsx(ResponseField,{name:`removal`,type:`boolean`,required:true,id:`param-removal`,children:_jsx(_components.p,{children:`Был ли сотрудник снят в результате действия.`})}),`\n`,_jsx(ResponseField,{name:`revision`,type:`string`,required:true,id:`param-revision-1`,children:_jsx(_components.p,{children:`Ревизия текущего состояния. Передавайте актуальное значение, полученное при подготовке действия или чтении состояния.`})}),`\n`,_jsxs(ResponseField,{name:`sanction_id`,type:`string`,required:true,id:`param-sanction-id`,children:[_jsx(_components.p,{children:`Идентификатор взыскания (UUID).`}),_jsxs(_components.p,{children:[`Формат `,_jsx(_components.code,{children:`uuid`}),`.`]})]}),`\n`,_jsxs(ResponseField,{name:`server_id`,type:`string`,required:true,id:`param-server-id-1`,children:[_jsx(_components.p,{children:`Идентификатор сервера CRM (UUID). Сервер должен входить в выданный боту доступ.`}),_jsxs(_components.p,{children:[`Формат `,_jsx(_components.code,{children:`uuid`}),`.`]})]}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,required:true,id:`param-status`,children:_jsx(_components.p,{children:`Текущее состояние записи.`})}),`\n`,_jsxs(ResponseField,{name:`target_id`,type:`string`,required:true,id:`param-target-id-1`,children:[_jsx(_components.p,{children:`Идентификатор сотрудника в CRM, в том числе незарегистрированного участника состава (UUID).`}),_jsxs(_components.p,{children:[`Формат `,_jsx(_components.code,{children:`uuid`}),`.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`ошибки`,children:`Ошибки`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Значение`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Некорректные параметры запроса.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Токен отсутствует, недействителен, отозван или не разрешён для этого IP-адреса.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Недостаточно прав у бота или указанного модератора; сервер или функция не входят в выданный доступ.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Запись не найдена или недоступна в данном контексте.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`Конфликт состояния или ключа идемпотентности. Получите актуальную ревизию перед новым действием.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`Данные не прошли проверку формата или ограничений. Подробности находятся в поле errors.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Превышен лимит запросов. Дождитесь интервала, указанного в заголовке Retry-After.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Внутренняя ошибка сервера.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`Сервис временно недоступен. Повторите запрос позднее.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`См. `,_jsx(_components.a,{href:`/cerberus-crm/requests-and-errors`,children:`формат ошибок и правила повторов`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`пример`,children:`Пример`}),`\n`,_jsx(_components.p,{children:`Подставьте свои ID, а для изменения используйте отдельный ключ операции и ревизию из CRM.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Выдать предупреждение или выговор","sidebarTitle":"Выдать предупреждение или выговор","description":"Выдаёт наказание с актуальной revision.","icon":"clipboard-list","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/issue","playground":"simple","authMethod":"bearer","href":"/cerberus-crm/api/post-personnel-sanctions-issue"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Выдаёт наказание с актуальной revision. Если действие приводит к снятию сотрудника, требуется confirm_removal. Обязателен заголовок Idempotency-Key.`}),`\n`,_jsx(Heading,{level:`2`,id:`доступ`,children:`Доступ`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`personnel:warnings_issue`}),` либо `,_jsx(_components.code,{children:`personnel:reprimands_issue`}),`.`]}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Партнёрский Bearer-токен. Подробнее в разделе `,_jsx(_components.a,{href:`/cerberus-crm/authentication`,children:`«Авторизация»`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`особенности`,children:`Особенности`}),`\n`,_jsxs(_components.p,{children:[`Сначала откройте `,_jsx(_components.a,{href:`/cerberus-crm/api/post-personnel-sanctions-options`,children:`метод подготовки`}),`. Перед выполнением операции возьмите `,_jsx(_components.code,{children:`revision`}),` из его ответа и передайте её как `,_jsx(_components.code,{children:`revision`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Третье предупреждение может стать выговором. Проверьте `,_jsx(_components.code,{children:`will_create_reprimand`}),` и scope `,_jsx(_components.code,{children:`personnel:reprimands_issue`}),`. При `,_jsx(_components.code,{children:`will_remove=true`}),` для операции необходимы `,_jsx(_components.code,{children:`confirm_removal=true`}),` и scope `,_jsx(_components.code,{children:`personnel:remove`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`параметры`,children:`Параметры`}),`\n`,_jsx(ParamField,{header:`Idempotency-Key`,type:`string`,required:true,id:`param-idempotency-key`,children:_jsx(_components.p,{children:`Уникальный ключ действия: от 16 до 128 печатных ASCII-символов без пробелов. При повторе того же запроса используйте тот же ключ. Для нового действия создайте новый. До 128 символов.`})}),`\n`,_jsx(Heading,{level:`3`,id:`тело-запроса`,children:`Тело запроса`}),`\n`,_jsxs(_components.p,{children:[`Передайте JSON с заголовком `,_jsx(_components.code,{children:`Content-Type: application/json`}),`.`]}),`\n`,_jsxs(ParamField,{body:`moderator`,type:`object`,required:true,id:`param-moderator`,children:[_jsx(_components.p,{children:`Модератор, который инициировал действие через бота. CRM определяет его аккаунт по привязанному внешнему ID и проверяет полномочия.`}),_jsxs(Expandable,{title:`Поля`,children:[_jsx(ParamField,{body:`platform_user_id`,type:`string`,required:true,id:`param-platform-user-id`,children:_jsx(_components.p,{children:`ID модератора на выбранной платформе, строкой. Это ID пользователя, а не имя или ID бота. До 20 символов.`})}),_jsx(ParamField,{body:`provider`,type:`string`,required:true,id:`param-provider`,children:_jsxs(_components.p,{children:[`Платформа модератора: discord — Discord, telegram — Telegram. Допустимые значения `,_jsx(_components.code,{children:`discord`}),`, `,_jsx(_components.code,{children:`telegram`}),`.`]})})]})]}),`\n`,_jsx(ParamField,{body:`sanction`,type:`object`,required:true,id:`param-sanction`,children:_jsxs(Expandable,{title:`Поля`,children:[_jsx(ParamField,{body:`confirm_removal`,type:`boolean`,required:true,id:`param-confirm-removal`,children:_jsx(_components.p,{children:`Подтверждение снятия сотрудника, если подготовка действия вернула will_remove: true.`})}),_jsx(ParamField,{body:`kind`,type:`string`,required:true,id:`param-kind`,children:_jsxs(_components.p,{children:[`Взыскание: warning — предупреждение, reprimand — выговор. Допустимые значения `,_jsx(_components.code,{children:`warning`}),`, `,_jsx(_components.code,{children:`reprimand`}),`.`]})}),_jsx(ParamField,{body:`reason`,type:`string`,required:true,id:`param-reason`,children:_jsx(_components.p,{children:`Причина действия или записи. До 5000 символов.`})}),_jsx(ParamField,{body:`revision`,type:`string`,required:true,id:`param-revision`,children:_jsx(_components.p,{children:`Ревизия текущего состояния. Передавайте актуальное значение, полученное при подготовке действия или чтении состояния. До 64 символов.`})}),_jsx(ParamField,{body:`server_id`,type:`string | integer`,required:true,id:`param-server-id`,children:_jsx(_components.p,{children:`Уникальный номер сервера из GET /api/partner/v1/servers или UUID сервера. Сервер должен входить в выданный боту доступ.`})}),_jsxs(ParamField,{body:`target_id`,type:`string`,required:true,id:`param-target-id`,children:[_jsx(_components.p,{children:`Идентификатор сотрудника в CRM, в том числе незарегистрированного участника состава (UUID).`}),_jsxs(_components.p,{children:[`Формат `,_jsx(_components.code,{children:`uuid`}),`.`]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`успешный-ответ`,children:`Успешный ответ`}),`\n`,_jsxs(_components.p,{children:[`HTTP `,_jsx(_components.code,{children:`200`}),`. Запрос выполнен успешно.`]}),`\n`,_jsx(ResponseField,{name:`kind`,type:`string`,required:true,id:`param-kind-1`,children:_jsx(_components.p,{children:`Взыскание: warning — предупреждение, reprimand — выговор.`})}),`\n`,_jsx(ResponseField,{name:`removal`,type:`boolean`,required:true,id:`param-removal`,children:_jsx(_components.p,{children:`Был ли сотрудник снят в результате действия.`})}),`\n`,_jsx(ResponseField,{name:`revision`,type:`string`,required:true,id:`param-revision-1`,children:_jsx(_components.p,{children:`Ревизия текущего состояния. Передавайте актуальное значение, полученное при подготовке действия или чтении состояния.`})}),`\n`,_jsxs(ResponseField,{name:`sanction_id`,type:`string`,required:true,id:`param-sanction-id`,children:[_jsx(_components.p,{children:`Идентификатор взыскания (UUID).`}),_jsxs(_components.p,{children:[`Формат `,_jsx(_components.code,{children:`uuid`}),`.`]})]}),`\n`,_jsxs(ResponseField,{name:`server_id`,type:`string`,required:true,id:`param-server-id-1`,children:[_jsx(_components.p,{children:`Идентификатор сервера CRM (UUID). Сервер должен входить в выданный боту доступ.`}),_jsxs(_components.p,{children:[`Формат `,_jsx(_components.code,{children:`uuid`}),`.`]})]}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,required:true,id:`param-status`,children:_jsx(_components.p,{children:`Текущее состояние записи.`})}),`\n`,_jsxs(ResponseField,{name:`target_id`,type:`string`,required:true,id:`param-target-id-1`,children:[_jsx(_components.p,{children:`Идентификатор сотрудника в CRM, в том числе незарегистрированного участника состава (UUID).`}),_jsxs(_components.p,{children:[`Формат `,_jsx(_components.code,{children:`uuid`}),`.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`ошибки`,children:`Ошибки`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Значение`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Некорректные параметры запроса.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Токен отсутствует, недействителен, отозван или не разрешён для этого IP-адреса.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Недостаточно прав у бота или указанного модератора; сервер или функция не входят в выданный доступ.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Запись не найдена или недоступна в данном контексте.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`Конфликт состояния или ключа идемпотентности. Получите актуальную ревизию перед новым действием.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`Данные не прошли проверку формата или ограничений. Подробности находятся в поле errors.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Превышен лимит запросов. Дождитесь интервала, указанного в заголовке Retry-After.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Внутренняя ошибка сервера.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`Сервис временно недоступен. Повторите запрос позднее.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`См. `,_jsx(_components.a,{href:`/cerberus-crm/requests-and-errors`,children:`формат ошибок и правила повторов`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`пример`,children:`Пример`}),`\n`,_jsx(_components.p,{children:`Подставьте свои ID, а для изменения используйте отдельный ключ операции и ревизию из CRM.`}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`19`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PARTNER_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$OPERATION_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-binary`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"moderator\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"provider\": \"discord\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"platform_user_id\": \"123456789012345678\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sanction\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"confirm_removal\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"kind\": \"warning\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reason\": \"Решение руководителя\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"revision\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"server_id\": 102,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"target_id\": \"01910000-0000-7000-8000-000000000002\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/issue'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`HTTP 200, сокращённый ответ`,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"example\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"removal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"revision\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sanction_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01910000-0000-7000-8000-000000000001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"server_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01910000-0000-7000-8000-000000000001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"target_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01910000-0000-7000-8000-000000000002\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Выдать предупреждение или выговор","sidebarTitle":"Выдать предупреждение или выговор","description":"Выдаёт наказание с актуальной revision.","icon":"clipboard-list","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/issue","playground":"simple","authMethod":"bearer","href":"/cerberus-crm/api/post-personnel-sanctions-issue"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Доступ","slug":"доступ","depth":2,"children":[]},{"title":"Особенности","slug":"особенности","depth":2,"children":[]},{"title":"Параметры","slug":"параметры","depth":2,"children":[{"title":"Тело запроса","slug":"тело-запроса","depth":3,"children":[]}]},{"title":"Успешный ответ","slug":"успешный-ответ","depth":2,"children":[]},{"title":"Ошибки","slug":"ошибки","depth":2,"children":[]},{"title":"Пример","slug":"пример","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$PARTNER_TOKEN\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Idempotency-Key: \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$OPERATION_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-binary\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"moderator\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"provider\": \"discord\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"platform_user_id\": \"123456789012345678\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"sanction\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"confirm_removal\": false,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"kind\": \"warning\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"reason\": \"Решение руководителя\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"revision\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"server_id\": 102,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"target_id\": \"01910000-0000-7000-8000-000000000002\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/issue'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"HTTP 200, сокращённый ответ","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"kind\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"example\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"removal\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"revision\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"sanction_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"01910000-0000-7000-8000-000000000001\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"server_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"01910000-0000-7000-8000-000000000001\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"active\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"target_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"01910000-0000-7000-8000-000000000002\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Выдать предупреждение или выговор","path":"/api/partner/v1/personnel/sanctions/issue","servers":[{"url":"https://test.crm.arzguard.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"Партнёрский Bearer-токен. Подробнее в разделе «Авторизация» .","required":true}]},"Idempotency-Key":{"schema":[{"type":"string","description":"Уникальный ключ действия: от 16 до 128 печатных ASCII-символов без пробелов. При повторе того же запроса используйте тот же ключ. Для нового действия создайте новый. До 128 символов.","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"moderator":[{"type":"object","properties":{"platform_user_id":[{"type":"string","description":"ID модератора на выбранной платформе, строкой. Это ID пользователя, а не имя или ID бота. До 20 символов.","required":true}],"provider":[{"type":"string","description":"Платформа модератора: discord — Discord, telegram — Telegram. Допустимые значения `discord` , `telegram` .","required":true}]},"description":"Модератор, который инициировал действие через бота. CRM определяет его аккаунт по привязанному внешнему ID и проверяет полномочия.","required":true}],"sanction":[{"type":"object","properties":{"confirm_removal":[{"type":"boolean","description":"Подтверждение снятия сотрудника, если подготовка действия вернула will_remove: true.","required":true}],"kind":[{"type":"string","description":"Взыскание: warning — предупреждение, reprimand — выговор. Допустимые значения `warning` , `reprimand` .","required":true}],"reason":[{"type":"string","description":"Причина действия или записи. До 5000 символов.","required":true}],"revision":[{"type":"string","description":"Ревизия текущего состояния. Передавайте актуальное значение, полученное при подготовке действия или чтении состояния. До 64 символов.","required":true}],"server_id":[{"type":"object","properties":{},"description":"Уникальный номер сервера из GET /api/partner/v1/servers или UUID сервера. Сервер должен входить в выданный боту доступ.","required":true}],"target_id":[{"type":"string","description":"Идентификатор сотрудника в CRM, в том числе незарегистрированного участника состава (UUID). Формат `uuid` .","required":true}]},"required":true}]}}],"examples":{"example":{"value":{"moderator":{"platform_user_id":"\u003cstring>","provider":"\u003cstring>"},"sanction":{"confirm_removal":true,"kind":"\u003cstring>","reason":"\u003cstring>","revision":"\u003cstring>","server_id":{},"target_id":"\u003cstring>"}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"kind":[{"type":"string","description":"Взыскание: warning — предупреждение, reprimand — выговор.","required":true}],"removal":[{"type":"boolean","description":"Был ли сотрудник снят в результате действия.","required":true}],"revision":[{"type":"string","description":"Ревизия текущего состояния. Передавайте актуальное значение, полученное при подготовке действия или чтении состояния.","required":true}],"sanction_id":[{"type":"string","description":"Идентификатор взыскания (UUID). Формат `uuid` .","required":true}],"server_id":[{"type":"string","description":"Идентификатор сервера CRM (UUID). Сервер должен входить в выданный боту доступ. Формат `uuid` .","required":true}],"status":[{"type":"string","description":"Текущее состояние записи.","required":true}],"target_id":[{"type":"string","description":"Идентификатор сотрудника в CRM, в том числе незарегистрированного участника состава (UUID). Формат `uuid` .","required":true}]}}],"examples":{"example":{"value":{"kind":"\u003cstring>","removal":true,"revision":"\u003cstring>","sanction_id":"\u003cstring>","server_id":"\u003cstring>","status":"\u003cstring>","target_id":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"guard","siteName":"Guard API","title":"Выдать предупреждение или выговор - Guard API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-15T23:25:46.358Z","originalFileLocation":"cerberus-crm/api/post-personnel-sanctions-issue.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Выдаёт наказание с актуальной revision.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Guard API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Выдать предупреждение или выговор - Guard API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Выдаёт наказание с актуальной revision.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Guard API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://guard.mintlify.site/_mintlify/api/og/v2?division=%D0%9D%D0%B0%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%B8%D1%8F\u0026amp;title=%D0%92%D1%8B%D0%B4%D0%B0%D1%82%D1%8C+%D0%BF%D1%80%D0%B5%D0%B4%D1%83%D0%BF%D1%80%D0%B5%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5+%D0%B8%D0%BB%D0%B8+%D0%B2%D1%8B%D0%B3%D0%BE%D0%B2%D0%BE%D1%80\u0026amp;description=%D0%92%D1%8B%D0%B4%D0%B0%D1%91%D1%82+%D0%BD%D0%B0%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%B8%D0%B5+%D1%81+%D0%B0%D0%BA%D1%82%D1%83%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D0%B9+revision.\u0026amp;theme=bbe23ad5d506cde8247bacfa\u0026amp;signature=b4697ba1ffaabda19efe4011d38ca8de7c7eda0c2afd1d3de3e1dbc1a779d780\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Выдать предупреждение или выговор - Guard API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Выдаёт наказание с актуальной revision.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://guard.mintlify.site/_mintlify/api/og/v2?division=%D0%9D%D0%B0%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%B8%D1%8F\u0026amp;title=%D0%92%D1%8B%D0%B4%D0%B0%D1%82%D1%8C+%D0%BF%D1%80%D0%B5%D0%B4%D1%83%D0%BF%D1%80%D0%B5%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5+%D0%B8%D0%BB%D0%B8+%D0%B2%D1%8B%D0%B3%D0%BE%D0%B2%D0%BE%D1%80\u0026amp;description=%D0%92%D1%8B%D0%B4%D0%B0%D1%91%D1%82+%D0%BD%D0%B0%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%B8%D0%B5+%D1%81+%D0%B0%D0%BA%D1%82%D1%83%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D0%B9+revision.\u0026amp;theme=bbe23ad5d506cde8247bacfa\u0026amp;signature=b4697ba1ffaabda19efe4011d38ca8de7c7eda0c2afd1d3de3e1dbc1a779d780\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/guard/__e-yGgvK0ODbQGo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Guard API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5865F2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cerberus-crm/api/post-personnel-sanctions-issue.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.arzguard.com/#organization\",\"name\":\"Guard API\",\"url\":\"https://docs.arzguard.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/guard/zIwTdT8kzLkO5eRD/images/guard-light.svg?fit=max\u0026auto=format\u0026n=zIwTdT8kzLkO5eRD\u0026q=85\u0026s=31b29878f6a0790002bd33bfb97c4b0e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.arzguard.com#website\",\"name\":\"Guard API\",\"url\":\"https://docs.arzguard.com\",\"publisher\":{\"@id\":\"https://docs.arzguard.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue#webpage\",\"url\":\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue\",\"name\":\"Выдать предупреждение или выговор\",\"description\":\"Выдаёт наказание с актуальной revision.\",\"dateModified\":\"2026-11-15T23:25:46.358Z\",\"isPartOf\":{\"@id\":\"https://docs.arzguard.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cerberus CRM\",\"item\":\"https://docs.arzguard.com/cerberus-crm/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Методы API\",\"item\":\"https://docs.arzguard.com/cerberus-crm/api/get-me\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Наказания\",\"item\":\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-edit\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Выдать предупреждение или выговор\",\"item\":\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue#apireference\",\"headline\":\"Выдать предупреждение или выговор\",\"name\":\"Выдать предупреждение или выговор\",\"description\":\"Выдаёт наказание с актуальной revision.\",\"url\":\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue\",\"mainEntityOfPage\":{\"@id\":\"https://docs.arzguard.com/cerberus-crm/api/post-personnel-sanctions-issue#webpage\"},\"dateModified\":\"2026-11-15T23:25:46.358Z\",\"publisher\":{\"@id\":\"https://docs.arzguard.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.arzguard.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Guard API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Guard API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cerberus-crm/api/post-personnel-sanctions-issue.md","siteName":"Guard API","nav":{"global":{"anchors":[{"anchor":"Discord сервер","icon":"discord","href":"https://discord.gg/arzguard"},{"anchor":"Telegram канал","icon":"telegram","href":"https://t.me/arzguard"}]},"groups":[{"group":"Общая информация","pages":[{"title":"Об API продуктов Guard","href":"/ob-api-produktov-guard/overview"}]},{"group":"Guard Forum","pages":[{"title":"Guard Forum API","sidebarTitle":"О сервисе","icon":"comments","href":"/guard-forum/overview"},{"title":"Первый запрос к Guard Forum","sidebarTitle":"Быстрый старт","icon":"bolt","href":"/guard-forum/quickstart"},{"title":"Авторизация и права доступа","sidebarTitle":"Авторизация","icon":"key","href":"/guard-forum/authentication"},{"title":"Запросы, ответы и ошибки","sidebarTitle":"Запросы и ошибки","icon":"code","href":"/guard-forum/requests-and-errors"},{"title":"Каталог методов","sidebarTitle":"Каталог методов","icon":"list","href":"/guard-forum/catalog"},{"title":"Особенности Guard Forum","sidebarTitle":"Особенности форума","icon":"puzzle-piece","href":"/guard-forum/extensions"},{"group":"Стандартный API","icon":"code","pages":[{"group":"Форумы","icon":"folder-open","pages":[{"title":"Получить раздел","sidebarTitle":"Получить раздел","icon":"folder-open","api":"GET https://forum.arzguard.com/api/forums/{id}/","playground":"simple","href":"/guard-forum/api/get-forums-id"},{"title":"Отметить раздел прочитанным","sidebarTitle":"Отметить раздел прочитанным","icon":"folder-open","api":"POST https://forum.arzguard.com/api/forums/{id}/mark-read","playground":"simple","href":"/guard-forum/api/post-forums-id-mark-read"},{"title":"Темы раздела","sidebarTitle":"Темы раздела","icon":"folder-open","api":"GET https://forum.arzguard.com/api/forums/{id}/threads","playground":"simple","href":"/guard-forum/api/get-forums-id-threads"}]},{"group":"Поисковые разделы","icon":"magnifying-glass","pages":[{"title":"Получить поисковый раздел","sidebarTitle":"Получить поисковый раздел","icon":"magnifying-glass","api":"GET https://forum.arzguard.com/api/search-forums/{id}/","playground":"simple","href":"/guard-forum/api/get-search-forums-id"},{"title":"Темы поискового раздела","sidebarTitle":"Темы поискового раздела","icon":"magnifying-glass","api":"GET https://forum.arzguard.com/api/search-forums/{id}/threads","playground":"simple","href":"/guard-forum/api/get-search-forums-id-threads"}]},{"group":"Темы","icon":"comments","pages":[{"title":"Список тем","sidebarTitle":"Список тем","icon":"comments","api":"GET https://forum.arzguard.com/api/threads/","playground":"simple","href":"/guard-forum/api/get-threads"},{"title":"Создать тему","sidebarTitle":"Создать тему","icon":"comments","api":"POST https://forum.arzguard.com/api/threads/","playground":"simple","href":"/guard-forum/api/post-threads"},{"title":"Получить тему","sidebarTitle":"Получить тему","icon":"comments","api":"GET https://forum.arzguard.com/api/threads/{id}/","playground":"simple","href":"/guard-forum/api/get-threads-id"},{"title":"Изменить тему","sidebarTitle":"Изменить тему","icon":"comments","api":"POST https://forum.arzguard.com/api/threads/{id}/","playground":"simple","href":"/guard-forum/api/post-threads-id"},{"title":"Удалить тему","sidebarTitle":"Удалить тему","icon":"comments","api":"DELETE https://forum.arzguard.com/api/threads/{id}/","playground":"simple","href":"/guard-forum/api/delete-threads-id"},{"title":"Изменить тип темы","sidebarTitle":"Изменить тип темы","icon":"comments","api":"POST https://forum.arzguard.com/api/threads/{id}/change-type","playground":"simple","href":"/guard-forum/api/post-threads-id-change-type"},{"title":"Отметить тему прочитанной","sidebarTitle":"Отметить тему прочитанной","icon":"comments","api":"POST https://forum.arzguard.com/api/threads/{id}/mark-read","playground":"simple","href":"/guard-forum/api/post-threads-id-mark-read"},{"title":"Переместить тему","sidebarTitle":"Переместить тему","icon":"comments","api":"POST https://forum.arzguard.com/api/threads/{id}/move","playground":"simple","href":"/guard-forum/api/post-threads-id-move"},{"title":"Сообщения темы","sidebarTitle":"Сообщения темы","icon":"comments","api":"GET https://forum.arzguard.com/api/threads/{id}/posts","playground":"simple","href":"/guard-forum/api/get-threads-id-posts"},{"title":"Голос за тему","sidebarTitle":"Голос за тему","icon":"comments","api":"POST https://forum.arzguard.com/api/threads/{id}/vote","playground":"simple","href":"/guard-forum/api/post-threads-id-vote"}]},{"group":"Сообщения","icon":"message","pages":[{"title":"Ответить в теме","sidebarTitle":"Ответить в теме","icon":"message","api":"POST https://forum.arzguard.com/api/posts/","playground":"simple","href":"/guard-forum/api/post-posts"},{"title":"Получить сообщение","sidebarTitle":"Получить сообщение","icon":"message","api":"GET https://forum.arzguard.com/api/posts/{id}/","playground":"simple","href":"/guard-forum/api/get-posts-id"},{"title":"Изменить сообщение","sidebarTitle":"Изменить сообщение","icon":"message","api":"POST https://forum.arzguard.com/api/posts/{id}/","playground":"simple","href":"/guard-forum/api/post-posts-id"},{"title":"Удалить сообщение","sidebarTitle":"Удалить сообщение","icon":"message","api":"DELETE https://forum.arzguard.com/api/posts/{id}/","playground":"simple","href":"/guard-forum/api/delete-posts-id"},{"title":"Переключить отметку решения","sidebarTitle":"Переключить отметку решения","icon":"message","api":"POST https://forum.arzguard.com/api/posts/{id}/mark-solution","playground":"simple","href":"/guard-forum/api/post-posts-id-mark-solution"},{"title":"Реакция на сообщение","sidebarTitle":"Реакция на сообщение","icon":"message","api":"POST https://forum.arzguard.com/api/posts/{id}/react","playground":"simple","href":"/guard-forum/api/post-posts-id-react"},{"title":"Голос за сообщение","sidebarTitle":"Голос за сообщение","icon":"message","api":"POST https://forum.arzguard.com/api/posts/{id}/vote","playground":"simple","href":"/guard-forum/api/post-posts-id-vote"}]},{"group":"Профиль пользователя","icon":"users","pages":[{"title":"Получить пользователя","sidebarTitle":"Получить пользователя","icon":"users","api":"GET https://forum.arzguard.com/api/users/{id}/","playground":"simple","href":"/guard-forum/api/get-users-id"}]},{"group":"Текущий пользователь","icon":"user","pages":[{"title":"Получить текущего пользователя","sidebarTitle":"Текущий пользователь","icon":"user","api":"GET https://forum.arzguard.com/api/me/","playground":"simple","href":"/guard-forum/api/get-me"},{"title":"Изменить свой профиль","sidebarTitle":"Изменение профиля","icon":"user","api":"POST https://forum.arzguard.com/api/me/","playground":"simple","href":"/guard-forum/api/post-me"},{"title":"Загрузить свой аватар","sidebarTitle":"Загрузка аватара","icon":"user","api":"POST https://forum.arzguard.com/api/me/avatar","playground":"simple","href":"/guard-forum/api/post-me-avatar"},{"title":"Удалить свой аватар","sidebarTitle":"Удаление аватара","icon":"user","api":"DELETE https://forum.arzguard.com/api/me/avatar","playground":"simple","href":"/guard-forum/api/delete-me-avatar"},{"title":"Изменить свой email","sidebarTitle":"Изменение email","icon":"user","api":"POST https://forum.arzguard.com/api/me/email","playground":"simple","href":"/guard-forum/api/post-me-email"},{"title":"Изменить свой пароль","sidebarTitle":"Изменение пароля","icon":"user","api":"POST https://forum.arzguard.com/api/me/password","playground":"simple","href":"/guard-forum/api/post-me-password"}]},{"group":"Записи профиля","icon":"address-card","pages":[{"title":"Добавить комментарий профиля","sidebarTitle":"Добавить комментарий профиля","icon":"comment","api":"POST https://forum.arzguard.com/api/profile-post-comments/","playground":"simple","href":"/guard-forum/api/post-profile-post-comments"},{"title":"Получить комментарий профиля","sidebarTitle":"Получить комментарий профиля","icon":"comment","api":"GET https://forum.arzguard.com/api/profile-post-comments/{id}/","playground":"simple","href":"/guard-forum/api/get-profile-post-comments-id"},{"title":"Изменить комментарий профиля","sidebarTitle":"Изменить комментарий профиля","icon":"comment","api":"POST https://forum.arzguard.com/api/profile-post-comments/{id}/","playground":"simple","href":"/guard-forum/api/post-profile-post-comments-id"},{"title":"Удалить комментарий профиля","sidebarTitle":"Удалить комментарий профиля","icon":"comment","api":"DELETE https://forum.arzguard.com/api/profile-post-comments/{id}/","playground":"simple","href":"/guard-forum/api/delete-profile-post-comments-id"},{"title":"Реакция на комментарий профиля","sidebarTitle":"Реакция на комментарий профиля","icon":"comment","api":"POST https://forum.arzguard.com/api/profile-post-comments/{id}/react","playground":"simple","href":"/guard-forum/api/post-profile-post-comments-id-react"},{"title":"Создать запись в профиле","sidebarTitle":"Создать запись в профиле","icon":"comment","api":"POST https://forum.arzguard.com/api/profile-posts/","playground":"simple","href":"/guard-forum/api/post-profile-posts"},{"title":"Получить запись профиля","sidebarTitle":"Получить запись профиля","icon":"comment","api":"GET https://forum.arzguard.com/api/profile-posts/{id}/","playground":"simple","href":"/guard-forum/api/get-profile-posts-id"},{"title":"Изменить запись профиля","sidebarTitle":"Изменить запись профиля","icon":"comment","api":"POST https://forum.arzguard.com/api/profile-posts/{id}/","playground":"simple","href":"/guard-forum/api/post-profile-posts-id"},{"title":"Удалить запись профиля","sidebarTitle":"Удалить запись профиля","icon":"comment","api":"DELETE https://forum.arzguard.com/api/profile-posts/{id}/","playground":"simple","href":"/guard-forum/api/delete-profile-posts-id"},{"title":"Комментарии записи профиля","sidebarTitle":"Комментарии записи профиля","icon":"comment","api":"GET https://forum.arzguard.com/api/profile-posts/{id}/comments","playground":"simple","href":"/guard-forum/api/get-profile-posts-id-comments"},{"title":"Реакция на запись профиля","sidebarTitle":"Реакция на запись профиля","icon":"comment","api":"POST https://forum.arzguard.com/api/profile-posts/{id}/react","playground":"simple","href":"/guard-forum/api/post-profile-posts-id-react"}]},{"group":"Личные диалоги","icon":"envelope","pages":[{"title":"Ответить в переписке","sidebarTitle":"Новое сообщение","icon":"comments","api":"POST https://forum.arzguard.com/api/conversation-messages/","playground":"simple","href":"/guard-forum/api/post-conversation-messages"},{"title":"Получить сообщение переписки","sidebarTitle":"Сообщение по ID","icon":"comments","api":"GET https://forum.arzguard.com/api/conversation-messages/{id}/","playground":"simple","href":"/guard-forum/api/get-conversation-messages-id"},{"title":"Изменить сообщение переписки","sidebarTitle":"Изменение сообщения","icon":"comments","api":"POST https://forum.arzguard.com/api/conversation-messages/{id}/","playground":"simple","href":"/guard-forum/api/post-conversation-messages-id"},{"title":"Поставить реакцию на сообщение","sidebarTitle":"Реакция на сообщение","icon":"comments","api":"POST https://forum.arzguard.com/api/conversation-messages/{id}/react","playground":"simple","href":"/guard-forum/api/post-conversation-messages-id-react"},{"title":"Получить список переписок","sidebarTitle":"Список переписок","icon":"comments","api":"GET https://forum.arzguard.com/api/conversations/","playground":"simple","href":"/guard-forum/api/get-conversations"},{"title":"Создать переписку","sidebarTitle":"Создание переписки","icon":"comments","api":"POST https://forum.arzguard.com/api/conversations/","playground":"simple","href":"/guard-forum/api/post-conversations"},{"title":"Получить переписку","sidebarTitle":"Переписка по ID","icon":"comments","api":"GET https://forum.arzguard.com/api/conversations/{id}/","playground":"simple","href":"/guard-forum/api/get-conversations-id"},{"title":"Изменить переписку","sidebarTitle":"Изменение переписки","icon":"comments","api":"POST https://forum.arzguard.com/api/conversations/{id}/","playground":"simple","href":"/guard-forum/api/post-conversations-id"},{"title":"Убрать переписку из списка","sidebarTitle":"Удаление из списка","icon":"comments","api":"DELETE https://forum.arzguard.com/api/conversations/{id}/","playground":"simple","href":"/guard-forum/api/delete-conversations-id"},{"title":"Пригласить в переписку","sidebarTitle":"Приглашение участников","icon":"comments","api":"POST https://forum.arzguard.com/api/conversations/{id}/invite","playground":"simple","href":"/guard-forum/api/post-conversations-id-invite"},{"title":"Отметить переписку прочитанной","sidebarTitle":"Отметка прочтения","icon":"comments","api":"POST https://forum.arzguard.com/api/conversations/{id}/mark-read","playground":"simple","href":"/guard-forum/api/post-conversations-id-mark-read"},{"title":"Отметить переписку непрочитанной","sidebarTitle":"Отметка непрочтения","icon":"comments","api":"POST https://forum.arzguard.com/api/conversations/{id}/mark-unread","playground":"simple","href":"/guard-forum/api/post-conversations-id-mark-unread"},{"title":"Получить сообщения переписки","sidebarTitle":"Сообщения переписки","icon":"comments","api":"GET https://forum.arzguard.com/api/conversations/{id}/messages","playground":"simple","href":"/guard-forum/api/get-conversations-id-messages"},{"title":"Изменить отметку избранного","sidebarTitle":"Избранная переписка","icon":"comments","api":"POST https://forum.arzguard.com/api/conversations/{id}/star","playground":"simple","href":"/guard-forum/api/post-conversations-id-star"}]},{"group":"Уведомления","icon":"bell","pages":[{"title":"Получить уведомления","sidebarTitle":"Список уведомлений","icon":"bell","api":"GET https://forum.arzguard.com/api/alerts/","playground":"simple","href":"/guard-forum/api/get-alerts"},{"title":"Отправить уведомление","sidebarTitle":"Отправка уведомления","icon":"bell","api":"POST https://forum.arzguard.com/api/alerts/","playground":"simple","href":"/guard-forum/api/post-alerts"},{"title":"Отметить все уведомления","sidebarTitle":"Отметка всех","icon":"bell","api":"POST https://forum.arzguard.com/api/alerts/mark-all","playground":"simple","href":"/guard-forum/api/post-alerts-mark-all"},{"title":"Получить уведомление","sidebarTitle":"Уведомление по ID","icon":"bell","api":"GET https://forum.arzguard.com/api/alerts/{id}/","playground":"simple","href":"/guard-forum/api/get-alerts-id"},{"title":"Изменить отметку уведомления","sidebarTitle":"Отметка уведомления","icon":"bell","api":"POST https://forum.arzguard.com/api/alerts/{id}/mark","playground":"simple","href":"/guard-forum/api/post-alerts-id-mark"}]},{"group":"Вложения","icon":"paperclip","pages":[{"title":"Получить временные вложения","sidebarTitle":"Временные вложения","icon":"paperclip","api":"GET https://forum.arzguard.com/api/attachments/","playground":"simple","href":"/guard-forum/api/get-attachments"},{"title":"Загрузить вложение","sidebarTitle":"Загрузка файла","icon":"paperclip","api":"POST https://forum.arzguard.com/api/attachments/","playground":"simple","href":"/guard-forum/api/post-attachments"},{"title":"Создать ключ вложений","sidebarTitle":"Создание ключа","icon":"paperclip","api":"POST https://forum.arzguard.com/api/attachments/new-key","playground":"simple","href":"/guard-forum/api/post-attachments-new-key"},{"title":"Получить данные о вложении","sidebarTitle":"Вложение по ID","icon":"paperclip","api":"GET https://forum.arzguard.com/api/attachments/{id}/","playground":"simple","href":"/guard-forum/api/get-attachments-id"},{"title":"Удалить вложение","sidebarTitle":"Удаление вложения","icon":"paperclip","api":"DELETE https://forum.arzguard.com/api/attachments/{id}/","playground":"simple","href":"/guard-forum/api/delete-attachments-id"},{"title":"Скачать вложение","sidebarTitle":"Скачивание файла","icon":"paperclip","api":"GET https://forum.arzguard.com/api/attachments/{id}/data","playground":"simple","href":"/guard-forum/api/get-attachments-id-data"},{"title":"Получить адрес миниатюры","sidebarTitle":"Миниатюра","icon":"paperclip","api":"GET https://forum.arzguard.com/api/attachments/{id}/thumbnail","playground":"simple","href":"/guard-forum/api/get-attachments-id-thumbnail"}]},{"group":"Аутентификация","icon":"key","pages":[{"title":"Проверить логин и пароль","sidebarTitle":"Проверка пароля","icon":"key","api":"POST https://forum.arzguard.com/api/auth/","playground":"simple","href":"/guard-forum/api/post-auth"},{"title":"Определить пользователя по сессии","sidebarTitle":"Проверка сессии","icon":"key","api":"POST https://forum.arzguard.com/api/auth/from-session","playground":"simple","href":"/guard-forum/api/post-auth-from-session"},{"title":"Создать ссылку для входа","sidebarTitle":"Ссылка для входа","icon":"key","api":"POST https://forum.arzguard.com/api/auth/login-token","playground":"simple","href":"/guard-forum/api/post-auth-login-token"}]}]},{"group":"Дополнения Guard","icon":"puzzle-piece","pages":[{"group":"Повышение и снятие","icon":"user-group","pages":[{"title":"Повышение: доступные группы","sidebarTitle":"Группы для повышения","icon":"user-group","api":"GET https://forum.arzguard.com/api/promote/{user_id}/","playground":"simple","href":"/guard-forum/api/get-promote-user_id"},{"title":"Снятие: доступные группы","sidebarTitle":"Группы для снятия","icon":"user-group","api":"GET https://forum.arzguard.com/api/demote/{user_id}/","playground":"simple","href":"/guard-forum/api/get-demote-user_id"},{"title":"Повысить пользователя","sidebarTitle":"Повысить","icon":"user-plus","api":"POST https://forum.arzguard.com/api/promote/{user_id}/","playground":"simple","href":"/guard-forum/api/post-promote-user_id"},{"title":"Снять группу у пользователя","sidebarTitle":"Снять группу","icon":"user-minus","api":"POST https://forum.arzguard.com/api/demote/{user_id}/","playground":"simple","href":"/guard-forum/api/post-demote-user_id"}]}]},{"group":"Схемы данных","icon":"database","pages":[{"title":"Схемы данных","sidebarTitle":"Обзор схем","icon":"database","href":"/guard-forum/models"},{"title":"Объект User","sidebarTitle":"Объект User","icon":"user","href":"/guard-forum/models/users"},{"title":"Темы, сообщения и опросы","sidebarTitle":"Темы, сообщения и опросы","icon":"messages","href":"/guard-forum/models/content"},{"title":"Разделы форума","sidebarTitle":"Разделы форума","icon":"folder-tree","href":"/guard-forum/models/nodes"},{"title":"Записи профиля","sidebarTitle":"Записи профиля","icon":"address-card","href":"/guard-forum/models/profile"},{"title":"Диалоги и уведомления","sidebarTitle":"Диалоги и уведомления","icon":"envelope","href":"/guard-forum/models/conversations"},{"title":"Вложения","sidebarTitle":"Вложения","icon":"paperclip","href":"/guard-forum/models/attachments"}]}]},{"group":"Cerberus CRM","pages":[{"title":"Партнёрский API Cerberus CRM","sidebarTitle":"О сервисе","icon":"plug","href":"/cerberus-crm/overview"},{"title":"Первый запрос к партнёрскому API","sidebarTitle":"Быстрый старт","icon":"bolt","href":"/cerberus-crm/get-started"},{"title":"Авторизация партнёрского бота","sidebarTitle":"Авторизация","icon":"key","href":"/cerberus-crm/authentication"},{"title":"Запросы, ответы и ошибки","sidebarTitle":"Запросы и ошибки","icon":"code","href":"/cerberus-crm/requests-and-errors"},{"title":"Каталог методов партнёрского API","sidebarTitle":"Каталог методов","icon":"list","href":"/cerberus-crm/partner-api"},{"title":"Идентификаторы и версии записей","sidebarTitle":"Модели данных","icon":"database","href":"/cerberus-crm/models"},{"group":"Методы API","icon":"code","pages":[{"group":"Бот и справочники","icon":"key","pages":[{"title":"Получить права и лимиты текущего бота","sidebarTitle":"Получить права и лимиты текущего бота","icon":"key","api":"GET https://test.crm.arzguard.com/api/partner/v1/me","playground":"simple","href":"/cerberus-crm/api/get-me"},{"title":"Получить справочник должностей и ролей","sidebarTitle":"Получить справочник должностей и ролей","icon":"key","api":"GET https://test.crm.arzguard.com/api/partner/v1/catalog","playground":"simple","href":"/cerberus-crm/api/get-catalog"},{"title":"Получить согласованные серверы бота","sidebarTitle":"Получить согласованные серверы бота","icon":"key","api":"GET https://test.crm.arzguard.com/api/partner/v1/servers","playground":"simple","href":"/cerberus-crm/api/get-servers"}]},{"group":"Состав","icon":"users","pages":[{"title":"Получить архивный состав и найти снятого сотрудника","sidebarTitle":"Получить архивный состав и найти снятого сотрудника","icon":"users","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/archive","playground":"simple","href":"/cerberus-crm/api/post-personnel-archive"},{"title":"Получить карточку сотрудника","sidebarTitle":"Получить карточку сотрудника","icon":"users","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/profile","playground":"simple","href":"/cerberus-crm/api/post-personnel-profile"},{"title":"Получить состав сервера","sidebarTitle":"Получить состав сервера","icon":"users","api":"GET https://test.crm.arzguard.com/api/partner/v1/servers/{server_id}/roster","playground":"simple","href":"/cerberus-crm/api/get-servers-server-id-roster"},{"title":"Найти сотрудника по ID или никнейму","sidebarTitle":"Найти сотрудника по ID или никнейму","icon":"users","api":"GET https://test.crm.arzguard.com/api/partner/v1/servers/{server_id}/users/lookup","playground":"simple","href":"/cerberus-crm/api/get-servers-server-id-users-lookup"}]},{"group":"Кадровые действия","icon":"user-cog","pages":[{"title":"Повысить, понизить или снять сотрудника","sidebarTitle":"Повысить, понизить или снять сотрудника","icon":"user-cog","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/actions","playground":"simple","href":"/cerberus-crm/api/post-personnel-actions"},{"title":"Подготовить повышение, понижение или снятие","sidebarTitle":"Подготовить повышение, понижение или снятие","icon":"user-cog","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/actions/options","playground":"simple","href":"/cerberus-crm/api/post-personnel-actions-options"},{"title":"Получить кадровую историю","sidebarTitle":"Получить кадровую историю","icon":"user-cog","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/history","playground":"simple","href":"/cerberus-crm/api/post-personnel-history"}]},{"group":"Назначения","icon":"user-plus","pages":[{"title":"Назначить или восстановить сотрудника","sidebarTitle":"Назначить или восстановить сотрудника","icon":"user-plus","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/appointments","playground":"simple","href":"/cerberus-crm/api/post-personnel-appointments"},{"title":"Подготовить назначение или восстановление","sidebarTitle":"Подготовить назначение или восстановление","icon":"user-plus","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/appointments/lookup","playground":"simple","href":"/cerberus-crm/api/post-personnel-appointments-lookup"}]},{"group":"Переводы","icon":"arrow-right-left","pages":[{"title":"Перевести сотрудника на другой сервер","sidebarTitle":"Перевести сотрудника на другой сервер","icon":"arrow-right-left","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/transfers","playground":"simple","href":"/cerberus-crm/api/post-personnel-transfers"},{"title":"Подготовить перевод между серверами","sidebarTitle":"Подготовить перевод между серверами","icon":"arrow-right-left","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/transfers/options","playground":"simple","href":"/cerberus-crm/api/post-personnel-transfers-options"}]},{"group":"Редактирование профиля","icon":"contact","pages":[{"title":"Изменить форумный аккаунт записи состава","sidebarTitle":"Изменить форумный аккаунт записи состава","icon":"contact","api":"PATCH https://test.crm.arzguard.com/api/partner/v1/personnel/forum-account","playground":"simple","href":"/cerberus-crm/api/patch-personnel-forum-account"},{"title":"Изменить дату вступления в должность","sidebarTitle":"Изменить дату вступления в должность","icon":"contact","api":"PATCH https://test.crm.arzguard.com/api/partner/v1/personnel/position-date","playground":"simple","href":"/cerberus-crm/api/patch-personnel-position-date"},{"title":"Изменить данные и даты сотрудника","sidebarTitle":"Изменить данные и даты сотрудника","icon":"contact","api":"PATCH https://test.crm.arzguard.com/api/partner/v1/personnel/profile","playground":"simple","href":"/cerberus-crm/api/patch-personnel-profile"}]},{"group":"История","icon":"history","pages":[{"title":"Получить историю изменений профиля","sidebarTitle":"Получить историю изменений профиля","icon":"history","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/changes","playground":"simple","href":"/cerberus-crm/api/post-personnel-changes"}]},{"group":"Наказания","icon":"clipboard-list","pages":[{"title":"Изменить причину предупреждения или выговора","sidebarTitle":"Изменить причину предупреждения или выговора","icon":"clipboard-list","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/edit","playground":"simple","href":"/cerberus-crm/api/post-personnel-sanctions-edit"},{"title":"Подготовить изменение причины наказания","sidebarTitle":"Подготовить изменение причины наказания","description":"Проверяет возможность редактирования причины предупреждения или выговора и возвращает актуальную ревизию.","icon":"clipboard-list","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/edit/options","playground":"simple","href":"/cerberus-crm/api/post-personnel-sanctions-edit-options"},{"title":"Выдать предупреждение или выговор","sidebarTitle":"Выдать предупреждение или выговор","icon":"clipboard-list","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/issue","playground":"simple","href":"/cerberus-crm/api/post-personnel-sanctions-issue"},{"title":"Получить предупреждения и выговоры","sidebarTitle":"Получить предупреждения и выговоры","description":"Возвращает журнал наказаний сотрудника на выбранном сервере.","icon":"clipboard-list","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/ledger","playground":"simple","href":"/cerberus-crm/api/post-personnel-sanctions-ledger"},{"title":"Подготовить выдачу или снятие наказания","sidebarTitle":"Подготовить выдачу или снятие наказания","icon":"clipboard-list","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/options","playground":"simple","href":"/cerberus-crm/api/post-personnel-sanctions-options"},{"title":"Снять предупреждение или выговор","sidebarTitle":"Снять предупреждение или выговор","icon":"clipboard-list","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/sanctions/revoke","playground":"simple","href":"/cerberus-crm/api/post-personnel-sanctions-revoke"}]},{"group":"Баллы","icon":"coins","pages":[{"title":"Начислить или снять баллы","sidebarTitle":"Начислить или снять баллы","icon":"coins","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/points/adjust","playground":"simple","href":"/cerberus-crm/api/post-personnel-points-adjust"},{"title":"Получить баланс и историю баллов","sidebarTitle":"Получить баланс и историю баллов","icon":"coins","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/points/ledger","playground":"simple","href":"/cerberus-crm/api/post-personnel-points-ledger"},{"title":"Подготовить начисление или снятие баллов","sidebarTitle":"Подготовить начисление или снятие баллов","icon":"coins","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/points/options","playground":"simple","href":"/cerberus-crm/api/post-personnel-points-options"}]},{"group":"Похвалы","icon":"award","pages":[{"title":"Выдать похвалу сотруднику","sidebarTitle":"Выдать похвалу сотруднику","icon":"award","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/praises/give","playground":"simple","href":"/cerberus-crm/api/post-personnel-praises-give"},{"title":"Получить похвалы сотрудника","sidebarTitle":"Получить похвалы сотрудника","icon":"award","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/praises/list","playground":"simple","href":"/cerberus-crm/api/post-personnel-praises-list"}]},{"group":"Неактивы","icon":"calendar-days","pages":[{"title":"Подать заявку на неактив","sidebarTitle":"Подать заявку на неактив","icon":"calendar-days","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/inactivity/create","playground":"simple","href":"/cerberus-crm/api/post-personnel-inactivity-create"},{"title":"Одобрить, отклонить или отменить неактив","sidebarTitle":"Одобрить, отклонить или отменить неактив","icon":"calendar-days","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/inactivity/decision","playground":"simple","href":"/cerberus-crm/api/post-personnel-inactivity-decision"},{"title":"Получить заявку на неактив по ID","sidebarTitle":"Получить заявку на неактив по ID","icon":"calendar-days","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/inactivity/get","playground":"simple","href":"/cerberus-crm/api/post-personnel-inactivity-get"},{"title":"Получить заявки на неактив","sidebarTitle":"Получить заявки на неактив","icon":"calendar-days","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/inactivity/list","playground":"simple","href":"/cerberus-crm/api/post-personnel-inactivity-list"},{"title":"Получить серверную очередь неактивов","sidebarTitle":"Получить серверную очередь неактивов","icon":"calendar-days","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/inactivity/queue","playground":"simple","href":"/cerberus-crm/api/post-personnel-inactivity-queue"}]},{"group":"Чёрный список","icon":"shield","pages":[{"title":"Одобрить, отклонить или снять запись ЧС","sidebarTitle":"Одобрить, отклонить или снять запись ЧС","icon":"shield","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/blacklist/decide","playground":"simple","href":"/cerberus-crm/api/post-personnel-blacklist-decide"},{"title":"Получить записи чёрного списка","sidebarTitle":"Получить записи чёрного списка","icon":"shield","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/blacklist/list","playground":"simple","href":"/cerberus-crm/api/post-personnel-blacklist-list"}]},{"group":"Вложения","icon":"paperclip","pages":[{"title":"Загрузить кадровое доказательство","sidebarTitle":"Загрузить кадровое доказательство","icon":"paperclip","api":"POST https://test.crm.arzguard.com/api/partner/v1/personnel/materials/upload","playground":"simple","href":"/cerberus-crm/api/post-personnel-materials-upload"},{"title":"Получить кадровое доказательство","sidebarTitle":"Получить кадровое доказательство","icon":"paperclip","api":"GET https://test.crm.arzguard.com/api/partner/v1/personnel/materials/{id}","playground":"simple","href":"/cerberus-crm/api/get-personnel-materials-id"}]},{"group":"Новости","icon":"newspaper","pages":[{"title":"Создать, изменить, опубликовать или удалить новость","sidebarTitle":"Создать, изменить, опубликовать или удалить новость","icon":"newspaper","api":"POST https://test.crm.arzguard.com/api/partner/v1/news/actions","playground":"simple","href":"/cerberus-crm/api/post-news-actions"},{"title":"Получить новость по ID","sidebarTitle":"Получить новость по ID","icon":"newspaper","api":"POST https://test.crm.arzguard.com/api/partner/v1/news/get","playground":"simple","href":"/cerberus-crm/api/post-news-get"},{"title":"Получить ленту новостей","sidebarTitle":"Получить ленту новостей","icon":"newspaper","api":"POST https://test.crm.arzguard.com/api/partner/v1/news/list","playground":"simple","href":"/cerberus-crm/api/post-news-list"},{"title":"Получить историю версий новости","sidebarTitle":"Получить историю версий новости","icon":"newspaper","api":"POST https://test.crm.arzguard.com/api/partner/v1/news/revisions","playground":"simple","href":"/cerberus-crm/api/post-news-revisions"}]},{"group":"Статистика","icon":"chart-column","pages":[{"title":"Получить статистику сообщений сервера","sidebarTitle":"Получить статистику сообщений сервера","icon":"chart-column","api":"GET https://test.crm.arzguard.com/api/partner/v1/servers/{server_id}/statistics","playground":"simple","href":"/cerberus-crm/api/get-servers-server-id-statistics"}]}]}]},{"group":"Guard Stats","pages":[{"title":"Guard Stats","sidebarTitle":"О сервисе","icon":"chart-line","href":"/kalenich-stats/overview"},{"title":"Первый запрос","sidebarTitle":"Быстрый старт","icon":"bolt","href":"/kalenich-stats/quickstart"},{"title":"Получить статистику","sidebarTitle":"Статистика сообщений","icon":"chart-column","api":"GET https://stats.arzguard.com/api/discord-statistics","playground":"simple","href":"/kalenich-stats/statistics"},{"title":"Получить иконки и баннеры","sidebarTitle":"Иконки и баннеры","icon":"image","api":"GET https://stats.arzguard.com/api/discord-icons","playground":"simple","href":"/kalenich-stats/icons"},{"title":"Периоды и границы дат","sidebarTitle":"Периоды и даты","icon":"calendar-days","href":"/kalenich-stats/periods"},{"title":"Данные и статусы отчётов","sidebarTitle":"Данные и статусы","icon":"database","href":"/kalenich-stats/data-and-statuses"},{"title":"Ошибки и ограничения API","sidebarTitle":"Ошибки API","icon":"triangle-exclamation","href":"/kalenich-stats/errors"},{"title":"Примеры интеграции","sidebarTitle":"Примеры кода","icon":"code","href":"/kalenich-stats/examples"}]}]},"basePath":"","title":"Выдать предупреждение или выговор - Guard API","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js"]}