{"action":"created","comment":{"url":"https://api.github.com/repos/hhru/api/pulls/comments/47214162","id":47214162,"diff_hunk":"@@ -938,9 +939,99 @@ PUT /vacancies/{vacancy_id}\n \n **Продление вакансии по стоимости приравнивается к новой публикации**\n \n-Для продления публикации вакансии необходимо отправить запрос `POST /vacancies/{vacancy_id}/prolongate`. \n-\n-Существуют ограничения по продлению вакансии, они могут меняться, на данный момент работают следующие правила:\n+Существуют ограничения по продлению вакансии, они могут меняться, на данный\n+момент работают следующие правила:\n \n * стандартные вакансии можно продлевать, если с предыдущего продления прошло не менее 3 дней.\n * вакансии \"стандарт-плюс\" возможно продлевать не ранее 5 дней до окончания публикации.\n+\n+\n+### Запрос\n+\n+`POST /vacancies/{vacancy_id}/prolongate`\n+\n+где `vacancy_id` - идентификатор вакансии.\n+\n+\n+### Ответ\n+\n+* `204 No Content` – вакансия продлена успешно\n+* `403 Forbidden` – текущий пользователь не является работодателем или\n+  продление не возможно.\n+* `404 Not Found` – вакансия не существует или текущему пользователю\n+  не доступно её продление.\n+\n+Дополнительно к HTTP коду сервер может вернуть\n+описание [причины ошибки](errors.md#vacancies-prolongate).\n+\n+\n+<a name=\"prolongate-info\"/>\n+## Информация о возможности продления вакансии\n+\n+\n+### Запрос\n+\n+`GET /vacancies/{vacancy_id}/prolongate`\n+\n+где `vacancy_id` - идентификатор вакансии.\n+\n+\n+### Ответ\n+\n+Успешный ответ приходит с кодом `200 OK`.\n+\n+Пример ответа, когда продление невозможно:\n+\n+```json\n+{\n+  \"actions\": [\n+    {\n+      \"disable_reason\": {\n+        \"id\": \"standard_plus_publication_is_updated_automatically\",\n+        \"name\": \"Вакансия \\\"Стандарт Плюс\\\" не может быть обновлена, это происходит автоматически раз в три дня.\"\n+      },\n+      \"enabled\": false,\n+      \"id\": \"prolongate\"\n+    }\n+  ],\n+  \"id\": \"123456789\",\n+  \"expires_at\": \"2015-11-19T17:10:48+0300\"\n+}\n+```\n+\n+Пример ответа, когда продление возможно:\n+\n+```json\n+{\n+  \"actions\": [\n+    {\n+      \"enabled\": true,\n+      \"id\": \"prolongate\"\n+    }\n+  ],\n+  \"id\": \"123456789\",\n+  \"expires_at\": \"2015-11-19T17:10:48+0300\"\n+}\n+```\n+\n+Где:\n+\n+* `actions` – список действий, которые можно предпринять для продления\n+  вакансии. В данный момент поддерживается только обычное продление.\n+* `id` – идентификатор вакансии.\n+* `expires_at` – дата и время окончания публикации вакансии.\n+\n+По действию доступны данные:\n+\n+* `id` - идентификатор действия,\n+* `enabled` - возможно ли действие,\n+* `disable_reason` - причина по которой совершить действие невозможно.\n+  Возможные причины перечислены [в справочнике](dictionaries.md)\n+  `vacancy_not_prolonged_reason`.\n+\n+\n+### Ошибки\n+\n+* `403 Forbidden` – текущий пользователь не является работодателем.\n+* `404 Not Found` – вакансия не существует или текущему пользователю\n+  не доступно получение информации о вакансии.","path":"docs/vacancies.md","position":110,"original_position":110,"commit_id":"13281c0ed1098ec1592c6f24cd30b0776b5983c2","original_commit_id":"13281c0ed1098ec1592c6f24cd30b0776b5983c2","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-12-10T11:14:31Z","updated_at":"2015-12-10T11:14:31Z","html_url":"https://github.com/hhru/api/pull/146#discussion_r47214162","pull_request_url":"https://api.github.com/repos/hhru/api/pulls/146","_links":{"self":{"href":"https://api.github.com/repos/hhru/api/pulls/comments/47214162"},"html":{"href":"https://github.com/hhru/api/pull/146#discussion_r47214162"},"pull_request":{"href":"https://api.github.com/repos/hhru/api/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/hhru/api/pulls/146","id":53244162,"html_url":"https://github.com/hhru/api/pull/146","diff_url":"https://github.com/hhru/api/pull/146.diff","patch_url":"https://github.com/hhru/api/pull/146.patch","issue_url":"https://api.github.com/repos/hhru/api/issues/146","number":146,"state":"open","locked":false,"title":"Выдача информации о продлении вакансии","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":"а также дополнил само продление","created_at":"2015-12-10T11:07:03Z","updated_at":"2015-12-10T11:14:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e0d1f62632fa8336cab4d6e3d3698501a9e94d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hhru/api/pulls/146/commits","review_comments_url":"https://api.github.com/repos/hhru/api/pulls/146/comments","review_comment_url":"https://api.github.com/repos/hhru/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hhru/api/issues/146/comments","statuses_url":"https://api.github.com/repos/hhru/api/statuses/13281c0ed1098ec1592c6f24cd30b0776b5983c2","head":{"label":"hhru:vacancy-prolongation-info","ref":"vacancy-prolongation-info","sha":"13281c0ed1098ec1592c6f24cd30b0776b5983c2","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-12-02T14:08:03Z","pushed_at":"2015-12-10T11:07:03Z","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":4845,"stargazers_count":64,"watchers_count":64,"language":"PostScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":31,"mirror_url":null,"open_issues_count":20,"forks":31,"open_issues":20,"watchers":64,"default_branch":"master"}},"base":{"label":"hhru:master","ref":"master","sha":"bd7b9d05dd5d51e6265f79a70bc243eb4b8c5170","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-12-02T14:08:03Z","pushed_at":"2015-12-10T11:07:03Z","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":4845,"stargazers_count":64,"watchers_count":64,"language":"PostScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":31,"mirror_url":null,"open_issues_count":20,"forks":31,"open_issues":20,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hhru/api/pulls/146"},"html":{"href":"https://github.com/hhru/api/pull/146"},"issue":{"href":"https://api.github.com/repos/hhru/api/issues/146"},"comments":{"href":"https://api.github.com/repos/hhru/api/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/hhru/api/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/hhru/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hhru/api/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/hhru/api/statuses/13281c0ed1098ec1592c6f24cd30b0776b5983c2"}}}}