{"id":4162,"date":"2024-04-30T10:46:38","date_gmt":"2024-04-30T08:46:38","guid":{"rendered":"https:\/\/modulus.help\/kb\/docs\/documentation\/recruitment-apis-v1\/api-vacancies-list\/"},"modified":"2024-05-30T12:10:58","modified_gmt":"2024-05-30T10:10:58","slug":"api-vacancies-list","status":"publish","type":"docs","link":"https:\/\/modulus.help\/kb\/docs\/documentation\/recruitment-apis-v1\/api-vacancies-list\/","title":{"rendered":"API: Vacancies List"},"content":{"rendered":"<p>The purpose of this API is to list vacancies.<\/p>\n<h4>Request<\/h4>\n<table style=\"width: auto;\">\n<tbody>\n<tr>\n<th style=\"text-align: left;\">URL<\/th>\n<td>https:\/\/your_account.modulus.biz\/api\/rec\/v1\/vacancies?token=YOUR_TOKEN<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">API Name<\/th>\n<td>Vacancies<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">Method<\/th>\n<td>GET<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">Source<\/th>\n<td>Third Party Server<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">Recipient<\/th>\n<td>modulus\u00ae Server<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Query String Parameters<\/h4>\n<table style=\"width: auto;\">\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Required<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th style=\"text-align: left;\">token<\/th>\n<td>Yes<\/td>\n<td>Text<\/td>\n<td>Your authentication token.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">vacancy_code<\/th>\n<td>No<\/td>\n<td>text<\/td>\n<td>Specific vacancy code to list.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">department<\/th>\n<td>No<\/td>\n<td>text<\/td>\n<td>Department name to list all vacancies under it.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">position<\/th>\n<td>No<\/td>\n<td>text<\/td>\n<td>Position name to list all vacancies under it.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">status<\/th>\n<td>No<\/td>\n<td>text<\/td>\n<td>Vacancy status possible values [LNG_ENUM_STATUS_PUBLISH, LNG_ENUM_STATUS_UNPUBLISH].<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">status<\/th>\n<td>No<\/td>\n<td>text<\/td>\n<td>Vacancy status possible values [LNG_ENUM_STATUS_PUBLISH, LNG_ENUM_STATUS_UNPUBLISH].<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">start_date_from<\/th>\n<td>No<\/td>\n<td>Date<\/td>\n<td>Date format must be ISO 8601 (Example: \u201c2020-01-10\u201d).<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">start_date_to<\/th>\n<td>No<\/td>\n<td>Date<\/td>\n<td>Date format must be ISO 8601 (Example: \u201c2020-01-10\u201d).<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">expire_date_from<\/th>\n<td>No<\/td>\n<td>Date<\/td>\n<td>Date format must be ISO 8601 (Example: \u201c2020-01-10\u201d).<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">expire_date_to<\/th>\n<td>No<\/td>\n<td>Date<\/td>\n<td>Date format must be ISO 8601 (Example: \u201c2020-01-10\u201d).<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">sort_by<\/th>\n<td>No<\/td>\n<td>Text<\/td>\n<td>Possible values [vacancy_code, start_date, end_date].<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">page_number<\/th>\n<td>No<\/td>\n<td>Number<\/td>\n<td>Which page to list default value is 1.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">page_size<\/th>\n<td>No<\/td>\n<td>Number<\/td>\n<td>Number of records per page value must be from 10 to 100 (if less than 10 use 10, if greater than 100 use 100) default value is 10.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Responses<\/h4>\n<table style=\"width: auto;\">\n<thead>\n<tr>\n<th>HTTP Status<\/th>\n<th>result<\/th>\n<th>title<\/th>\n<th>message<\/th>\n<th>object<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th colspan=\"5\">Success Responses<\/th>\n<\/tr>\n<tr>\n<td>200 OK<\/td>\n<td>true<\/td>\n<td>Success<\/td>\n<td>Vacancies listed successfully.<\/td>\n<td>\n<pre><code class=\"json\">{\r\n  \"meta_data\": {\r\n    \"record_count\": 1,\r\n    \"page_count\": 1,\r\n    \"page_size\": 1,\r\n    \"page_number\": 1,\r\n  }\r\n  \"data\": [{\r\n    \"vacancy_code\": \"\",\r\n    \"department\": \"\",\r\n    \"position\": \"\",\r\n    \"start_date\": \"\",\r\n    \"expiry_date\": \"\",\r\n    \"short_description\": \"\"\r\n  }] \r\n}<\/code><\/pre>\n<\/td>\n<\/tr>\n<tr>\n<th colspan=\"5\">Failure Responses<\/th>\n<\/tr>\n<tr>\n<td>500 Internal Server Error<\/td>\n<td>false<\/td>\n<td>Error<\/td>\n<td>Error message describe the problem.<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Example<\/h4>\n<table style=\"width: auto;\">\n<tbody>\n<tr>\n<th>Request<\/th>\n<td>\n<pre><code class=\"json\">curl <span style=\"white-space: nowrap;\">--request GET 'https:\/\/your_account.modulus.biz\/api\/rec\/v1\/vacancies?token=YOUR_TOKEN&amp;page_size=30&amp;page_number=1'<\/span>\r\n<\/code><\/pre>\n<\/td>\n<\/tr>\n<tr>\n<th>200 OK<\/th>\n<td>\n<pre><code class=\"json\">{\r\n  \"result\": true,\r\n  \"title\": \"Success\",\r\n  \"message\": \"Vacancies listed successfully.\",\r\n  \"object\": {\r\n    \"meta_data\": {\r\n      \"record_count\": 3,\r\n      \"page_count\": 1,\r\n      \"page_size\": 20,\r\n      \"page_number\": 1\r\n    },\r\n    \"data\": [\r\n      {\r\n        \"vacancy_code\": \"001-001\",\r\n        \"department\": \"Management\",\r\n        \"position\": \"HR\",\r\n        \"start_date\": \"2022-12-22\",\r\n        \"expiry_date\": \"2023-12-31\",\r\n        \"short_description\": \"Testing\"\r\n      },\r\n      {\r\n        \"vacancy_code\": \"005-003\",\r\n        \"department\": \"Customer Success\",\r\n        \"position\": \"Customer Support\",\r\n        \"start_date\": \"2024-04-08\",\r\n        \"expiry_date\": \"2024-04-30\",\r\n        \"short_description\": \"Testing 2\"\r\n      },\r\n      {\r\n        \"vacancy_code\": \"001-004\",\r\n        \"department\": \"Management\",\r\n        \"position\": \"Vice President\",\r\n        \"start_date\": \"2023-10-09\",\r\n        \"expiry_date\": \"2023-11-10\",\r\n        \"short_description\": \"Testing 3\"\r\n      }\r\n    ]\r\n  }\r\n}<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"featured_media":0,"parent":4161,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"comment_count":0,"_links":{"self":[{"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs\/4162"}],"collection":[{"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/comments?post=4162"}],"version-history":[{"count":2,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs\/4162\/revisions"}],"predecessor-version":[{"id":4414,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs\/4162\/revisions\/4414"}],"up":[{"embeddable":true,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs\/4161"}],"wp:attachment":[{"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/media?parent=4162"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/doc_tag?post=4162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}