- Request
- Responses
- 200 OK
- Body
- SuggestCountryOut
- SuggestCityOut
- SuggestUniversityOut
- SuggestAddressOut
- SuggestGenderOut
- SuggestUserEmailOut
- SuggestWebMasterOut
- SuggestAbcServiceOut
- SuggestMusicGenreOut
- SuggestStaffOrganizationOut
- SuggestStaffOfficeOut
- SuggestStaffGroupOut
- SuggestStaffPersonOut
- SuggestStaffRoomOut
- SuggestWikiTableOut
- SuggestYtTableOut
- SuggestDirUserOut
- SuggestDirGroupOut
- SuggestDirDepartmentOut
- SuggestTrackerQueueOut
- SuggestTrackerProjectOut
- SuggestTrackerBoardOut
- SuggestTrackerSprintOut
- SuggestTrackerComponentOut
- SuggestTrackerIssueOut
- SuggestTrackerFieldOut
- 404 Not Found
- 408 Request Timeout
- 422 Unprocessable Entity
Get suggestions for filling out the form
Returns suggestions (prompts) for filling out the form.
Parameters:
- survey: form ID, its slug, or a combination of the form ID and a verification key
- question: question slug (string identifier)
- text: text to search for
- id: comma-separated list of suggestion object identifiers; allows retrieving suggestion objects by their IDs
- parent_id: comma-separated list of suggestion object identifiers for organizing Master-Detail relationships
Request
GET
https://api.forms.yandex.net/v1/surveys/{survey}/suggest
Path parameters
|
Name |
Description |
|
survey |
Type: string Example: `` |
Query parameters
|
Name |
Description |
|
id |
Type: string Default: `` Example: `` |
|
parent_id |
Type: string Default: `` Example: `` |
|
question |
Type: string Default: `` Example: `` |
|
text |
Type: string Default: `` Example: `` |
Responses
200 OK
OK
Body
application/json
[
{
"layer": "country",
"id": "example",
"text": "example",
"orig_id": "example"
}
]
Type: array
Type: array
One of 26 types
-
SuggestCountryOut
Type: SuggestCountryOut
Example
{ "layer": "country", "id": "example", "text": "example", "orig_id": "example" } -
SuggestCityOut
Type: SuggestCityOut
Example
{ "layer": "city", "id": "example", "text": "example", "country_id": "example", "population": 0, "orig_id": "example" } -
SuggestUniversityOut
Type: SuggestUniversityOut
Example
{ "layer": "university", "id": "example", "text": "example", "city": "example", "region": "example" } -
SuggestAddressOut
Type: SuggestAddressOut
Example
{ "layer": "address", "id": "example", "text": "example" } -
SuggestGenderOut
Type: SuggestGenderOut
Example
{ "layer": "gender", "id": "example", "text": "example" } -
SuggestUserEmailOut
Type: SuggestUserEmailOut
Example
{ "layer": "user_email_list", "id": "example", "text": "example" } -
SuggestWebMasterOut
Type: SuggestWebMasterOut
Example
{ "layer": "web_master_site", "id": "example", "text": "example" } -
SuggestAbcServiceOut
Type: SuggestAbcServiceOut
Example
{ "layer": "abc_service", "id": "example", "text": "example" } -
SuggestMusicGenreOut
Type: SuggestMusicGenreOut
Example
{ "layer": "music_genre", "id": "example", "text": "example", "tracks_count": 0 } -
SuggestStaffOrganizationOut
Type: SuggestStaffOrganizationOut
Example
{ "layer": "staff_organization", "id": "example", "text": "example" } -
SuggestStaffOfficeOut
Type: SuggestStaffOfficeOut
Example
{ "layer": "staff_office", "id": "example", "text": "example", "address": "example" } -
SuggestStaffGroupOut
Type: SuggestStaffGroupOut
Example
{ "layer": "staff_group", "id": "example", "text": "example", "url": "example", "type": "example", "role_scope": "example" } -
SuggestStaffPersonOut
Type: SuggestStaffPersonOut
Example
{ "layer": "staff_login", "id": "example", "text": "example", "full_name": "example", "yandex_uid": "example", "uid": "example", "email": "example", "group_id": "example", "avatar": "example", "department": "example" } -
SuggestStaffRoomOut
Type: SuggestStaffRoomOut
Example
{ "layer": "staff_room", "id": "example", "text": "example", "office_id": "example", "floor_number": "example", "floor_id": "example" } -
SuggestWikiTableOut
Type: SuggestWikiTableOut
Example
{ "layer": "wiki_table_source", "id": "example", "text": "example", "orig_id": "example", "row_id": "example", "parent_id": "example", "display_text": "example" } -
SuggestYtTableOut
Type: SuggestYtTableOut
Example
{ "layer": "yt_table_source", "id": "example", "text": "example", "orig_id": "example", "row_id": "example", "parent_id": "example", "display_text": "example" } -
SuggestDirUserOut
Type: SuggestDirUserOut
Example
{ "layer": "dir_user", "id": "example", "text": "example", "login": "example", "avatar": "example", "yandex_uid": "example", "uid": "example", "cloud_uid": "example", "email": "example" } -
SuggestDirGroupOut
Type: SuggestDirGroupOut
Example
{ "layer": "dir_group", "id": "example", "text": "example" } -
SuggestDirDepartmentOut
Type: SuggestDirDepartmentOut
Example
{ "layer": "dir_department", "id": "example", "text": "example" } -
SuggestTrackerQueueOut
Type: SuggestTrackerQueueOut
Example
{ "layer": "tracker_queue", "id": "example", "text": "example" } -
SuggestTrackerProjectOut
Type: SuggestTrackerProjectOut
Example
{ "layer": "tracker_project", "id": "example", "text": "example" } -
SuggestTrackerBoardOut
Type: SuggestTrackerBoardOut
Example
{ "layer": "tracker_board", "id": "example", "text": "example" } -
SuggestTrackerSprintOut
Type: SuggestTrackerSprintOut
Example
{ "layer": "tracker_sprint", "id": "example", "text": "example", "board": "example" } -
SuggestTrackerComponentOut
Type: SuggestTrackerComponentOut
Example
{ "layer": "tracker_component", "id": "example", "text": "example", "queue": "example" } -
SuggestTrackerIssueOut
Type: SuggestTrackerIssueOut
Example
{ "layer": "tracker_issue", "id": "example", "text": "example", "queue": "example", "status": "example" } -
SuggestTrackerFieldOut
Type: SuggestTrackerFieldOut
Example
{ "layer": "tracker_field", "id": "example", "slug": "example", "text": "example", "queue": "example" }
One of 26 types
-
SuggestCountryOut
Type: SuggestCountryOut
Example
{ "layer": "country", "id": "example", "text": "example", "orig_id": "example" } -
SuggestCityOut
Type: SuggestCityOut
Example
{ "layer": "city", "id": "example", "text": "example", "country_id": "example", "population": 0, "orig_id": "example" } -
SuggestUniversityOut
Type: SuggestUniversityOut
Example
{ "layer": "university", "id": "example", "text": "example", "city": "example", "region": "example" } -
SuggestAddressOut
Type: SuggestAddressOut
Example
{ "layer": "address", "id": "example", "text": "example" } -
SuggestGenderOut
Type: SuggestGenderOut
Example
{ "layer": "gender", "id": "example", "text": "example" } -
SuggestUserEmailOut
Type: SuggestUserEmailOut
Example
{ "layer": "user_email_list", "id": "example", "text": "example" } -
SuggestWebMasterOut
Type: SuggestWebMasterOut
Example
{ "layer": "web_master_site", "id": "example", "text": "example" } -
SuggestAbcServiceOut
Type: SuggestAbcServiceOut
Example
{ "layer": "abc_service", "id": "example", "text": "example" } -
SuggestMusicGenreOut
Type: SuggestMusicGenreOut
Example
{ "layer": "music_genre", "id": "example", "text": "example", "tracks_count": 0 } -
SuggestStaffOrganizationOut
Type: SuggestStaffOrganizationOut
Example
{ "layer": "staff_organization", "id": "example", "text": "example" } -
SuggestStaffOfficeOut
Type: SuggestStaffOfficeOut
Example
{ "layer": "staff_office", "id": "example", "text": "example", "address": "example" } -
SuggestStaffGroupOut
Type: SuggestStaffGroupOut
Example
{ "layer": "staff_group", "id": "example", "text": "example", "url": "example", "type": "example", "role_scope": "example" } -
SuggestStaffPersonOut
Type: SuggestStaffPersonOut
Example
{ "layer": "staff_login", "id": "example", "text": "example", "full_name": "example", "yandex_uid": "example", "uid": "example", "email": "example", "group_id": "example", "avatar": "example", "department": "example" } -
SuggestStaffRoomOut
Type: SuggestStaffRoomOut
Example
{ "layer": "staff_room", "id": "example", "text": "example", "office_id": "example", "floor_number": "example", "floor_id": "example" } -
SuggestWikiTableOut
Type: SuggestWikiTableOut
Example
{ "layer": "wiki_table_source", "id": "example", "text": "example", "orig_id": "example", "row_id": "example", "parent_id": "example", "display_text": "example" } -
SuggestYtTableOut
Type: SuggestYtTableOut
Example
{ "layer": "yt_table_source", "id": "example", "text": "example", "orig_id": "example", "row_id": "example", "parent_id": "example", "display_text": "example" } -
SuggestDirUserOut
Type: SuggestDirUserOut
Example
{ "layer": "dir_user", "id": "example", "text": "example", "login": "example", "avatar": "example", "yandex_uid": "example", "uid": "example", "cloud_uid": "example", "email": "example" } -
SuggestDirGroupOut
Type: SuggestDirGroupOut
Example
{ "layer": "dir_group", "id": "example", "text": "example" } -
SuggestDirDepartmentOut
Type: SuggestDirDepartmentOut
Example
{ "layer": "dir_department", "id": "example", "text": "example" } -
SuggestTrackerQueueOut
Type: SuggestTrackerQueueOut
Example
{ "layer": "tracker_queue", "id": "example", "text": "example" } -
SuggestTrackerProjectOut
Type: SuggestTrackerProjectOut
Example
{ "layer": "tracker_project", "id": "example", "text": "example" } -
SuggestTrackerBoardOut
Type: SuggestTrackerBoardOut
Example
{ "layer": "tracker_board", "id": "example", "text": "example" } -
SuggestTrackerSprintOut
Type: SuggestTrackerSprintOut
Example
{ "layer": "tracker_sprint", "id": "example", "text": "example", "board": "example" } -
SuggestTrackerComponentOut
Type: SuggestTrackerComponentOut
Example
{ "layer": "tracker_component", "id": "example", "text": "example", "queue": "example" } -
SuggestTrackerIssueOut
Type: SuggestTrackerIssueOut
Example
{ "layer": "tracker_issue", "id": "example", "text": "example", "queue": "example", "status": "example" } -
SuggestTrackerFieldOut
Type: SuggestTrackerFieldOut
Example
{ "layer": "tracker_field", "id": "example", "slug": "example", "text": "example", "queue": "example" }
Example
{
"layer": "country",
"id": "example",
"text": "example",
"orig_id": "example"
}
SuggestCountryOut
|
Name |
Description |
|
id |
Type: string Country ID Example: |
|
orig_id |
Type: string Country ID in the Yandex geolocation database Example: |
|
text |
Type: string Country name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "country",
"id": "example",
"text": "example",
"orig_id": "example"
}
SuggestCityOut
|
Name |
Description |
|
id |
Type: string City ID Example: |
|
orig_id |
Type: string City ID in the Yandex geolocation database Example: |
|
text |
Type: string City name Example: |
|
country_id |
Type: string Country ID Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
population |
Type: integer City population from the Yandex geolocation database |
Example
{
"layer": "city",
"id": "example",
"text": "example",
"country_id": "example",
"population": 0,
"orig_id": "example"
}
SuggestUniversityOut
|
Name |
Description |
|
id |
Type: string University ID Example: |
|
text |
Type: string University name Example: |
|
city |
Type: string University city Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
region |
Type: string Region Example: |
Example
{
"layer": "university",
"id": "example",
"text": "example",
"city": "example",
"region": "example"
}
SuggestAddressOut
|
Name |
Description |
|
id |
Type: string Address from geo-suggestion Example: |
|
text |
Type: string Address from geo-suggestion Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "address",
"id": "example",
"text": "example"
}
SuggestGenderOut
|
Name |
Description |
|
id |
Type: string Gender slug Example: |
|
text |
Type: string Gender name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "gender",
"id": "example",
"text": "example"
}
SuggestUserEmailOut
|
Name |
Description |
|
id |
Type: string User email address Example: |
|
text |
Type: string User email address Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "user_email_list",
"id": "example",
"text": "example"
}
SuggestWebMasterOut
|
Name |
Description |
|
id |
Type: string Domain slug from Webmaster Example: |
|
text |
Type: string Domain from Webmaster Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "web_master_site",
"id": "example",
"text": "example"
}
SuggestAbcServiceOut
|
Name |
Description |
|
id |
Type: string Service ID in ABC Example: |
|
text |
Type: string Service name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "abc_service",
"id": "example",
"text": "example"
}
SuggestMusicGenreOut
|
Name |
Description |
|
id |
Type: string Music genre slug Example: |
|
text |
Type: string Music genre name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
tracks_count |
Type: integer Number of tracks in the genre |
Example
{
"layer": "music_genre",
"id": "example",
"text": "example",
"tracks_count": 0
}
SuggestStaffOrganizationOut
|
Name |
Description |
|
id |
Type: string Organization ID in Staff Example: |
|
text |
Type: string Organization name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "staff_organization",
"id": "example",
"text": "example"
}
SuggestStaffOfficeOut
|
Name |
Description |
|
id |
Type: string Office ID in Staff Example: |
|
text |
Type: string Office name Example: |
|
address |
Type: string Office address Example: |
|
layer |
Type: string Default: Const: |
Example
{
"layer": "staff_office",
"id": "example",
"text": "example",
"address": "example"
}
SuggestStaffGroupOut
|
Name |
Description |
|
id |
Type: string Group ID in Staff Example: |
|
text |
Type: string Group name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
role_scope |
Type: string Group scope Example: |
|
type |
Type: string Group type Example: |
|
url |
Type: string Group slug Example: |
Example
{
"layer": "staff_group",
"id": "example",
"text": "example",
"url": "example",
"type": "example",
"role_scope": "example"
}
SuggestStaffPersonOut
|
Name |
Description |
|
id |
Type: string Employee ID in Staff Example: |
|
text |
Type: string Employee name Example: |
|
avatar |
Type: string Employee avatar Example: |
|
department |
Type: string Employee department in Staff Example: |
|
|
Type: string Employee email address Example: |
|
full_name |
Type: string Employee full name Example: |
|
group_id |
Type: string Group ID in Staff Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
uid |
Type: string Employee passport UID Example: |
|
yandex_uid |
Type: string Employee passport UID Example: |
Example
{
"layer": "staff_login",
"id": "example",
"text": "example",
"full_name": "example",
"yandex_uid": "example",
"uid": "example",
"email": "example",
"group_id": "example",
"avatar": "example",
"department": "example"
}
SuggestStaffRoomOut
|
Name |
Description |
|
id |
Type: string Meeting room ID in Staff Example: |
|
text |
Type: string Meeting room name Example: |
|
floor_id |
Type: string Floor ID Example: |
|
floor_number |
Type: string Floor number Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
office_id |
Type: string Office ID Example: |
Example
{
"layer": "staff_room",
"id": "example",
"text": "example",
"office_id": "example",
"floor_number": "example",
"floor_id": "example"
}
SuggestWikiTableOut
|
Name |
Description |
|
id |
Type: string Record ID for Wiki suggestion Example: |
|
orig_id |
Type: string Record ID in Wiki Example: |
|
text |
Type: string Record text Example: |
|
display_text |
Type: string Text for display in the interface Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
parent_id |
Type: string Record ID in Wiki for linked suggestions Example: |
|
row_id |
Type: string Universal record ID Example: |
Example
{
"layer": "wiki_table_source",
"id": "example",
"text": "example",
"orig_id": "example",
"row_id": "example",
"parent_id": "example",
"display_text": "example"
}
SuggestYtTableOut
|
Name |
Description |
|
id |
Type: string Record ID for YT suggestion Example: |
|
orig_id |
Type: string Record ID in YT Example: |
|
text |
Type: string Record text Example: |
|
display_text |
Type: string Text for display in the interface Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
parent_id |
Type: string Record ID in YT for linked suggestions Example: |
|
row_id |
Type: string Universal record ID Example: |
Example
{
"layer": "yt_table_source",
"id": "example",
"text": "example",
"orig_id": "example",
"row_id": "example",
"parent_id": "example",
"display_text": "example"
}
SuggestDirUserOut
|
Name |
Description |
|
id |
Type: string User ID Example: |
|
text |
Type: string User name Example: |
|
avatar |
Type: string User avatar Example: |
|
cloud_uid |
Type: string User cloud UID Example: |
|
|
Type: string User email address Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
login |
Type: string User login Example: |
|
uid |
Type: string User passport UID Example: |
|
yandex_uid |
Type: string User passport UID Example: |
Example
{
"layer": "dir_user",
"id": "example",
"text": "example",
"login": "example",
"avatar": "example",
"yandex_uid": "example",
"uid": "example",
"cloud_uid": "example",
"email": "example"
}
SuggestDirGroupOut
|
Name |
Description |
|
id |
Type: string Group ID in collab Example: |
|
text |
Type: string Group name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "dir_group",
"id": "example",
"text": "example"
}
SuggestDirDepartmentOut
|
Name |
Description |
|
id |
Type: string Department ID in collab Example: |
|
text |
Type: string Department name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "dir_department",
"id": "example",
"text": "example"
}
SuggestTrackerQueueOut
|
Name |
Description |
|
id |
Type: string Queue key in Tracker Example: |
|
text |
Type: string Queue name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "tracker_queue",
"id": "example",
"text": "example"
}
SuggestTrackerProjectOut
|
Name |
Description |
|
id |
Type: string Project ID in Tracker Example: |
|
text |
Type: string Project name in Tracker Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "tracker_project",
"id": "example",
"text": "example"
}
SuggestTrackerBoardOut
|
Name |
Description |
|
id |
Type: string Agile board ID in Tracker Example: |
|
text |
Type: string Agile board name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "tracker_board",
"id": "example",
"text": "example"
}
SuggestTrackerSprintOut
|
Name |
Description |
|
board |
Type: string Agile board name Example: |
|
id |
Type: string Sprint ID in Tracker Example: |
|
text |
Type: string Sprint name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "tracker_sprint",
"id": "example",
"text": "example",
"board": "example"
}
SuggestTrackerComponentOut
|
Name |
Description |
|
id |
Type: string Component ID in Tracker Example: |
|
queue |
Type: string Component queue Example: |
|
text |
Type: string Component name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "tracker_component",
"id": "example",
"text": "example",
"queue": "example"
}
SuggestTrackerIssueOut
|
Name |
Description |
|
id |
Type: string Issue ID in Tracker Example: |
|
queue |
Type: string Issue queue Example: |
|
status |
Type: string Issue status Example: |
|
text |
Type: string Issue title Example: |
|
layer |
Type: string Suggestion type Default: Const: |
Example
{
"layer": "tracker_issue",
"id": "example",
"text": "example",
"queue": "example",
"status": "example"
}
SuggestTrackerFieldOut
|
Name |
Description |
|
id |
Type: string Field ID in Tracker (including local fields) Example: |
|
slug |
Type: string Field slug Example: |
|
text |
Type: string Field name Example: |
|
layer |
Type: string Suggestion type Default: Const: |
|
queue |
Type: string Field queue (for local fields) Example: |
Example
{
"layer": "tracker_field",
"id": "example",
"slug": "example",
"text": "example",
"queue": "example"
}
404 Not Found
Not Found
Body
application/json
{
"code": "not_found",
"detail": "example"
}
|
Name |
Description |
|
code |
Type: string Error code Const: Example: |
|
detail |
Type: string Error text Example: |
408 Request Timeout
Request Timeout
Body
application/json
{
"code": "connect_timeout",
"detail": "example"
}
|
Name |
Description |
|
code |
Type: string Error code Const: Example: |
|
detail |
Type: string Error text Example: |
422 Unprocessable Entity
Unprocessable Content
Body
application/json
{}
|
Name |
Description |