{"action":"created","comment":{"url":"https://api.github.com/repos/hhru/api/pulls/comments/36509365","id":36509365,"diff_hunk":"@@ -521,10 +524,98 @@ viewed_by_me | логический | Прочитано ли сообщение\n viewed_by_opponent | логический | Прочитано ли сообщение соискателем (для сообщений соискателя всегда `true`)\n created_at | строка | Дата и время создания сообщения\n text | строка, null | Текст сообщения. `null` может быть в случае, когда соискатель не оставил сопроводительное письмо к отклику.\n-state | объект | Текущее состояние отклика. Возможные значения находятся в справочнике [/dictionaries] (./dictionaries.md) в разделе `negotiations_state`\n+state | объект | Текущее состояние отклика. Возможные значения находятся в справочнике [/dictionaries](./dictionaries.md) в разделе `negotiations_state`\n author | объект | Кто автор сообщения\n-author.participant_type | строка | Роль автора сообщения. Возможные значения находятся в справочнике [/dictionaries] (./dictionaries.md) в разделе `negotiations_participant_type`\n-address | объект, null | [Адрес] (./address.md), привязанный к отклику/приглашению\n+author.participant_type | строка | Роль автора сообщения. Возможные значения находятся в справочнике [/dictionaries](./dictionaries.md) в разделе `negotiations_participant_type`\n+address | объект, null | [Адрес](./address.md), привязанный к отклику/приглашению\n \n В случае, когда отклик/приглашение не существует или переписка недоступна\n текущему пользователю возвращается ответ `404 Not Found`.\n+\n+<a name=\"put-on-hold\"/>\n+## Перенос в «Подумать»\n+\n+Перенос топика в состояние «Подумать» возможен в случае, если соискатель еще не был приглашен и не получил отказ. Информация о переносе топика в статус «Подумать» не раскрывается соискателю. \n+\n+### Запрос\n+\n+`PUT /negotiations/hold/{topic_id}`\n+\n+Параметры\n+\n+Имя | Описание\n+----|---------\n+topic_id | идентификатор топика, обязательный параметр\n+\n+### Ответ\n+\n+Успешный ответ приходит с кодом `204 NO CONTENT` и не содержит тела.\n+\n+### Ошибки\n+\n+Код | type | value | Причина\n+----|------|-------|--------\n+403 | negotiations | wrong_state | топик находится в состоянии, из которого невозможен перенос в состояние «Подумать» (соискатель уже приглашен либо получил отказ)\n+404 | not_found | — | топик не существует, принадлежит другому работодателю либо у текущего менеджера нет прав для работы с переданным топиком\n+\n+<a name=\"invite\"/>\n+## Приглашение соискателя в ответ на отклик\n+\n+Приглашение возможно, если соискатель еще не был приглашен и не получил отказ. При приглашении соискатель получит письмо на электронную почту.\n+\n+### Запрос\n+\n+`PUT /negotiations/invited/{topic_id}`\n+\n+Параметры\n+\n+Имя | Тип | Обязательный | Описание\n+----|-----|--------------|---------\n+topic_id | строка | да | идентификатор топика\n+send_sms | логический | нет | уведомлять ли соискателя о приглашении с помощью sms, значение по умолчанию — `false`\n+message | строка | да | Сообщение, которое будет отправлено соискателю на электронную почту. Используйте [шаблоны писем](./message_templates.md) для получения шаблонов текстов.\n+address_id | строка | нет | идентификатор адреса, который будет указан в приглашении\n+\n+### Ответ\n+\n+Успешный ответ приходит с кодом `204 NO CONTENT` и не содержит тела.\n+\n+### Ошибки\n+\n+Код | type | value | Причина\n+----|------|-------|--------\n+403 | negotiations | wrong_state | топик находится в состоянии, при котором невозможно приглашение (соискатель уже был приглашен либо получил отказ)\n+404 | not_found | — | топик не существует, принадлежит другому работодателю либо у текущего менеджера нет прав для работы с переданным топиком\n+403 | negotiations | resume_not_found | резюме из топика было скрыто либо удалено\n+400 | bad_argument | empty_mail_text | передан пустой текст письма\n+400 | bad_argument | too_long_mail_text | Передан слишком длинный текст письма. Максимально допустимая длина письма составляет 10000 символов.\n+403 | negotiations | address_not_found | переданный адрес не существует либо принадлежит другому работодателю\n+403 | negotiations | invalid_vacancy | вакансия из топика была заархивирована либо скрыта","path":"docs/employer_negotiations.md","position":83,"original_position":83,"commit_id":"daa2f95f107a502090c9fbd37de6bd19e6a0adae","original_commit_id":"daa2f95f107a502090c9fbd37de6bd19e6a0adae","user":{"login":"maizy","id":789623,"avatar_url":"https://avatars.githubusercontent.com/u/789623?v=3","gravatar_id":"","url":"https://api.github.com/users/maizy","html_url":"https://github.com/maizy","followers_url":"https://api.github.com/users/maizy/followers","following_url":"https://api.github.com/users/maizy/following{/other_user}","gists_url":"https://api.github.com/users/maizy/gists{/gist_id}","starred_url":"https://api.github.com/users/maizy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maizy/subscriptions","organizations_url":"https://api.github.com/users/maizy/orgs","repos_url":"https://api.github.com/users/maizy/repos","events_url":"https://api.github.com/users/maizy/events{/privacy}","received_events_url":"https://api.github.com/users/maizy/received_events","type":"User","site_admin":false},"body":"лучше что-то типа:\r\n\"вакансия из отклика уже не может использоваться, например она архивирована или скрыта\"\r\nописывай общую семантику и оставляй место для расширения в будущем, а текущие варианты, только как примеры\r\n","created_at":"2015-08-07T11:04:41Z","updated_at":"2015-08-07T11:04:41Z","html_url":"https://github.com/hhru/api/pull/117#discussion_r36509365","pull_request_url":"https://api.github.com/repos/hhru/api/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/hhru/api/pulls/comments/36509365"},"html":{"href":"https://github.com/hhru/api/pull/117#discussion_r36509365"},"pull_request":{"href":"https://api.github.com/repos/hhru/api/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/hhru/api/pulls/117","id":41677623,"html_url":"https://github.com/hhru/api/pull/117","diff_url":"https://github.com/hhru/api/pull/117.diff","patch_url":"https://github.com/hhru/api/pull/117.patch","issue_url":"https://api.github.com/repos/hhru/api/issues/117","number":117,"state":"open","locked":false,"title":"Добавили описание перемещения работодательских топиков по состояниям","user":{"login":"ilyakhokhryakov","id":992844,"avatar_url":"https://avatars.githubusercontent.com/u/992844?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyakhokhryakov","html_url":"https://github.com/ilyakhokhryakov","followers_url":"https://api.github.com/users/ilyakhokhryakov/followers","following_url":"https://api.github.com/users/ilyakhokhryakov/following{/other_user}","gists_url":"https://api.github.com/users/ilyakhokhryakov/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyakhokhryakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyakhokhryakov/subscriptions","organizations_url":"https://api.github.com/users/ilyakhokhryakov/orgs","repos_url":"https://api.github.com/users/ilyakhokhryakov/repos","events_url":"https://api.github.com/users/ilyakhokhryakov/events{/privacy}","received_events_url":"https://api.github.com/users/ilyakhokhryakov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-05T13:21:30Z","updated_at":"2015-08-07T11:04:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd1f56189659dfeb1a976ec25883d3459e8b611f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hhru/api/pulls/117/commits","review_comments_url":"https://api.github.com/repos/hhru/api/pulls/117/comments","review_comment_url":"https://api.github.com/repos/hhru/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hhru/api/issues/117/comments","statuses_url":"https://api.github.com/repos/hhru/api/statuses/daa2f95f107a502090c9fbd37de6bd19e6a0adae","head":{"label":"hhru:hold_invited_discarded","ref":"hold_invited_discarded","sha":"daa2f95f107a502090c9fbd37de6bd19e6a0adae","user":{"login":"hhru","id":152753,"avatar_url":"https://avatars.githubusercontent.com/u/152753?v=3","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"repo":{"id":6885644,"name":"api","full_name":"hhru/api","owner":{"login":"hhru","id":152753,"avatar_url":"https://avatars.githubusercontent.com/u/152753?v=3","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hhru/api","description":"HeadHunter API: документация и библиотеки","fork":false,"url":"https://api.github.com/repos/hhru/api","forks_url":"https://api.github.com/repos/hhru/api/forks","keys_url":"https://api.github.com/repos/hhru/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhru/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhru/api/teams","hooks_url":"https://api.github.com/repos/hhru/api/hooks","issue_events_url":"https://api.github.com/repos/hhru/api/issues/events{/number}","events_url":"https://api.github.com/repos/hhru/api/events","assignees_url":"https://api.github.com/repos/hhru/api/assignees{/user}","branches_url":"https://api.github.com/repos/hhru/api/branches{/branch}","tags_url":"https://api.github.com/repos/hhru/api/tags","blobs_url":"https://api.github.com/repos/hhru/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhru/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhru/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhru/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhru/api/statuses/{sha}","languages_url":"https://api.github.com/repos/hhru/api/languages","stargazers_url":"https://api.github.com/repos/hhru/api/stargazers","contributors_url":"https://api.github.com/repos/hhru/api/contributors","subscribers_url":"https://api.github.com/repos/hhru/api/subscribers","subscription_url":"https://api.github.com/repos/hhru/api/subscription","commits_url":"https://api.github.com/repos/hhru/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhru/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhru/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhru/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhru/api/contents/{+path}","compare_url":"https://api.github.com/repos/hhru/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhru/api/merges","archive_url":"https://api.github.com/repos/hhru/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhru/api/downloads","issues_url":"https://api.github.com/repos/hhru/api/issues{/number}","pulls_url":"https://api.github.com/repos/hhru/api/pulls{/number}","milestones_url":"https://api.github.com/repos/hhru/api/milestones{/number}","notifications_url":"https://api.github.com/repos/hhru/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhru/api/labels{/name}","releases_url":"https://api.github.com/repos/hhru/api/releases{/id}","created_at":"2012-11-27T15:24:57Z","updated_at":"2015-08-01T15:48:13Z","pushed_at":"2015-08-07T08:08:40Z","git_url":"git://github.com/hhru/api.git","ssh_url":"git@github.com:hhru/api.git","clone_url":"https://github.com/hhru/api.git","svn_url":"https://github.com/hhru/api","homepage":"hh.ru","size":6045,"stargazers_count":46,"watchers_count":46,"language":"PostScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":22,"mirror_url":null,"open_issues_count":17,"forks":22,"open_issues":17,"watchers":46,"default_branch":"master"}},"base":{"label":"hhru:master","ref":"master","sha":"5318a0b2d6438ec0d16a97581257bf0d07725a0e","user":{"login":"hhru","id":152753,"avatar_url":"https://avatars.githubusercontent.com/u/152753?v=3","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"repo":{"id":6885644,"name":"api","full_name":"hhru/api","owner":{"login":"hhru","id":152753,"avatar_url":"https://avatars.githubusercontent.com/u/152753?v=3","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hhru/api","description":"HeadHunter API: документация и библиотеки","fork":false,"url":"https://api.github.com/repos/hhru/api","forks_url":"https://api.github.com/repos/hhru/api/forks","keys_url":"https://api.github.com/repos/hhru/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhru/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhru/api/teams","hooks_url":"https://api.github.com/repos/hhru/api/hooks","issue_events_url":"https://api.github.com/repos/hhru/api/issues/events{/number}","events_url":"https://api.github.com/repos/hhru/api/events","assignees_url":"https://api.github.com/repos/hhru/api/assignees{/user}","branches_url":"https://api.github.com/repos/hhru/api/branches{/branch}","tags_url":"https://api.github.com/repos/hhru/api/tags","blobs_url":"https://api.github.com/repos/hhru/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhru/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhru/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhru/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhru/api/statuses/{sha}","languages_url":"https://api.github.com/repos/hhru/api/languages","stargazers_url":"https://api.github.com/repos/hhru/api/stargazers","contributors_url":"https://api.github.com/repos/hhru/api/contributors","subscribers_url":"https://api.github.com/repos/hhru/api/subscribers","subscription_url":"https://api.github.com/repos/hhru/api/subscription","commits_url":"https://api.github.com/repos/hhru/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhru/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhru/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhru/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhru/api/contents/{+path}","compare_url":"https://api.github.com/repos/hhru/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhru/api/merges","archive_url":"https://api.github.com/repos/hhru/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhru/api/downloads","issues_url":"https://api.github.com/repos/hhru/api/issues{/number}","pulls_url":"https://api.github.com/repos/hhru/api/pulls{/number}","milestones_url":"https://api.github.com/repos/hhru/api/milestones{/number}","notifications_url":"https://api.github.com/repos/hhru/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhru/api/labels{/name}","releases_url":"https://api.github.com/repos/hhru/api/releases{/id}","created_at":"2012-11-27T15:24:57Z","updated_at":"2015-08-01T15:48:13Z","pushed_at":"2015-08-07T08:08:40Z","git_url":"git://github.com/hhru/api.git","ssh_url":"git@github.com:hhru/api.git","clone_url":"https://github.com/hhru/api.git","svn_url":"https://github.com/hhru/api","homepage":"hh.ru","size":6045,"stargazers_count":46,"watchers_count":46,"language":"PostScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":22,"mirror_url":null,"open_issues_count":17,"forks":22,"open_issues":17,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hhru/api/pulls/117"},"html":{"href":"https://github.com/hhru/api/pull/117"},"issue":{"href":"https://api.github.com/repos/hhru/api/issues/117"},"comments":{"href":"https://api.github.com/repos/hhru/api/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/hhru/api/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/hhru/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hhru/api/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/hhru/api/statuses/daa2f95f107a502090c9fbd37de6bd19e6a0adae"}}}}