Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete specializations from create vacancy #666

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions docs/employer_vacancies.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@
* `ignore_duplicates=true` - форсировать
[добавление дубликата](#creation-ignore-duplicates).

* `with_professional_roles=true` - для публикации вакансии с профессиональными ролями вместо специализаций

<a name="creation-with_professional_roles"></a>
При указании параметра `with_professional_roles=true` поле `specializations` перестает быть обязательным и игнорируется, а массив `professional_roles` становится обязательным, при этом количество его элементов равно 1.
Без этого параметра массив `professional_roles` необязателен и игнорируется
### Общая информация

В качестве тела запроса необходимо передавать
Expand Down Expand Up @@ -100,14 +95,6 @@
"type": {
"id": "open"
},
"specializations": [
{
"id": "17.324"
},
{
"id": "3.148"
}
],
"professional_roles": [
{
"id": "59"
Expand Down Expand Up @@ -196,9 +183,7 @@ name | string | название
description | string | описание в html, не менее 200 символов
key_skills | array | список ключевых навыков, не более 30
key_skills[].name | string | название ключевого навыка
specializations | array | список специализаций
specializations[].id | string | специализация [из справочника](specializations.md)
professional_roles | array | массив профессиональных ролей с количеством элементов равным 1 (если передать больше возникнет [ошибка](errors.md#причины-возникновения-ошибок) `is_too_long`) [при использовании параметра](#creation-with_professional_roles) `with_professional_roles=true`
professional_roles | array | массив профессиональных ролей с количеством элементов равным 1 (если передать больше возникнет [ошибка](errors.md#причины-возникновения-ошибок) `is_too_long`)
professional_roles[].id | string | индификатор профессиональной роли [из справочника](https://api.hh.ru/openapi/redoc#tag/Obshie-spravochniki/paths/~1professional_roles/get)
area.id | string | город публикации [из справочника](areas.md)
type.id | string | тип из [справочника vacancy_type](https://api.hh.ru/openapi/redoc#tag/Obshie-spravochniki/paths/~1dictionaries/get)
Expand Down
14 changes: 0 additions & 14 deletions docs_eng/employer_vacancies.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ See also:
you can additionally specify the following query-arguments:

* `ignore_duplicates=true` - force [adding duplicate](#creation-ignore-duplicates).
* `with_professional_roles=true` - force vacancy publication with professional roles instead of specializations

<a name="creation-with_professional_roles"></a>
With argument `with_professional_roles=true` field `specializations` is not required and is ignored, field `professional_roles` is required.
Without this argument field `professional_roles` is not required and is ignored
### General information

As the response body, send
Expand Down Expand Up @@ -95,14 +91,6 @@ some additional fields.
"type": {
"id": "open"
},
"specializations": [
{
"id": "17.324"
},
{
"id": "3.148"
}
],
"professional_roles": [
{
"id": "59"
Expand Down Expand Up @@ -192,8 +180,6 @@ some additional fields.
description | string | html description, min. 200 characters
key_skills | array | list of key skills, max. 30
key_skills[].name | string | name of key skill
specializations | array | list of specialisations
specializations[].id | string | specialisation [from directory](specializations.md)
professional_roles | array | list of professional roles
professional_roles[].id | string | professional role [from directory](https://api.hh.ru/openapi/redoc#tag/Obshie-spravochniki/paths/~1professional_roles/get)
area.id | string | city of publication [from directory](areas.md)
Expand Down