{"info":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","description":"<html><head></head><body><h1 id=\"getting-started\">Getting Started</h1>\n<p>The first thing you need is an API key. If you do not have one, contact your portal admin to get a key.</p>\n<p>Every request will need the API key passed in the headers, with a key of \"x-api-key\" and the value as your API key.</p>\n<p>The request URLs will be in the form of <a href=\"https://www.YourPortalURL.com/wp-json/xy/v2/%7Broute%7D\">https://www.YourPortalURL.com/wp-json/xy/v2/{route}</a>.</p>\n<h1 id=\"http-status-code-summary\">HTTP Status Code Summary</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200 - OK</td>\n<td>Everything worked as expected</td>\n</tr>\n<tr>\n<td>400 - Bad Request</td>\n<td>The request was not accepted, often due to missing a required parameter</td>\n</tr>\n<tr>\n<td>403 - Forbidden</td>\n<td>The API does not have permission to request that resource</td>\n</tr>\n<tr>\n<td>404 - Not Found</td>\n<td>The requested resource does not exist</td>\n</tr>\n<tr>\n<td>500 - Server Error</td>\n<td>Something went wrong on our end</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Getting Started","slug":"getting-started"},{"content":"HTTP Status Code Summary","slug":"http-status-code-summary"}],"owner":"7448493","collectionId":"266b6657-5ccd-4944-8b5b-8f60e5516e45","publishedId":"TVzVgvQK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"353535","highlight":"f9b546"},"publishDate":"2021-01-19T23:09:20.000Z"},"item":[{"name":"Users","item":[{"name":"Create a User","id":"2a8e2d13-3010-4355-a6db-621e3d32e24a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"user1234","type":"text","description":"<p>Username for the user</p>\n","contentType":""},{"key":"email","value":"email@example.com","type":"text","description":"<p>Email address of the user</p>\n","contentType":""},{"key":"first_name","value":"John","type":"text","description":"<p>User's first name</p>\n","disabled":true},{"key":"last_name","value":"Smith","type":"text","description":"<p>User's last name</p>\n","disabled":true},{"key":"employee_id","value":"1234567890","type":"text","description":"<p>Employee ID of the user (not the same as the user's unique ID; commonly the same as username)</p>\n","disabled":true},{"key":"hiring_date","value":"2000-01-01","type":"text","description":"<p>User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"is_active","value":"true","type":"text","description":"<p>Status of the user</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users","description":"<p>Creates a new user, returns the saved user object with formatted data</p>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>60</td>\n<td>Yes</td>\n<td>Username of the user, must be unique</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>100</td>\n<td>Yes</td>\n<td>Email address of the user, must be unique</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Display name of the user, usually first + last name</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>First name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Last name</td>\n</tr>\n<tr>\n<td>roles</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user roles, any of: <br />\"employee\"<br />\"xy_client_user\"<br />\"xy_client_leader\"<br />\"xy_client_supervisor\"<br />\"xy_client_admin\"<br /><em>Note: \"employee\" and \"xy_client_user\" will always be included, even if not explicitly set</em></td>\n</tr>\n<tr>\n<td>employee_id</td>\n<td>string</td>\n<td>11</td>\n<td>No</td>\n<td>Employee ID of the user (not the same as the user's unique ID; commonly the same as username)</td>\n</tr>\n<tr>\n<td>job_title_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>ID of the user's job title</td>\n</tr>\n<tr>\n<td>department_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>ID of the department the user belongs to</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>ID of the company location the user is at</td>\n</tr>\n<tr>\n<td>managers</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as managers</td>\n</tr>\n<tr>\n<td>mentors</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as mentors</td>\n</tr>\n<tr>\n<td>hiring_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>termination_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>User's termination date, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>pay_rate</td>\n<td>integer</td>\n<td>20</td>\n<td>No</td>\n<td>User's pay rate</td>\n</tr>\n<tr>\n<td>pay_type</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>The pay cycle for a user, one of: <br />\"hourly\"<br />\"daily\"<br />\"weekly\"<br />\"monthly\"<br />\"yearly\"<br />\"contract\"</td>\n</tr>\n<tr>\n<td>employment_type</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Type of employee, one of: <br />\"permanent\" (full time)<br />\"parttime\"<br />\"call_in\"<br />\"contract\"<br />\"intern\"<br />\"manager\"<br />\"seasonal\"<br />\"special\"<br />\"temporary\"<br />\"trainee\"</td>\n</tr>\n<tr>\n<td>employment_status</td>\n<td>integer</td>\n<td>20</td>\n<td>No</td>\n<td>Status of employee, one of: <br />\"active\"<br />\"deceased\"<br />\"layoff\"<br />\"leave_of_absence\"<br />\"military_leave\"<br />\"retired\"<br />\"terminated\"</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>Status of the user - 0 or 1 (any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>is_management</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>Flag if the user is management - 0 or 1 (any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>User's date of birth, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>ssn_last</td>\n<td>string</td>\n<td>4</td>\n<td>No</td>\n<td>Last four digits of the user's SSN</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"24e6bac4-5d12-43e4-8fd0-31da35a10caf","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"user1234","type":"text","description":"Username for the user"},{"key":"email","value":"email@example.com","type":"text","description":"Email address of the user"},{"key":"first_name","value":"John","type":"text","description":"User's first name"},{"key":"last_name","value":"Smith","type":"text","description":"User's last name"},{"key":"roles","value":"xy_client_user","type":"text","description":"Comma separated list of user roles, any of:\n\"employee\", \n\"xy_client_user\", \n\"xy_client_leader\", \n\"xy_client_supervisor\", \n\"xy_client_admin\". \nNote: \"employee\" and \"xy_client_user\" will always be included, even if not explicitly set","disabled":true},{"key":"employee_id","value":"1234567890","type":"text","description":"Employee ID of the user (not the same as the user's unique ID; commonly the same as username)"},{"key":"job_title_id","value":"","type":"text","description":"ID of the user's job title","disabled":true},{"key":"department_id","value":"","type":"text","description":"ID of the department the user belongs to","disabled":true},{"key":"location_id","value":"","type":"text","description":"ID of the company location the user is at","disabled":true},{"key":"managers","value":"","description":"Comma separated list of user IDs to assign as managers","type":"text","disabled":true},{"key":"mentors","value":"","description":"Comma separated list of user IDs to assign as mentors","type":"text","disabled":true},{"key":"hiring_date","value":"2000-01-01","type":"text","description":"User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"termination_date","value":"","type":"text","description":"User's termination date, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"pay_rate","value":"12345","type":"text","description":"User's pay rate","disabled":true},{"key":"pay_type","value":"yearly","type":"text","description":"The pay cycle for a user, one of:\n\"hourly\"\n\"daily\"\n\"weekly\"\n\"monthly\"\n\"yearly\"\n\"contract\"","disabled":true},{"key":"employment_type","value":"permanent","type":"text","description":"Type of employee, one of: \"permanent\" (full time), \"parttime\", \"call_in\", \"contract\", \"intern\", \"manager\", \"seasonal\", \"special\", \"temporary\", \"trainee\"","disabled":true},{"key":"employment_status","value":"active","type":"text","description":"Status of employee, one of: \"active\", \"deceased\", \"layoff\", \"leave_of_absence\", \"military_leave\", \"retired\", \"terminated\"","disabled":true},{"key":"is_active","value":"true","type":"text","description":"Status of the user","disabled":true},{"key":"is_management","value":"true","type":"text","description":"Flag if the user is management","disabled":true},{"key":"date_of_birth","value":"1960-02-03","type":"text","description":"User's date of birth, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"ssn_last","value":"1234","type":"text","description":"Last four digits of the user's SSN","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Jan 2021 20:53:15 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD87ee3be7b9e527046f18eb0ee2e54ba5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": 978,\n    \"username\": \"user1234\",\n    \"email\": \"email@example.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"description\": \"\",\n    \"roles\": [\n        \"xy_client_user\",\n        \"employee\"\n    ],\n    \"employee_id\": \"1234567890\",\n    \"job_title_id\": 0,\n    \"department_id\": 0,\n    \"location_id\": 0,\n    \"job_role_id\": 0,\n    \"job_role_level_id\": 0,\n    \"hiring_date\": \"\",\n    \"termination_date\": \"\",\n    \"pay_rate\": \"\",\n    \"pay_type\": \"\",\n    \"employment_type\": \"\",\n    \"employment_status\": \"\",\n    \"is_active\": true,\n    \"is_management\": false,\n    \"date_of_birth\": \"\",\n    \"ssn_last\": \"0000\",\n    \"external_identifier\": null,\n    \"job_title\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"department\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"location\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"courses\": [],\n    \"expired_courses\": [],\n    \"completed_courses\": [],\n    \"past_due_courses\": [],\n    \"manager_ids\": \"\",\n    \"managers\": [],\n    \"mentors\": [],\n    \"groups\": []\n}"},{"id":"85f9f5a4-3c99-465f-acd0-5414be5ddcb7","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"8675309","type":"text","description":"Username for the user","contentType":""},{"key":"email","value":"elon@spacex.com","type":"text","description":"Email address of the user","contentType":""},{"key":"first_name","value":"Elon","type":"text","description":"User's first name"},{"key":"last_name","value":"Musk","type":"text","description":"User's last name"},{"key":"roles","value":"employee, xy_client_user","type":"text","description":"Comma separated list of user roles, any of:\n\"employee\", \n\"xy_client_user\", \n\"xy_client_leader\", \n\"xy_client_supervisor\", \n\"xy_client_admin\". \nNote: \"employee\" and \"xy_client_user\" will always be included, even if not explicitly set"},{"key":"employee_id","value":"emusk","type":"text","description":"Employee ID of the user (not the same as the user's unique ID; commonly the same as username)"},{"key":"job_title_id","value":"12","type":"text","description":"ID of the user's job title"},{"key":"department_id","value":"17","type":"text","description":"ID of the department the user belongs to"},{"key":"location_id","value":"46","type":"text","description":"ID of the company location the user is at"},{"key":"managers","value":"","description":"Comma separated list of user IDs to assign as managers","type":"text","disabled":true},{"key":"mentors","value":"","description":"Comma separated list of user IDs to assign as mentors","type":"text","disabled":true},{"key":"hiring_date","value":"2002-05-06","type":"text","description":"User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)"},{"key":"termination_date","value":"2020-01-28","type":"text","description":"User's termination date, in the format of \"yyyy-mm-dd\" (UTC)"},{"key":"pay_rate","value":"101,958","type":"text","description":"User's pay rate"},{"key":"pay_type","value":"yearly","type":"text","description":"The pay cycle for a user, one of:\n\"hourly\"\n\"daily\"\n\"weekly\"\n\"monthly\"\n\"yearly\"\n\"contract\""},{"key":"employment_type","value":"permanent","type":"text","description":"Type of employee, one of: \"permanent\" (full time), \"parttime\", \"call_in\", \"contract\", \"intern\", \"manager\", \"seasonal\", \"special\", \"temporary\", \"trainee\""},{"key":"employment_status","value":"active","type":"text","description":"Status of employee, one of: \"active\", \"deceased\", \"layoff\", \"leave_of_absence\", \"military_leave\", \"retired\", \"terminated\""},{"key":"is_active","value":"true","type":"text","description":"Status of the user"},{"key":"is_management","value":"true","type":"text","description":"Flag if the user is management"},{"key":"date_of_birth","value":"1971-06-28","type":"text","description":"User's date of birth, in the format of \"yyyy-mm-dd\" (UTC)"},{"key":"ssn_last","value":"5432","type":"text","description":"Last four digits of the user's SSN"},{"key":"external_identifier","value":"emp-4815162342","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 13:46:51 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD942c9cf61387e7a21dfe7369d6dd6ca5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": 981,\n    \"username\": \"8675309\",\n    \"email\": \"elon@spacex.com\",\n    \"display_name\": \"\",\n    \"first_name\": \"Elon\",\n    \"last_name\": \"Musk\",\n    \"description\": \"\",\n    \"roles\": [\n        \"xy_client_user\",\n        \"employee\"\n    ],\n    \"employee_id\": \"emusk\",\n    \"job_title_id\": \"12\",\n    \"department_id\": \"17\",\n    \"location_id\": \"46\",\n    \"job_role_id\": 0,\n    \"job_role_level_id\": 0,\n    \"hiring_date\": \"2002-05-06\",\n    \"termination_date\": \"2020-01-28\",\n    \"pay_rate\": \"101,958\",\n    \"pay_type\": \"yearly\",\n    \"employment_type\": \"permanent\",\n    \"employment_status\": \"active\",\n    \"is_active\": true,\n    \"is_management\": true,\n    \"date_of_birth\": \"1971-06-28\",\n    \"ssn_last\": \"5432\",\n    \"external_identifier\": \"emp-4815162342\",\n    \"job_title\": {\n        \"id\": \"12\",\n        \"name\": \"Mars Traveler\",\n        \"external_identifier\": \"6277\"\n    },\n    \"department\": {\n        \"id\": \"17\",\n        \"name\": \"Space Exploration\",\n        \"external_identifier\": \"spx\"\n    },\n    \"location\": {\n        \"id\": \"46\",\n        \"name\": \"SpaceX\",\n        \"external_identifier\": \"abcd-1234\"\n    },\n    \"courses\": [],\n    \"expired_courses\": [],\n    \"completed_courses\": [],\n    \"past_due_courses\": [],\n    \"manager_ids\": \"\",\n    \"managers\": [],\n    \"mentors\": [],\n    \"groups\": []\n}"},{"id":"cc98dadc-6245-4f31-b0c2-57185c706781","name":"Example #3","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"jbezos","type":"text","description":"Username for the user","contentType":""},{"key":"email","value":"jbezos@spacex.com","type":"text","description":"Email address of the user","contentType":""},{"key":"first_name","value":"Jeff","type":"text","description":"User's first name"},{"key":"last_name","value":"Bezos","type":"text","description":"User's last name"},{"key":"roles","value":"xy_client_user, employee, xy_client_leader, xy_client_supervisor","type":"text","description":"Comma separated list of user roles, any of:\n\"employee\", \n\"xy_client_user\", \n\"xy_client_leader\", \n\"xy_client_supervisor\", \n\"xy_client_admin\". \nNote: \"employee\" and \"xy_client_user\" will always be included, even if not explicitly set"},{"key":"employee_id","value":"9998765432","type":"text","description":"Employee ID of the user (not the same as the user's unique ID; commonly the same as username)"},{"key":"job_title_id","value":"12","type":"text","description":"ID of the user's job title"},{"key":"department_id","value":"17","type":"text","description":"ID of the department the user belongs to"},{"key":"location_id","value":"46","type":"text","description":"ID of the company location the user is at"},{"key":"managers","value":"981","description":"Comma separated list of user IDs to assign as managers","type":"text","disabled":true},{"key":"mentors","value":"981","description":"Comma separated list of user IDs to assign as mentors","type":"text","disabled":true},{"key":"hiring_date","value":"2021-01-11","type":"text","description":"User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)"},{"key":"termination_date","value":"2021-01-15","type":"text","description":"User's termination date, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"pay_rate","value":"10.00","type":"text","description":"User's pay rate"},{"key":"pay_type","value":"hourly","type":"text","description":"The pay cycle for a user, one of:\n\"hourly\"\n\"daily\"\n\"weekly\"\n\"monthly\"\n\"yearly\"\n\"contract\""},{"key":"employment_type","value":"intern","type":"text","description":"Type of employee, one of: \"permanent\" (full time), \"parttime\", \"call_in\", \"contract\", \"intern\", \"manager\", \"seasonal\", \"special\", \"temporary\", \"trainee\""},{"key":"employment_status","value":"leave_of_absence","type":"text","description":"Status of employee, one of: \"active\", \"deceased\", \"layoff\", \"leave_of_absence\", \"military_leave\", \"retired\", \"terminated\""},{"key":"is_active","value":"true","type":"text","description":"Status of the user"},{"key":"is_management","value":"false","type":"text","description":"Flag if the user is management"},{"key":"date_of_birth","value":"1970-12-25","type":"text","description":"User's date of birth, in the format of \"yyyy-mm-dd\" (UTC)"},{"key":"ssn_last","value":"5544","type":"text","description":"Last four digits of the user's SSN"},{"key":"external_identifier","value":"jbezos","type":"text","description":"UUID for 3rd party identification"},{"key":"job_role_id","value":"42","type":"text"},{"key":"job_role_level_id","value":"43","type":"text"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 14:37:25 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDee2bf3a173cf09e45d42f686ac5e299c"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": 985,\n    \"username\": \"jbezos\",\n    \"email\": \"jbezos@spacex.com\",\n    \"display_name\": \"\",\n    \"first_name\": \"Jeff\",\n    \"last_name\": \"Bezos\",\n    \"description\": \"\",\n    \"roles\": [\n        \"xy_client_user\",\n        \"xy_client_leader\",\n        \"xy_client_supervisor\",\n        \"employee\"\n    ],\n    \"employee_id\": \"9998765432\",\n    \"job_title_id\": \"12\",\n    \"department_id\": \"17\",\n    \"location_id\": \"46\",\n    \"job_role_id\": \"42\",\n    \"job_role_level_id\": \"43\",\n    \"hiring_date\": \"2021-01-11\",\n    \"termination_date\": \"\",\n    \"pay_rate\": \"10.00\",\n    \"pay_type\": \"hourly\",\n    \"employment_type\": \"intern\",\n    \"employment_status\": \"leave_of_absence\",\n    \"is_active\": true,\n    \"is_management\": false,\n    \"date_of_birth\": \"1970-12-25\",\n    \"ssn_last\": \"5544\",\n    \"external_identifier\": \"jbezos\",\n    \"job_title\": {\n        \"id\": \"12\",\n        \"name\": \"Mars Traveler\",\n        \"external_identifier\": \"6277\"\n    },\n    \"department\": {\n        \"id\": \"17\",\n        \"name\": \"Space Exploration\",\n        \"external_identifier\": \"spx\"\n    },\n    \"location\": {\n        \"id\": \"46\",\n        \"name\": \"SpaceX\",\n        \"external_identifier\": \"abcd-1234\"\n    },\n    \"courses\": [],\n    \"expired_courses\": [],\n    \"completed_courses\": [],\n    \"past_due_courses\": [],\n    \"manager_ids\": \"\",\n    \"managers\": [],\n    \"mentors\": [],\n    \"groups\": []\n}"}],"_postman_id":"2a8e2d13-3010-4355-a6db-621e3d32e24a"},{"name":"List All Users","id":"73075842-81d0-4124-8961-47fedf8f4d93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users","description":"<p>Returns an array of user objects</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"73075842-81d0-4124-8961-47fedf8f4d93"},{"name":"Retrieve User","id":"e1ae8a8a-04e6-4f6c-98c1-6536bc8a6ca7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/1","description":"<p>Get a single user object, referenced by the user ID or username</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/users/{id}</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1ae8a8a-04e6-4f6c-98c1-6536bc8a6ca7"},{"name":"Retrieve User by External ID","id":"f33648a6-a12c-40d8-8815-055702bc7112","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/abcd-1234/external","description":"<p>Single user object, referenced by the external_identifier</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/users/{external_identifier}/external</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f33648a6-a12c-40d8-8815-055702bc7112"},{"name":"Update User","id":"45b6f6ca-4809-4d70-8fb6-698f84315d59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"user1234","type":"text","description":"<p>Username of the user, must be unique</p>\n","disabled":true},{"key":"email","value":"email123@example.com","type":"text","description":"<p>Email address of the user, must be unique</p>\n","disabled":true},{"key":"first_name","value":"Jane","type":"text","description":"<p>First name</p>\n","disabled":true},{"key":"last_name","value":"Doe","type":"text","description":"<p>Last name</p>\n","disabled":true},{"key":"employee_id","value":"0987654321","type":"text","description":"<p>Employee ID of the user (not the same as the user's unique ID; commonly the same as username)</p>\n","disabled":true},{"key":"hiring_date","value":"2000-01-01","type":"text","description":"<p>User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"is_active","value":"true","type":"text","description":"<p>Status of the user - 0 or 1 (any non-zero value resolves to true)</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/1","description":"<p>Updates an existing user, referenced by the user ID or username\nReturns the updated user object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/users/{id}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>60</td>\n<td>No, unless passing \"email\" in the request, then it cannot be empty</td>\n<td>Email address of the user</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Display name of the user, usually first + last name</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>First name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Last name</td>\n</tr>\n<tr>\n<td>roles</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user roles, any of: <br />\"employee\"<br />\"xy_client_user\"<br />\"xy_client_leader\"<br />\"xy_client_supervisor\"<br />\"xy_client_admin\"<br /><em>Note: \"employee\" and \"xy_client_user\" will always be included, even if not explicitly set</em></td>\n</tr>\n<tr>\n<td>employee_id</td>\n<td>string</td>\n<td>11</td>\n<td>No</td>\n<td>Employee ID of the user (not the same as the user's unique ID; commonly the same as username)</td>\n</tr>\n<tr>\n<td>job_title_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>ID of the user's job title</td>\n</tr>\n<tr>\n<td>department_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>ID of the department the user belongs to</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>ID of the company location the user is at</td>\n</tr>\n<tr>\n<td>managers</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as managers. Managers can be removed by leaving them off the list. An empty value will remove all managers. If no changes are required, either pass the existing IDs or do not pass \"managers\" in the request.</td>\n</tr>\n<tr>\n<td>mentors</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as mentors. Mentors can be removed by leaving them off the list. An empty value will remove all mentors. If no changes are required, either pass the existing IDs or do not pass \"mentors\" in the request.</td>\n</tr>\n<tr>\n<td>hiring_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>termination_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>User's termination date, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>pay_rate</td>\n<td>integer</td>\n<td>20</td>\n<td>No</td>\n<td>User's pay rate</td>\n</tr>\n<tr>\n<td>pay_type</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>The pay cycle for a user, one of: <br />\"hourly\"<br />\"daily\"<br />\"weekly\"<br />\"monthly\"<br />\"yearly\"<br />\"contract\"</td>\n</tr>\n<tr>\n<td>employment_type</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Type of employee, one of: <br />\"permanent\" (full time)<br />\"parttime\"<br />\"call_in\"<br />\"contract\"<br />\"intern\"<br />\"manager\"<br />\"seasonal\"<br />\"special\"<br />\"temporary\"<br />\"trainee\"</td>\n</tr>\n<tr>\n<td>employment_status</td>\n<td>integer</td>\n<td>20</td>\n<td>No</td>\n<td>Status of employee, one of: <br />\"active\"<br />\"deceased\"<br />\"layoff\"<br />\"leave_of_absence\"<br />\"military_leave\"<br />\"retired\"<br />\"terminated\"</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>Status of the user - 0 or 1 (any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>is_management</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>Flag if the user is management - 0 or 1 (any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>User's date of birth, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>ssn_last</td>\n<td>string</td>\n<td>4</td>\n<td>No</td>\n<td>Last four digits of the user's SSN</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"087e2468-0092-4ef8-aa49-1de48183887a","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"user1234","type":"text","description":"Username of the user, must be unique","disabled":true},{"key":"email","value":"email123@example.com","type":"text","description":"Email address of the user, must be unique","disabled":true},{"key":"first_name","value":"Jane","type":"text","description":"First name","disabled":true},{"key":"last_name","value":"Doe","type":"text","description":"Last name","disabled":true},{"key":"roles","value":"xy_client_leader","type":"text","description":"Comma separated list of user roles, any of: \"employee\", \"xy_client_user\", \"xy_client_leader\", \"xy_client_supervisor\", \"xy_client_admin\". Note: \"employee\" and \"xy_client_user\" will always be included, even if not explicitly set","disabled":true},{"key":"employee_id","value":"0987654321","type":"text","description":"Employee ID of the user (not the same as the user's unique ID; commonly the same as username)","disabled":true},{"key":"job_title_id","value":"","type":"text","description":"ID of the user's job title","disabled":true},{"key":"department_id","value":"","type":"text","description":"ID of the department the user belongs to","disabled":true},{"key":"location_id","value":"","type":"text","description":"ID of the company location the user is at","disabled":true},{"key":"managers","value":"","type":"text","description":"Comma separated list of user IDs to assign as managers. \nManagers can be removed by leaving them off the list. \nAn empty value will remove all managers. \nIf no changes are required, either pass the existing IDs or do not pass \"managers\" in the request.","disabled":true},{"key":"mentors","value":"981","description":"Comma separated list of user IDs to assign as mentors. \nMentors can be removed by leaving them off the list. \nAn empty value will remove all mentors. \nIf no changes are required, either pass the existing IDs or do not pass \"mentors\" in the request.","type":"text"},{"key":"hiring_date","value":"2000-01-01","type":"text","description":"User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"termination_date","value":"","type":"text","description":"User's termination date, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"pay_rate","value":"1234","type":"text","description":"User's pay rate","disabled":true},{"key":"pay_type","value":"monthly","type":"text","description":"The pay cycle for a user, one of: \"hourly\", \"daily\", \"weekly\", \"monthly\", \"yearly\", \"contract\"","disabled":true},{"key":"employment_type","value":"permanent","type":"text","description":"Type of employee, one of: \"permanent\" (full time), \"parttime\", \"call_in\", \"contract\", \"intern\", \"manager\", \"seasonal\", \"special\", \"temporary\", \"trainee\"","disabled":true},{"key":"employment_status","value":"active","type":"text","description":"Status of employee, one of: \"active\", \"deceased\", \"layoff\", \"leave_of_absence\", \"military_leave\", \"retired\", \"terminated\"","disabled":true},{"key":"is_active","value":"true","type":"text","description":"Status of the user - 0 or 1 (any non-zero value resolves to true)","disabled":true},{"key":"is_management","value":"false","type":"text","description":"Flag if the user is management - 0 or 1 (any non-zero value resolves to true)","disabled":true},{"key":"date_of_birth","value":"1970-01-30","type":"text","description":"User's date of birth, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"ssn_last","value":"0987","type":"text","description":"Last four digits of the user's SSN","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/985"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 14:40:35 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD510da6d3654bf28af35587c1bb4abf94"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": 985,\n    \"username\": \"jbezos\",\n    \"email\": \"jbezos@spacex.com\",\n    \"display_name\": \"Jeff Bezos\",\n    \"first_name\": \"Jeff\",\n    \"last_name\": \"Bezos\",\n    \"description\": \"\",\n    \"roles\": [\n        \"xy_client_supervisor\",\n        \"xy_client_user\",\n        \"xy_client_leader\",\n        \"employee\"\n    ],\n    \"employee_id\": \"9998765432\",\n    \"job_title_id\": 12,\n    \"department_id\": 17,\n    \"location_id\": 46,\n    \"job_role_id\": 42,\n    \"job_role_level_id\": 43,\n    \"hiring_date\": \"2021-01-11\",\n    \"termination_date\": \"\",\n    \"pay_rate\": \"10.00\",\n    \"pay_type\": \"hourly\",\n    \"employment_type\": \"intern\",\n    \"employment_status\": \"leave_of_absence\",\n    \"is_active\": 1,\n    \"is_management\": 0,\n    \"date_of_birth\": \"1970-12-25\",\n    \"ssn_last\": \"5544\",\n    \"external_identifier\": \"emrat\",\n    \"job_title\": {\n        \"id\": 12,\n        \"name\": \"Mars Traveler\",\n        \"external_identifier\": \"6277\"\n    },\n    \"department\": {\n        \"id\": 17,\n        \"name\": \"Space Exploration\",\n        \"external_identifier\": \"spx\"\n    },\n    \"location\": {\n        \"id\": 46,\n        \"name\": \"SpaceX\",\n        \"external_identifier\": \"abcd-1234\"\n    },\n    \"courses\": [],\n    \"expired_courses\": [],\n    \"completed_courses\": [],\n    \"past_due_courses\": [],\n    \"manager_ids\": \"\",\n    \"managers\": [],\n    \"mentors\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"external_identifier\": \"emp-4815162342\"\n        }\n    ],\n    \"groups\": []\n}"}],"_postman_id":"45b6f6ca-4809-4d70-8fb6-698f84315d59"},{"name":"Update User by External ID","id":"47e0ad48-011d-45c0-8802-633572d59f42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"user1234","type":"text","description":"<p>Username of the user, must be unique</p>\n","disabled":true},{"key":"email","value":"email123@example.com","type":"text","description":"<p>Email address of the user, must be unique</p>\n","disabled":true},{"key":"display_name","value":"Jane Doe","type":"text","description":"<p>Display name of the user, usually first + last name</p>\n","disabled":true},{"key":"first_name","value":"Jane","type":"text","description":"<p>First name</p>\n","disabled":true},{"key":"last_name","value":"Doe","type":"text","description":"<p>Last name</p>\n","disabled":true},{"key":"employee_id","value":"0987654321","type":"text","description":"<p>Employee ID of the user (not the same as the user's unique ID; commonly the same as username)</p>\n","disabled":true},{"key":"hiring_date","value":"2000-01-01","type":"text","description":"<p>User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"is_active","value":"true","type":"text","description":"<p>Status of the user - 0 or 1 (any non-zero value resolves to true)</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/abcd-1234/external","description":"<p>Update a user, referenced by their external_identifier</p>\n<p>Updates an existing user, referenced by the user ID or username\nReturns the updated user object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/users/{id}/external</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>60</td>\n<td>No, unless passing \"email\" in the request, then it cannot be empty</td>\n<td>Email address of the user</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Display name of the user, usually first + last name</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>First name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Last name</td>\n</tr>\n<tr>\n<td>roles</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user roles, any of: <br />\"employee\"<br />\"xy_client_user\"<br />\"xy_client_leader\"<br />\"xy_client_supervisor\"<br />\"xy_client_admin\"<br /><em>Note: \"employee\" and \"xy_client_user\" will always be included, even if not explicitly set</em></td>\n</tr>\n<tr>\n<td>employee_id</td>\n<td>string</td>\n<td>11</td>\n<td>No</td>\n<td>Employee ID of the user (not the same as the user's unique ID; commonly the same as username)</td>\n</tr>\n<tr>\n<td>job_title_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>ID of the user's job title</td>\n</tr>\n<tr>\n<td>department_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>ID of the department the user belongs to</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>ID of the company location the user is at</td>\n</tr>\n<tr>\n<td>managers</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as managers. Managers can be removed by leaving them off the list. An empty value will remove all managers. If no changes are required, either pass the existing IDs or do not pass \"managers\" in the request.</td>\n</tr>\n<tr>\n<td>mentors</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as mentors. Mentors can be removed by leaving them off the list. An empty value will remove all mentors. If no changes are required, either pass the existing IDs or do not pass \"mentors\" in the request.</td>\n</tr>\n<tr>\n<td>hiring_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>termination_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>User's termination date, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>pay_rate</td>\n<td>integer</td>\n<td>20</td>\n<td>No</td>\n<td>User's pay rate</td>\n</tr>\n<tr>\n<td>pay_type</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>The pay cycle for a user, one of: <br />\"hourly\"<br />\"daily\"<br />\"weekly\"<br />\"monthly\"<br />\"yearly\"<br />\"contract\"</td>\n</tr>\n<tr>\n<td>employment_type</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Type of employee, one of: <br />\"permanent\" (full time)<br />\"parttime\"<br />\"call_in\"<br />\"contract\"<br />\"intern\"<br />\"manager\"<br />\"seasonal\"<br />\"special\"<br />\"temporary\"<br />\"trainee\"</td>\n</tr>\n<tr>\n<td>employment_status</td>\n<td>integer</td>\n<td>20</td>\n<td>No</td>\n<td>Status of employee, one of: <br />\"active\"<br />\"deceased\"<br />\"layoff\"<br />\"leave_of_absence\"<br />\"military_leave\"<br />\"retired\"<br />\"terminated\"</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>Status of the user - 0 or 1 (any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>is_management</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>Flag if the user is management - 0 or 1 (any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>User's date of birth, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>ssn_last</td>\n<td>string</td>\n<td>4</td>\n<td>No</td>\n<td>Last four digits of the user's SSN</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"0e1bbb86-4bce-44d7-b969-fbcc1f84b3ef","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"user1234","type":"text","description":"Username of the user, must be unique","disabled":true},{"key":"email","value":"email123@example.com","type":"text","description":"Email address of the user, must be unique","disabled":true},{"key":"display_name","value":"Jane Doe","type":"text","description":"Display name of the user, usually first + last name","disabled":true},{"key":"first_name","value":"Jane","type":"text","description":"First name","disabled":true},{"key":"last_name","value":"Doe","type":"text","description":"Last name","disabled":true},{"key":"roles","value":"xy_client_leader","type":"text","description":"Comma separated list of user roles, any of: \"employee\", \"xy_client_user\", \"xy_client_leader\", \"xy_client_supervisor\", \"xy_client_admin\". Note: \"employee\" and \"xy_client_user\" will always be included, even if not explicitly set","disabled":true},{"key":"employee_id","value":"0987654321","type":"text","description":"Employee ID of the user (not the same as the user's unique ID; commonly the same as username)","disabled":true},{"key":"job_title_id","value":"","type":"text","description":"ID of the user's job title","disabled":true},{"key":"department_id","value":"","type":"text","description":"ID of the department the user belongs to","disabled":true},{"key":"location_id","value":"","type":"text","description":"ID of the company location the user is at","disabled":true},{"key":"managers","value":"","type":"text","description":"Comma separated list of user IDs to assign as managers.\nManagers can be removed by leaving them off the list.\nAn empty value will remove all managers.\nIf no changes are required, either pass the existing IDs or do not pass \"managers\" in the request.","disabled":true},{"key":"mentors","value":"","description":"Comma separated list of user IDs to assign as mentors.\nMentors can be removed by leaving them off the list.\nAn empty value will remove all mentors.\nIf no changes are required, either pass the existing IDs or do not pass \"mentors\" in the request.","type":"text","disabled":true},{"key":"hiring_date","value":"2000-01-01","type":"text","description":"User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"termination_date","value":"","type":"text","description":"User's termination date, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"pay_rate","value":"38000","type":"text","description":"User's pay rate"},{"key":"pay_type","value":"yearly","type":"text","description":"The pay cycle for a user, one of: \"hourly\", \"daily\", \"weekly\", \"monthly\", \"yearly\", \"contract\""},{"key":"employment_type","value":"permanent","type":"text","description":"Type of employee, one of: \"permanent\" (full time), \"parttime\", \"call_in\", \"contract\", \"intern\", \"manager\", \"seasonal\", \"special\", \"temporary\", \"trainee\"","disabled":true},{"key":"employment_status","value":"deceased","type":"text","description":"Status of employee, one of: \"active\", \"deceased\", \"layoff\", \"leave_of_absence\", \"military_leave\", \"retired\", \"terminated\"","disabled":true},{"key":"is_active","value":"true","type":"text","description":"Status of the user - 0 or 1 (any non-zero value resolves to true)","disabled":true},{"key":"is_management","value":"false","type":"text","description":"Flag if the user is management - 0 or 1 (any non-zero value resolves to true)","disabled":true},{"key":"date_of_birth","value":"1970-01-30","type":"text","description":"User's date of birth, in the format of \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"ssn_last","value":"0987","type":"text","description":"Last four digits of the user's SSN","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/jbezos/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 14:43:12 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDf1010a57748bf40ae77f1bb70319c48a"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": 985,\n    \"username\": \"jbezos\",\n    \"email\": \"jbezos@spacex.com\",\n    \"display_name\": \"Jeff Bezos\",\n    \"first_name\": \"Jeff\",\n    \"last_name\": \"Bezos\",\n    \"description\": \"\",\n    \"roles\": [\n        \"xy_client_supervisor\",\n        \"xy_client_user\",\n        \"xy_client_leader\",\n        \"employee\"\n    ],\n    \"employee_id\": \"9998765432\",\n    \"job_title_id\": 12,\n    \"department_id\": 17,\n    \"location_id\": 46,\n    \"job_role_id\": 42,\n    \"job_role_level_id\": 43,\n    \"hiring_date\": \"2021-01-11\",\n    \"termination_date\": \"\",\n    \"pay_rate\": \"38000\",\n    \"pay_type\": \"yearly\",\n    \"employment_type\": \"intern\",\n    \"employment_status\": \"leave_of_absence\",\n    \"is_active\": 1,\n    \"is_management\": 0,\n    \"date_of_birth\": \"1970-12-25\",\n    \"ssn_last\": \"5544\",\n    \"external_identifier\": \"jbezos\",\n    \"job_title\": {\n        \"id\": 12,\n        \"name\": \"Mars Traveler\",\n        \"external_identifier\": \"6277\"\n    },\n    \"department\": {\n        \"id\": 17,\n        \"name\": \"Space Exploration\",\n        \"external_identifier\": \"spx\"\n    },\n    \"location\": {\n        \"id\": 46,\n        \"name\": \"SpaceX\",\n        \"external_identifier\": \"abcd-1234\"\n    },\n    \"courses\": [],\n    \"expired_courses\": [],\n    \"completed_courses\": [],\n    \"past_due_courses\": [],\n    \"manager_ids\": \"\",\n    \"managers\": [],\n    \"mentors\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"external_identifier\": \"emp-4815162342\"\n        }\n    ],\n    \"groups\": []\n}"}],"_postman_id":"47e0ad48-011d-45c0-8802-633572d59f42"}],"id":"a4005dd4-e1ec-4f3d-9a5a-2b04910c7453","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of a returned user object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_id</td>\n<td>integer</td>\n<td>Unique ID of the user</td>\n</tr>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>Username for the user</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Email address of the user</td>\n</tr>\n<tr>\n<td>display_name</td>\n<td>string</td>\n<td>User's display name (usually first + last name)</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>User's first name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>User's last name</td>\n</tr>\n<tr>\n<td>roles</td>\n<td>array</td>\n<td>List of user roles</td>\n</tr>\n<tr>\n<td>employee_id</td>\n<td>string</td>\n<td>User's employee ID</td>\n</tr>\n<tr>\n<td>job_title</td>\n<td>object</td>\n<td>Data for the user's job title</td>\n</tr>\n<tr>\n<td>job_title.id</td>\n<td>integer</td>\n<td>Unique ID for the user's job title</td>\n</tr>\n<tr>\n<td>job_title.name</td>\n<td>string</td>\n<td>Name of the user's job title</td>\n</tr>\n<tr>\n<td>job_title.external_identifier</td>\n<td>string</td>\n<td>UUID of the job title for 3rd party identification</td>\n</tr>\n<tr>\n<td>department</td>\n<td>object</td>\n<td>Data for the user's department</td>\n</tr>\n<tr>\n<td>department.id</td>\n<td>integer</td>\n<td>Unique ID for the department</td>\n</tr>\n<tr>\n<td>department.name</td>\n<td>string</td>\n<td>Name of the department</td>\n</tr>\n<tr>\n<td>department.external_identifier</td>\n<td>string</td>\n<td>UUID of the department for 3rd party identification</td>\n</tr>\n<tr>\n<td>location</td>\n<td>object</td>\n<td>Data for the user's location</td>\n</tr>\n<tr>\n<td>location.id</td>\n<td>integer</td>\n<td>Unique ID for the user's location</td>\n</tr>\n<tr>\n<td>location.name</td>\n<td>string</td>\n<td>Name of the user's location</td>\n</tr>\n<tr>\n<td>location.external_identifier</td>\n<td>string</td>\n<td>UUID of the location for 3rd party identification</td>\n</tr>\n<tr>\n<td>managers</td>\n<td>array</td>\n<td>User data for each manager</td>\n</tr>\n<tr>\n<td>manager.id (for each manager)</td>\n<td>integer</td>\n<td>Name of the manager</td>\n</tr>\n<tr>\n<td>manager.name (for each manager)</td>\n<td>string</td>\n<td>Name of the user's location</td>\n</tr>\n<tr>\n<td>manager.external_identifier</td>\n<td>string</td>\n<td>UUID of the manager for 3rd party identification</td>\n</tr>\n<tr>\n<td>mentors</td>\n<td>aray</td>\n<td>User data for each mentor</td>\n</tr>\n<tr>\n<td>mentor.id (for each mentor)</td>\n<td>integer</td>\n<td>User ID of the mentor</td>\n</tr>\n<tr>\n<td>mentor.name (for each mentor)</td>\n<td>string</td>\n<td>Name of the mentor</td>\n</tr>\n<tr>\n<td>hiring_date</td>\n<td>string</td>\n<td>User's hiring date, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>termination_date</td>\n<td>string</td>\n<td>User's termination date, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>pay_rate</td>\n<td>string</td>\n<td>User's pay rate</td>\n</tr>\n<tr>\n<td>pay_type</td>\n<td>string</td>\n<td>The pay cycle for a user, one of: <br />\"hourly\"<br />\"daily\"<br />\"weekly\"<br />\"monthly\"<br />\"yearly\"<br />\"contract\"</td>\n</tr>\n<tr>\n<td>employment_type</td>\n<td>string</td>\n<td>Type of employee, one of: <br />\"permanent\" (full time)<br />\"parttime\"<br />\"call_in\"<br />\"contract\"<br />\"intern\"<br />\"manager\"<br />\"seasonal\"<br />\"special\"<br />\"temporary\"<br />\"trainee\"</td>\n</tr>\n<tr>\n<td>employment_status</td>\n<td>string</td>\n<td>Status of employee, one of: <br />\"active\"<br />\"deceased\"<br />\"layoff\"<br />\"leave_of_absence\"<br />\"military_leave\"<br />\"retired\"<br />\"terminated\"</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>Status of the user</td>\n</tr>\n<tr>\n<td>is_management</td>\n<td>boolean</td>\n<td>Flag if the user is management</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>string</td>\n<td>User's date of birth, in the format of \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n<tr>\n<td>courses</td>\n<td>array</td>\n<td>Course data for each course the user is enrolled in</td>\n</tr>\n<tr>\n<td>course.id (for each course)</td>\n<td>integer</td>\n<td>Unique ID of the course</td>\n</tr>\n<tr>\n<td>course.name (for each course)</td>\n<td>string</td>\n<td>Name of the course</td>\n</tr>\n<tr>\n<td>course.completed (for each course)</td>\n<td>integer</td>\n<td>1 if course is completed, 0 if not</td>\n</tr>\n<tr>\n<td>course.external_identifier (for each course)</td>\n<td>string</td>\n<td>UUID of the course for 3rd party identification</td>\n</tr>\n<tr>\n<td>expired_courses</td>\n<td>array</td>\n<td>Course data for each expired course for the user</td>\n</tr>\n<tr>\n<td>expired_course.id (for each course)</td>\n<td>integer</td>\n<td>Unique ID of the course</td>\n</tr>\n<tr>\n<td>expired_course.name (for each course)</td>\n<td>string</td>\n<td>Name of the course</td>\n</tr>\n<tr>\n<td>expired_course.completed (for each course)</td>\n<td>integer</td>\n<td>1 if course is completed, 0 if not</td>\n</tr>\n<tr>\n<td>expired_course.external_identifier (for each course)</td>\n<td>string</td>\n<td>UUID of the course for 3rd party identification</td>\n</tr>\n<tr>\n<td>completed_courses</td>\n<td>array</td>\n<td>Course data for each course the user has completed</td>\n</tr>\n<tr>\n<td>completed_course.id (for each course)</td>\n<td>integer</td>\n<td>Unique ID of the course</td>\n</tr>\n<tr>\n<td>completed_course.name (for each course)</td>\n<td>string</td>\n<td>Name of the course</td>\n</tr>\n<tr>\n<td>completed_course.completed (for each course)</td>\n<td>integer</td>\n<td>1 if course is completed, 0 if not</td>\n</tr>\n<tr>\n<td>completed_course.external_identifier (for each course)</td>\n<td>string</td>\n<td>UUID of the course for 3rd party identification</td>\n</tr>\n<tr>\n<td>past_due_courses</td>\n<td>array</td>\n<td>Course data for each past due course for the user</td>\n</tr>\n<tr>\n<td>past_due_course.name (for each course)</td>\n<td>string</td>\n<td>Name of the course</td>\n</tr>\n<tr>\n<td>past_due_course.completed (for each course)</td>\n<td>integer</td>\n<td>1 if course is completed, 0 if not</td>\n</tr>\n<tr>\n<td>past_due_course.external_identifier (for each course)</td>\n<td>string</td>\n<td>UUID of the course for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"cae2f723-bdf5-4313-9fd3-5205adfd13bf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6a7ae6b6-1059-4e8c-8f42-491855c9ef83","type":"text/javascript","exec":[""]}}],"_postman_id":"a4005dd4-e1ec-4f3d-9a5a-2b04910c7453","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}},{"name":"Courses","item":[{"name":"Create a Course","id":"eb9b5b9e-bb64-4d33-942a-315628bdec4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Course name</p>\n"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses","description":"<p>Creates a new course, returns the saved course object with formatted data</p>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>Yes</td>\n<td>Course name</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","courses"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"0a7664f4-0981-491e-90f8-bd0034e27e88","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Learning to Code","type":"text","description":"Course name"},{"key":"external_identifier","value":"XY-101","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Jan 2021 21:03:49 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD02ed39115c157b1bbc2ec29fad70086e"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 36254,\n    \"name\": \"Learning to Code\",\n    \"external_identifier\": \"XY-101\",\n    \"lessons\": [],\n    \"users\": []\n}"},{"id":"41270b9c-3b4a-491c-b81f-693efb23afa7","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"How To Make a Rocket","type":"text","description":"Course name"},{"key":"external_identifier","value":"spx-dev","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 15:54:21 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD132b194a13c4a21bbca9bb1095409491"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 36324,\n    \"name\": \"How To Make a Rocket\",\n    \"external_identifier\": \"spx-dev\",\n    \"lessons\": [],\n    \"users\": []\n}"}],"_postman_id":"eb9b5b9e-bb64-4d33-942a-315628bdec4c"},{"name":"List All Courses","id":"6027cc86-8156-4fc3-a586-06a989bedd7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses","description":"<p>Returns an array of department objects</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","courses"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6027cc86-8156-4fc3-a586-06a989bedd7d"},{"name":"Retrieve Course","id":"b1c44185-8fef-4cc7-b31f-702f60b86a9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses/1","description":"<p>Get a single course object, referenced by the course ID</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/courses/{id}</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","courses","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1c44185-8fef-4cc7-b31f-702f60b86a9a"},{"name":"Retrieve Course by External ID","id":"6bfede6d-e4c7-4e04-bdf6-3e72e746f9e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses/abcd-1234/external","description":"<p>Get a single course object, referenced by the external_identifier</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/courses/{external_identifier}/external</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","courses","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bfede6d-e4c7-4e04-bdf6-3e72e746f9e3"},{"name":"Update Course","id":"bd0fc240-1b25-40d4-b8b9-7ff8d63c595a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Unique ID for the course</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses/1","description":"<p>Update a course, referenced by its id</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/courses/{id}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Course name</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","courses","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"ca8bcab9-bd35-4f11-9410-9975f678b1ef","name":"Update Course","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"How To Create a Rocket","type":"text","description":"Unique ID for the course"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true},{"key":"users","value":"9","type":"text","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses/36324"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 19:03:15 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDe23df212b9d60a3818f10653ba045d01"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 36324,\n    \"name\": \"How To Create a Rocket\",\n    \"external_identifier\": \"spx-dev\",\n    \"lessons\": [],\n    \"users\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"completed\": 0,\n            \"external_identifier\": \"emp-4815162342\"\n        },\n        {\n            \"id\": 985,\n            \"name\": \"Jeff Bezos\",\n            \"completed\": 0,\n            \"external_identifier\": \"jbezos\"\n        }\n    ]\n}"}],"_postman_id":"bd0fc240-1b25-40d4-b8b9-7ff8d63c595a"},{"name":"Update Course by External ID","id":"8aa27d7d-23a5-4c74-8e00-f4a72b0adac7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Course name</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses/abcd-1234/external","description":"<p>Update a course, referenced by its external_identifier</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/courses/{external_identifier}/external</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Course name</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","courses","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"78295291-8570-435b-9792-f9755dab93b5","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"How to Fly a Rocket","type":"text","description":"Course name"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/courses/spx-dev/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 19:04:00 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD2471c6df76b7ac96ab64476c4f9d8f7b"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 36324,\n    \"name\": \"How to Fly a Rocket\",\n    \"external_identifier\": \"spx-dev\",\n    \"lessons\": [],\n    \"users\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"completed\": 0,\n            \"external_identifier\": \"emp-4815162342\"\n        },\n        {\n            \"id\": 985,\n            \"name\": \"Jeff Bezos\",\n            \"completed\": 0,\n            \"external_identifier\": \"jbezos\"\n        }\n    ]\n}"}],"_postman_id":"8aa27d7d-23a5-4c74-8e00-f4a72b0adac7"}],"id":"757e447b-9441-4921-99b8-11825c08873a","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of a returned course object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Unique ID for the course</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Course name</td>\n</tr>\n<tr>\n<td>lessons</td>\n<td>array</td>\n<td>Lesson data for each lesson associated with the course</td>\n</tr>\n<tr>\n<td>lesson.id (for each lesson)</td>\n<td>integer</td>\n<td>Unique ID for the lesson</td>\n</tr>\n<tr>\n<td>lesson.name (for each lesson)</td>\n<td>string</td>\n<td>Name of the lesson</td>\n</tr>\n<tr>\n<td>users</td>\n<td>array</td>\n<td>User data for each user enrolled in the course</td>\n</tr>\n<tr>\n<td>user.id (for each user)</td>\n<td>integer</td>\n<td>Unique ID for the user</td>\n</tr>\n<tr>\n<td>user.name (for each user)</td>\n<td>string</td>\n<td>Name of the user</td>\n</tr>\n<tr>\n<td>user.completed (for each user)</td>\n<td>integer</td>\n<td>1 if course is completed, 0 if not</td>\n</tr>\n<tr>\n<td>user.external_identifier (for each user)</td>\n<td>string</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"f4f6fadc-6391-4d61-b33e-667b31f1f3f3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0590a43e-2325-4142-95df-a50b308125aa","type":"text/javascript","exec":[""]}}],"_postman_id":"757e447b-9441-4921-99b8-11825c08873a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}},{"name":"User Courses","item":[{"name":"Retrieve User Course Data","id":"aa0000a9-f03f-4af4-a239-7e9ba54db394","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/1234/course/1234","description":"<p>Get user's course data, referenced by the user ID/username and course ID</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/users/{userId}/course/{courseId}</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users","1234","course","1234"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa0000a9-f03f-4af4-a239-7e9ba54db394"},{"name":"Retrieve User Course Data by External ID","id":"bef5190b-998d-48c8-8df3-26ff41ccc72f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/abcd-1234/course/abcd-1234/external","description":"<p>Get a user's course data for a given course. The user and course are both referenced by their respective external_identifiers.</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/users/{userId}/course/{courseId}/external</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users","abcd-1234","course","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bef5190b-998d-48c8-8df3-26ff41ccc72f"},{"name":"Update User Course Data","id":"e2a00c09-96c7-4e6a-82eb-9374fc2a4797","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[{"key":"enrolled","type":"text","value":"1","description":"<p>Enrollment status of the user - 0 (disenrolled) or 1 (enrolled); any non-zero value resolves to true)</p>\n"},{"key":"expiration_date","type":"text","value":"2021-12-31","description":"<p>Date the course expires for the user, formatted as \"yyyy-mm-dd\" (UTC)</p>\n"},{"key":"due_date","type":"text","value":"2021-12-01","description":"<p>Date course completion is due for the user, formatted as \"yyyy-mm-dd\" (UTC)</p>\n"},{"key":"license_type","value":"full","description":"<p>License for the course, one of: \"full\", \"trial\", \"lifetime\"</p>\n","type":"text"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/981/course/36324","description":"<p>Updates existing user data for a given course, referenced by the user id and course id</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/users/{userId}/course/{courseId}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>enrolled</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>Enrollment status of the user - 0 (disenrolled) or 1 (enrolled); any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>expiration_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>Date the course expires for the user, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>due_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>Date course completion is due for the user, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>license_type</td>\n<td>string</td>\n<td>8</td>\n<td>No</td>\n<td>License for the course, one of: <br />\"full\"<br />\"trial\"<br />\"lifetime\"</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users","981","course","36324"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"5ef12f0c-cc63-4a2a-9e6e-8babc91e0d00","name":"Example #1","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[{"key":"enrolled","type":"text","value":"1","description":"Enrollment status of the user - 0 (disenrolled) or 1 (enrolled); any non-zero value resolves to true)"},{"key":"expiration_date","type":"text","value":"2022-12-31","description":"Date the course expires for the user, formatted as \"yyyy-mm-dd\" (UTC)"},{"key":"due_date","type":"text","value":"2020-12-01","description":"Date course completion is due for the user, formatted as \"yyyy-mm-dd\" (UTC)"},{"key":"license_type","value":"full","description":"License for the course, one of: \"full\", \"trial\", \"lifetime\"","type":"text"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/985/course/36324"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 15:57:37 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDb166d872622389960fa174f2d8169a59"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"id\": 985,\n        \"display_name\": \"Jeff Bezos\"\n    },\n    \"course\": {\n        \"id\": 36324,\n        \"name\": \"How To Make a Rocket\"\n    },\n    \"enrolled\": 1,\n    \"expiration_date\": \"2022-12-31\",\n    \"due_date\": \"2020-12-01\",\n    \"license_type\": \"full\",\n    \"progress\": 0,\n    \"progress_message\": \"Course has not been started\",\n    \"completed\": 0,\n    \"completed_date\": \"\",\n    \"score\": 0\n}"}],"_postman_id":"e2a00c09-96c7-4e6a-82eb-9374fc2a4797"},{"name":"Update User Course Data by External ID","id":"262bb233-3d26-4129-93b0-c4b740027e38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"enrolled","value":"1","type":"text","description":"<p>Enrollment status of the user - 0 (disenrolled) or 1 (enrolled); any non-zero value resolves to true)</p>\n","disabled":true},{"key":"expiration_date","value":"","type":"text","description":"<p>Date the course expires for the user, formatted as \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"due_date","value":"","type":"text","description":"<p>Date course completion is due for the user, formatted as \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"license_type","value":"trial","description":"<p>License for the course, one of: \"full\", \"trial\", \"lifetime\"</p>\n","type":"text","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/abcd-1234/course/abcd-1234/external","description":"<p>Updates existing user data for a given course, referenced by the user external_identifier and course external_identifier</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/users/{externalUserId}/course/{externalCourseId}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>enrolled</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>Enrollment status of the user - 0 (disenrolled) or 1 (enrolled); any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>expiration_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>Date the course expires for the user, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>due_date</td>\n<td>string</td>\n<td>10</td>\n<td>No</td>\n<td>Date course completion is due for the user, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>license_type</td>\n<td>string</td>\n<td>8</td>\n<td>No</td>\n<td>License for the course, one of: <br />\"full\"<br />\"trial\"<br />\"lifetime\"</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","users","abcd-1234","course","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"d5d97d7c-b20f-4b53-968e-31a044ad6745","name":"Example #1","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"enrolled","value":"1","type":"text","description":"Enrollment status of the user - 0 (disenrolled) or 1 (enrolled); any non-zero value resolves to true)"},{"key":"expiration_date","value":"2022-01-01","type":"text","description":"Date the course expires for the user, formatted as \"yyyy-mm-dd\" (UTC)"},{"key":"due_date","value":"2021-12-31","type":"text","description":"Date course completion is due for the user, formatted as \"yyyy-mm-dd\" (UTC)"},{"key":"license_type","value":"trial","description":"License for the course, one of: \"full\", \"trial\", \"lifetime\"","type":"text"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/users/emp-4815162342/course/spx-dev/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 19:01:29 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDaa26331af926bf809c16867397e57474"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"id\": 981,\n        \"display_name\": \"Elon Musk\"\n    },\n    \"course\": {\n        \"id\": \"36324\",\n        \"name\": \"How To Make a Rocket\"\n    },\n    \"enrolled\": 1,\n    \"expiration_date\": \"2022-01-01\",\n    \"due_date\": \"2021-12-31\",\n    \"license_type\": \"trial\",\n    \"progress\": 0,\n    \"progress_message\": \"Course has not been started\",\n    \"completed\": 0,\n    \"completed_date\": \"\",\n    \"score\": 0\n}"}],"_postman_id":"262bb233-3d26-4129-93b0-c4b740027e38"}],"id":"0e19199b-ffbd-4ffd-aad8-9d570ea886cb","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of returned course data objects.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user</td>\n<td>object</td>\n<td>Data for the user</td>\n</tr>\n<tr>\n<td>user.id</td>\n<td>integer</td>\n<td>Unique ID of the user</td>\n</tr>\n<tr>\n<td>user.display_name</td>\n<td>string</td>\n<td>User's display name (usually first + last name)</td>\n</tr>\n<tr>\n<td>course</td>\n<td>object</td>\n<td>Data for the course</td>\n</tr>\n<tr>\n<td>course.id</td>\n<td>integer</td>\n<td>Unique ID of the course</td>\n</tr>\n<tr>\n<td>course.name</td>\n<td>string</td>\n<td>Name of the course</td>\n</tr>\n<tr>\n<td>enrolled</td>\n<td>boolean</td>\n<td>0 if user is not enrolled, 1 if user is enrolled</td>\n</tr>\n<tr>\n<td>expiration_date</td>\n<td>string</td>\n<td>Date the course expires, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>due_date</td>\n<td>string</td>\n<td>Date the course is due, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>license_type</td>\n<td>string</td>\n<td>License for the course, one of: <br />\"full\"<br />\"trial\"<br />\"lifetime\".</td>\n</tr>\n<tr>\n<td>completed</td>\n<td>boolean</td>\n<td>0 if not completed, 1 if completed</td>\n</tr>\n<tr>\n<td>progress</td>\n<td>integer</td>\n<td>Percentage of course completed</td>\n</tr>\n<tr>\n<td>progress_message</td>\n<td>string</td>\n<td>Message noting whether the user has started, progressed, or completed the course</td>\n</tr>\n<tr>\n<td>completed_date</td>\n<td>string</td>\n<td>Date of course completion, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>score</td>\n<td>integer</td>\n<td>Score/result for the course (after completion)</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"ea8c5427-6337-49eb-b12d-32aa3da426a1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bba4a28d-7723-4538-a5bd-d9f73fdf3413","type":"text/javascript","exec":[""]}}],"_postman_id":"0e19199b-ffbd-4ffd-aad8-9d570ea886cb","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}},{"name":"Locations","item":[{"name":"Create a Location","id":"c7dde594-85f4-4a37-a8fc-a7783bb05f6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"XY Learning","type":"text","description":"<p>Name of the location</p>\n"},{"key":"address_1","value":"721 Evergreen Terrace","type":"text","description":"<p>Address (field 1) of the location</p>\n","disabled":true},{"key":"city","value":"Grand Rapids","type":"text","description":"<p>Location's city</p>\n"},{"key":"state","value":"MI","type":"text","description":"<p>Location's state</p>\n"},{"key":"country","value":"US","description":"<p>Location's country</p>\n","type":"text","disabled":true},{"key":"postal_code","value":"12345","type":"text","description":"<p>Location's postal code</p>\n","disabled":true},{"key":"phone","value":"555-555-5555","type":"text","description":"<p>Location's phone number</p>\n","disabled":true},{"key":"leaders","value":"","description":"<p>Comma separated list of user IDs to assign as location leads</p>\n","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/","description":"<p>Creates a new location, returns the saved location object with formatted data</p>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>Yes</td>\n<td>Name of the location</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Description of the location</td>\n</tr>\n<tr>\n<td>address_1</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Address (field 1) of the location</td>\n</tr>\n<tr>\n<td>address_2</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Address (field 2) of the location</td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Location's city</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Location's state</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Location's postal code</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's country</td>\n</tr>\n<tr>\n<td>district</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's district</td>\n</tr>\n<tr>\n<td>county</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's county</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>16</td>\n<td>No</td>\n<td>Location's phone number</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Primary email address for the location</td>\n</tr>\n<tr>\n<td>logo_url</td>\n<td>string</td>\n<td>1024</td>\n<td>No</td>\n<td>URL for the location's logo</td>\n</tr>\n<tr>\n<td>leaders</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as location leads.</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","locations",""],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"39d3a2a0-6812-431f-8cd5-4c1d2ea7ac7d","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"SDI Clarity","type":"text","description":"Name of the location"},{"key":"description","value":"","description":"Description of the location","type":"text","disabled":true},{"key":"address_1","value":" 3152 Peregrine Dr NE #110","type":"text","description":"Address (field 1) of the location"},{"key":"address_2","value":"","type":"text","description":"Address (field 2) of the location","disabled":true},{"key":"city","value":"Grand Rapids","type":"text","description":"Location's city"},{"key":"State","value":"MI","type":"text","description":"Location's state"},{"key":"postal_code","value":"49525","type":"text","description":"Location's postal code"},{"key":"country","value":"US","type":"text","description":"Location's country"},{"key":"district","value":"13","type":"text","description":"Location's district","disabled":true},{"key":"county","value":"Lost","type":"text","description":"Location's county","disabled":true},{"key":"phone","value":"555-555-5555","type":"text","description":"Location's phone number","disabled":true},{"key":"email","value":"email@example.com","type":"text","description":"Primary email address for the location","disabled":true},{"key":"logo_url","value":"https://example.com/","type":"text","description":"URL for the location's logo","disabled":true},{"key":"leaders","value":"","description":"Comma separated list of user IDs to assign as location leads","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Jan 2021 21:06:19 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDf4ca47762cf56be74b63343a3a2ffce8"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 45,\n    \"name\": \"SDI Clarity\",\n    \"type\": \"\",\n    \"description\": \"\",\n    \"address_1\": \" 3152 Peregrine Dr NE #110\",\n    \"address_2\": \"\",\n    \"city\": \"Grand Rapids\",\n    \"state\": \"\",\n    \"postal_code\": \"49525\",\n    \"country\": \"US\",\n    \"county\": \"\",\n    \"phone\": \"\",\n    \"email\": \"\",\n    \"logo_url\": \"\",\n    \"parent_id\": 0,\n    \"external_identifier\": null,\n    \"deleted\": null,\n    \"level\": 1,\n    \"leaders\": [],\n    \"parent\": []\n}"},{"id":"7136a1ed-a9b2-4a2b-a314-96d26f23d5aa","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"SpaceX","type":"text","description":"Name of the location"},{"key":"description","value":"Privately held space exploration company","description":"Description of the location","type":"text"},{"key":"address_1","value":"1234 Maple St","type":"text","description":"Address (field 1) of the location"},{"key":"address_2","value":"Building #8","type":"text","description":"Address (field 2) of the location"},{"key":"city","value":"Hawthorne","type":"text","description":"Location's city"},{"key":"state","value":"CA","type":"text","description":"Location's state"},{"key":"postal_code","value":"90250","type":"text","description":"Location's postal code"},{"key":"country","value":"US","type":"text","description":"Location's country"},{"key":"district","value":"12","type":"text","description":"Location's district"},{"key":"county","value":"Cameron","type":"text","description":"Location's county"},{"key":"phone","value":"800-555-2287","type":"text","description":"Location's phone number"},{"key":"email","value":"info@spacex.com","type":"text","description":"Primary email address for the location"},{"key":"logo_url","value":"https://www.spacex.com/static/images/favicon.ico","type":"text","description":"URL for the location's logo"},{"key":"leaders","value":"","description":"Comma separated list of user IDs to assign as location leads","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 13:38:00 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDf4deac33fb5da225696828c8f7411bd6"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 46,\n    \"name\": \"SpaceX\",\n    \"type\": \"\",\n    \"description\": \"Privately held space exploration company\",\n    \"address_1\": \"1234 Maple St\",\n    \"address_2\": \"Building #8\",\n    \"city\": \"Hawthorne\",\n    \"state\": \"CA\",\n    \"postal_code\": \"90250\",\n    \"country\": \"US\",\n    \"county\": \"Cameron\",\n    \"phone\": \"800-555-2287\",\n    \"email\": \"info@spacex.com\",\n    \"logo_url\": \"https://www.spacex.com/static/images/favicon.ico\",\n    \"parent_id\": 0,\n    \"external_identifier\": \"abcd-1234\",\n    \"deleted\": null,\n    \"level\": 1,\n    \"leaders\": [],\n    \"parent\": []\n}"}],"_postman_id":"c7dde594-85f4-4a37-a8fc-a7783bb05f6e"},{"name":"List All Locations","id":"df9d4635-a4f4-4365-81dd-8c80bbb7a0d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/","description":"<p>Returns an array of location objects</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","locations",""],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"df9d4635-a4f4-4365-81dd-8c80bbb7a0d7"},{"name":"Retrieve Location","id":"e3ebdfdc-ccc2-49b6-bd0c-b74eeaa71d6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/1","description":"<p>Returns a single location object, referenced by the location ID</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/locations/{id}</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","locations","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3ebdfdc-ccc2-49b6-bd0c-b74eeaa71d6c"},{"name":"Retrieve Location by External ID","id":"a24e81ad-a33e-4854-9bee-e0cd70ccee3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/abcd-1234/external","description":"<p>Returns a single location object, referenced by the external_identifier</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/locations/{external_identifier}/external</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","locations","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a24e81ad-a33e-4854-9bee-e0cd70ccee3f"},{"name":"Update Location","id":"b69814b5-4b59-4699-aef2-76193145ba9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Name of the location</p>\n","disabled":true},{"key":"address_1","value":"721 Evergreen Terrace","type":"text","description":"<p>Address (field 1) of the location</p>\n","disabled":true},{"key":"city","value":"Springfield","type":"text","description":"<p>Location's city</p>\n","disabled":true},{"key":"state","value":"AA","type":"text","description":"<p>Location's state</p>\n","disabled":true},{"key":"postal_code","value":"12345","type":"text","description":"<p>Location's postal code</p>\n","disabled":true},{"key":"country","value":"US","type":"text","description":"<p>Location's country</p>\n","disabled":true},{"key":"phone","value":"555-555-5555","type":"text","description":"<p>Location's phone number</p>\n","disabled":true},{"key":"leaders","value":"","description":"<p>Comma separated list of user IDs to assign as location leads. Location leads can be removed by leaving them off the list. An empty value will remove all location leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</p>\n","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/1","description":"<p>Updates an existing location (referenced by the location ID), returns the updated location object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/locations/{id}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Name of the location</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Description of the location</td>\n</tr>\n<tr>\n<td>address_1</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Address (field 1) of the location</td>\n</tr>\n<tr>\n<td>address_2</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Address (field 2) of the location</td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Location's city</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Location's state</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Location's postal code</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's country</td>\n</tr>\n<tr>\n<td>district</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's district</td>\n</tr>\n<tr>\n<td>county</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's county</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>16</td>\n<td>No</td>\n<td>Location's phone number</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Primary email address for the location</td>\n</tr>\n<tr>\n<td>logo_url</td>\n<td>string</td>\n<td>1024</td>\n<td>No</td>\n<td>URL for the location's logo</td>\n</tr>\n<tr>\n<td>leaders</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as location leads. Location leads can be removed by leaving them off the list. An empty value will remove all location leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","locations","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"fe3b8efb-f476-4b3d-9d01-8e4ef0a608fa","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Name of the location","disabled":true},{"key":"description","value":"","description":"Description of the location","type":"text","disabled":true},{"key":"address_1","value":"721 Evergreen Terrace","type":"text","description":"Address (field 1) of the location","disabled":true},{"key":"address_2","value":"Suite A","type":"text","description":"Address (field 2) of the location","disabled":true},{"key":"city","value":"Springfield","type":"text","description":"Location's city","disabled":true},{"key":"state","value":"AA","type":"text","description":"Location's state","disabled":true},{"key":"postal_code","value":"12345","type":"text","description":"Location's postal code","disabled":true},{"key":"country","value":"US","type":"text","description":"Location's country","disabled":true},{"key":"district","value":"13","type":"text","description":"Location's district","disabled":true},{"key":"county","value":"Lost","type":"text","description":"Location's county","disabled":true},{"key":"phone","value":"555-555-5555","type":"text","description":"Location's phone number","disabled":true},{"key":"email","value":"contact@spacex.com","type":"text","description":"Primary email address for the location"},{"key":"logo_url","value":"https://example.com/","type":"text","description":"URL for the location's logo","disabled":true},{"key":"leaders","value":"","description":"Comma separated list of user IDs to assign as location leads. Location leads can be removed by leaving them off the list. An empty value will remove all location leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/46"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:08:13 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD7f4884668b6f79eb56bc5b513975335d"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 46,\n    \"name\": \"SpaceX\",\n    \"type\": \"\",\n    \"description\": \"Privately held space exploration company\",\n    \"address_1\": \"1234 Maple St\",\n    \"address_2\": \"Building #8\",\n    \"city\": \"Hawthorne\",\n    \"state\": \"CA\",\n    \"postal_code\": \"90250\",\n    \"country\": \"US\",\n    \"county\": \"Cameron\",\n    \"phone\": \"800-555-2287\",\n    \"email\": \"contact@spacex.com\",\n    \"logo_url\": \"https://www.spacex.com/static/images/favicon.ico\",\n    \"parent_id\": 0,\n    \"external_identifier\": \"abcd-1234\",\n    \"deleted\": 0,\n    \"level\": 1,\n    \"leaders\": [],\n    \"parent\": []\n}"}],"_postman_id":"b69814b5-4b59-4699-aef2-76193145ba9d"},{"name":"Update Location Copy","id":"039572f6-7b55-486e-864a-ca2808e64682","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Name of the location</p>\n","disabled":true},{"key":"address_1","value":"721 Evergreen Terrace","type":"text","description":"<p>Address (field 1) of the location</p>\n","disabled":true},{"key":"city","value":"Springfield","type":"text","description":"<p>Location's city</p>\n","disabled":true},{"key":"state","value":"AA","type":"text","description":"<p>Location's state</p>\n","disabled":true},{"key":"postal_code","value":"12345","type":"text","description":"<p>Location's postal code</p>\n","disabled":true},{"key":"country","value":"US","type":"text","description":"<p>Location's country</p>\n","disabled":true},{"key":"phone","value":"555-555-5555","type":"text","description":"<p>Location's phone number</p>\n","disabled":true},{"key":"leaders","value":"","description":"<p>Comma separated list of user IDs to assign as location leads. Location leads can be removed by leaving them off the list. An empty value will remove all location leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</p>\n","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/1","description":"<p>Updates an existing location (referenced by the location ID), returns the updated location object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/locations/{id}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Name of the location</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Description of the location</td>\n</tr>\n<tr>\n<td>address_1</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Address (field 1) of the location</td>\n</tr>\n<tr>\n<td>address_2</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Address (field 2) of the location</td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Location's city</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Location's state</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Location's postal code</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's country</td>\n</tr>\n<tr>\n<td>district</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's district</td>\n</tr>\n<tr>\n<td>county</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's county</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>16</td>\n<td>No</td>\n<td>Location's phone number</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Primary email address for the location</td>\n</tr>\n<tr>\n<td>logo_url</td>\n<td>string</td>\n<td>1024</td>\n<td>No</td>\n<td>URL for the location's logo</td>\n</tr>\n<tr>\n<td>leaders</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as location leads. Location leads can be removed by leaving them off the list. An empty value will remove all location leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","locations","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"29694b0d-88a5-4312-a8ac-132ebe21e2fc","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Name of the location","disabled":true},{"key":"description","value":"","description":"Description of the location","type":"text","disabled":true},{"key":"address_1","value":"721 Evergreen Terrace","type":"text","description":"Address (field 1) of the location","disabled":true},{"key":"address_2","value":"Suite A","type":"text","description":"Address (field 2) of the location","disabled":true},{"key":"city","value":"Springfield","type":"text","description":"Location's city","disabled":true},{"key":"state","value":"AA","type":"text","description":"Location's state","disabled":true},{"key":"postal_code","value":"12345","type":"text","description":"Location's postal code","disabled":true},{"key":"country","value":"US","type":"text","description":"Location's country","disabled":true},{"key":"district","value":"13","type":"text","description":"Location's district","disabled":true},{"key":"county","value":"Lost","type":"text","description":"Location's county","disabled":true},{"key":"phone","value":"555-555-5555","type":"text","description":"Location's phone number","disabled":true},{"key":"email","value":"contact@spacex.com","type":"text","description":"Primary email address for the location"},{"key":"logo_url","value":"https://example.com/","type":"text","description":"URL for the location's logo","disabled":true},{"key":"leaders","value":"","description":"Comma separated list of user IDs to assign as location leads. Location leads can be removed by leaving them off the list. An empty value will remove all location leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/46"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:08:13 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD7f4884668b6f79eb56bc5b513975335d"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 46,\n    \"name\": \"SpaceX\",\n    \"type\": \"\",\n    \"description\": \"Privately held space exploration company\",\n    \"address_1\": \"1234 Maple St\",\n    \"address_2\": \"Building #8\",\n    \"city\": \"Hawthorne\",\n    \"state\": \"CA\",\n    \"postal_code\": \"90250\",\n    \"country\": \"US\",\n    \"county\": \"Cameron\",\n    \"phone\": \"800-555-2287\",\n    \"email\": \"contact@spacex.com\",\n    \"logo_url\": \"https://www.spacex.com/static/images/favicon.ico\",\n    \"parent_id\": 0,\n    \"external_identifier\": \"abcd-1234\",\n    \"deleted\": 0,\n    \"level\": 1,\n    \"leaders\": [],\n    \"parent\": []\n}"}],"_postman_id":"039572f6-7b55-486e-864a-ca2808e64682"},{"name":"Update Location by External ID","id":"bf63182c-0c93-49f2-b887-7e79d93d4318","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Name of the location</p>\n","disabled":true},{"key":"address_1","value":"721 Evergreen Terrace","type":"text","description":"<p>Address (field 1) of the location</p>\n","disabled":true},{"key":"city","value":"Springfield","type":"text","description":"<p>Location's city</p>\n","disabled":true},{"key":"state","value":"AA","type":"text","description":"<p>Location's state</p>\n","disabled":true},{"key":"postal_code","value":"12345","type":"text","description":"<p>Location's postal code</p>\n","disabled":true},{"key":"country","value":"US","type":"text","description":"<p>Location's country</p>\n","disabled":true},{"key":"phone","value":"555-555-5555","type":"text","description":"<p>Location's phone number</p>\n","disabled":true},{"key":"leaders","value":"","description":"<p>Comma separated list of user IDs to assign as location leads. Location leads can be removed by leaving them off the list. An empty value will remove all location leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</p>\n","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/abcd-1234/external","description":"<p>Updates an existing location (referenced by the external_identifier), returns the updated location object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/locations/{external_identifier}/external</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Name of the location</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Description of the location</td>\n</tr>\n<tr>\n<td>address_1</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Address (field 1) of the location</td>\n</tr>\n<tr>\n<td>address_2</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Address (field 2) of the location</td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>100</td>\n<td>No</td>\n<td>Location's city</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Location's state</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>string</td>\n<td>20</td>\n<td>No</td>\n<td>Location's postal code</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's country</td>\n</tr>\n<tr>\n<td>district</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's district</td>\n</tr>\n<tr>\n<td>county</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>Location's county</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>16</td>\n<td>No</td>\n<td>Location's phone number</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>200</td>\n<td>No</td>\n<td>Primary email address for the location</td>\n</tr>\n<tr>\n<td>logo_url</td>\n<td>string</td>\n<td>1024</td>\n<td>No</td>\n<td>URL for the location's logo</td>\n</tr>\n<tr>\n<td>leaders</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as location leads. Location leads can be removed by leaving them off the list. An empty value will remove all location leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","locations","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"d2a7110d-6f13-4464-939d-555503d22212","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Name of the location","disabled":true},{"key":"description","value":"","description":"Description of the location","type":"text","disabled":true},{"key":"address_1","value":"721 Evergreen Terrace","type":"text","description":"Address (field 1) of the location","disabled":true},{"key":"address_2","value":"Suite A","type":"text","description":"Address (field 2) of the location","disabled":true},{"key":"city","value":"Springfield","type":"text","description":"Location's city","disabled":true},{"key":"state","value":"AA","type":"text","description":"Location's state","disabled":true},{"key":"postal_code","value":"12345","type":"text","description":"Location's postal code","disabled":true},{"key":"country","value":"US","type":"text","description":"Location's country","disabled":true},{"key":"district","value":"13","type":"text","description":"Location's district","disabled":true},{"key":"county","value":"Lost","type":"text","description":"Location's county","disabled":true},{"key":"phone","value":"202-555-2717","type":"text","description":"Location's phone number"},{"key":"email","value":"email@example.com","type":"text","description":"Primary email address for the location","disabled":true},{"key":"logo_url","value":"https://example.com/","type":"text","description":"URL for the location's logo","disabled":true},{"key":"leaders","value":"","description":"Comma separated list of user IDs to assign as location leads. Location leads can be removed by leaving them off the list. An empty value will remove all location leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/locations/abcd-1234/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:13:28 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDe8f6eeb2ab504b09f9b384ab302e8d8d"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 46,\n    \"name\": \"SpaceX\",\n    \"type\": \"\",\n    \"description\": \"Privately held space exploration company\",\n    \"address_1\": \"1234 Maple St\",\n    \"address_2\": \"Building #8\",\n    \"city\": \"Hawthorne\",\n    \"state\": \"\",\n    \"postal_code\": \"90250\",\n    \"country\": \"US\",\n    \"county\": \"Cameron\",\n    \"phone\": \"202-555-2717\",\n    \"email\": \"contact@spacex.com\",\n    \"logo_url\": \"https://www.spacex.com/static/images/favicon.ico\",\n    \"parent_id\": 0,\n    \"external_identifier\": \"abcd-1234\",\n    \"deleted\": 0,\n    \"level\": 1,\n    \"leaders\": [],\n    \"parent\": []\n}"}],"_postman_id":"bf63182c-0c93-49f2-b887-7e79d93d4318"}],"id":"5e657e23-be55-449e-9e4d-418cb9a92e20","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of a returned location object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Unique ID for the location</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Name of the location</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Description of the location</td>\n</tr>\n<tr>\n<td>address_1</td>\n<td>string</td>\n<td>Address (field 1) of the location</td>\n</tr>\n<tr>\n<td>address_2</td>\n<td>string</td>\n<td>Address (field 2) of the location</td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>Location's city</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>Location's state</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>string</td>\n<td>Location's postal code</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>Location's country</td>\n</tr>\n<tr>\n<td>district</td>\n<td>string</td>\n<td>Location's district</td>\n</tr>\n<tr>\n<td>county</td>\n<td>string</td>\n<td>Location's county</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>Location's phone number</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Primary email address for the location</td>\n</tr>\n<tr>\n<td>logo_url</td>\n<td>string</td>\n<td>URL for the location's logo</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"a8158d45-382a-4994-ae9f-bbb5a9b4016e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"29adfc59-5600-47ae-940a-833c78c982fb","type":"text/javascript","exec":[""]}}],"_postman_id":"5e657e23-be55-449e-9e4d-418cb9a92e20","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}},{"name":"Departments","item":[{"name":"Create a Department","id":"acbe9972-c175-434e-9ffd-78a6ec090d3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Department name</p>\n"},{"key":"parent_id","value":"0","type":"text","description":"<p>Parent department's ID</p>\n","disabled":true},{"key":"location_id","value":"0","type":"text","description":"<p>Department's location ID</p>\n","disabled":true},{"key":"leads","value":"","type":"text","description":"<p>Comma separated list of user IDs to assign as department leads</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments","description":"<p>Creates a new department, returns the saved department object with formatted data</p>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>Yes</td>\n<td>Department name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the department</td>\n</tr>\n<tr>\n<td>parent_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>Parent department's ID</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>Department's location ID</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>0 or 1 (any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>leads</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as department leads</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","departments"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"43ec9859-e5ce-4a1e-a481-f3eba4f42c95","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Developers","type":"text","description":"Department name"},{"key":"description","value":"A machine that turns coffee into code","type":"text","description":"Description of the department"},{"key":"parent_id","value":"0","type":"text","description":"Parent department's ID","disabled":true},{"key":"location_id","value":"45","type":"text","description":"Department's location ID"},{"key":"is_active","value":"true","type":"text","description":"0 or 1 (any non-zero value resolves to true)"},{"key":"leads","value":"977","type":"text","description":"Comma separated list of user IDs to assign as department leads"},{"key":"external_identifier","value":"xy-dev","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Jan 2021 21:10:56 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD4b2d60c3a9006741be6829c5b4b37350"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 16,\n    \"name\": \"Developers\",\n    \"description\": \"A machine that turns coffee into code\",\n    \"parent_id\": 0,\n    \"is_active\": true,\n    \"external_identifier\": \"xy-dev\",\n    \"leads\": [],\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"location\": {\n        \"id\": 45,\n        \"name\": \"SDI Clarity\",\n        \"external_identifier\": \"\"\n    }\n}"},{"id":"e95f5e60-89cf-40b6-aedc-75e256e9285d","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Space Exploration","type":"text","description":"Department name"},{"key":"description","value":"Explore space with rockets","type":"text","description":"Description of the department"},{"key":"parent_id","value":"0","type":"text","description":"Parent department's ID","disabled":true},{"key":"location_id","value":"46","type":"text","description":"Department's location ID"},{"key":"is_active","value":"true","type":"text","description":"0 or 1 (any non-zero value resolves to true)"},{"key":"leads","value":"","type":"text","description":"Comma separated list of user IDs to assign as department leads","disabled":true},{"key":"external_identifier","value":"spx","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 13:45:54 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD7fcd7ef1a51f27775b2b3fca957aa7e7"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 17,\n    \"name\": \"Space Exploration\",\n    \"description\": \"Explore space with rockets\",\n    \"parent_id\": 0,\n    \"is_active\": true,\n    \"external_identifier\": \"spx\",\n    \"leads\": [],\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"location\": {\n        \"id\": 46,\n        \"name\": \"SpaceX\",\n        \"external_identifier\": \"abcd-1234\"\n    }\n}"}],"_postman_id":"acbe9972-c175-434e-9ffd-78a6ec090d3d"},{"name":"List All Departments","id":"7db6a3a6-6b5f-4ec0-8c31-7764cc2c65d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments","description":"<p>Get all departments</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","departments"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7db6a3a6-6b5f-4ec0-8c31-7764cc2c65d7"},{"name":"Retrieve Department","id":"d20ce333-b5f0-4926-be7c-4725edc9104e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments/1","description":"<p>Get a single department object, referenced by the department ID</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/departments/{id}</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","departments","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d20ce333-b5f0-4926-be7c-4725edc9104e"},{"name":"Retrieve Department by External ID","id":"844f47d6-1c9a-46c0-8fb1-5b0ba7af9b3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments/abcd-1234/external","description":"<p>Get a single department object, referenced by the external_identifier</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/departments/{external_identifier}/external</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","departments","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"844f47d6-1c9a-46c0-8fb1-5b0ba7af9b3c"},{"name":"Update Department","id":"f6af2c8a-9537-4931-a022-078b61ec50f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing update","type":"text","description":"<p>Department name</p>\n","disabled":true},{"key":"parent_id","value":"0","type":"text","description":"<p>ID of the parent department (0 if the department has no parent)</p>\n","disabled":true},{"key":"location_id","value":"0","type":"text","description":"<p>ID of the department's location (0 if the department has no location)</p>\n","disabled":true},{"key":"leads","value":"114, 90","type":"text","description":"<p>User data for each department lead. An empty value will remove all department leads.</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments/1","description":"<p>Update a course, referenced by its id</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/departments/{id}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Department name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the department</td>\n</tr>\n<tr>\n<td>parent_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>Parent department's ID</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>Department's location ID</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>0 or 1 (any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>leads</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as department leads. Department leads can be removed by leaving them off the list. An empty value will remove all department leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","departments","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"823d5260-bd92-48bc-ad15-91762b684261","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing update","type":"text","description":"Department name","disabled":true},{"key":"description","value":"Explore space with rockets and robots","type":"text","description":"Department description"},{"key":"parent_id","value":"0","type":"text","description":"ID of the parent department (0 if the department has no parent)","disabled":true},{"key":"location_id","value":"0","type":"text","description":"ID of the department's location (0 if the department has no location)","disabled":true},{"key":"is_active","value":"true","type":"text","description":"Department's status","disabled":true},{"key":"leads","value":"114, 90","type":"text","description":"User data for each department lead. An empty value will remove all department leads.","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments/17"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:24:11 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDad5bc04f9842155cd4d5b9555a657e90"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 17,\n    \"name\": \"Space Exploration\",\n    \"description\": \"Explore space with rockets and robots\",\n    \"parent_id\": 0,\n    \"is_active\": true,\n    \"external_identifier\": \"spx\",\n    \"leads\": [],\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"location\": {\n        \"id\": 46,\n        \"name\": \"SpaceX\",\n        \"external_identifier\": \"abcd-1234\"\n    }\n}"}],"_postman_id":"f6af2c8a-9537-4931-a022-078b61ec50f6"},{"name":"Update Department by External ID","id":"c4cc09df-ceef-4b76-a13c-3dc255319a2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","type":"text","value":"Testing update","description":"<p>Department name</p>\n","disabled":true},{"key":"parent_id","type":"text","value":"0","description":"<p>ID of the parent department (0 if the department has no parent)</p>\n","disabled":true},{"key":"location_id","type":"text","value":"0","description":"<p>ID of the department's location (0 if the department has no location)</p>\n","disabled":true},{"key":"leads","type":"text","value":"114, 90","description":"<p>User data for each department lead</p>\n","disabled":true},{"key":"external_identifier","type":"text","value":"abcd-1234","description":"<p>UUID for 3rd party identification. An empty value will remove all department leads.</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments/abcd-1234/external","description":"<p>Updates an existing department (referenced by the external_identifier), returns the updated department object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/departments/{external_identifier}/external</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Department name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the department</td>\n</tr>\n<tr>\n<td>parent_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>Parent department's ID</td>\n</tr>\n<tr>\n<td>location_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>Department's location ID</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>1</td>\n<td>No</td>\n<td>0 or 1 (any non-zero value resolves to true)</td>\n</tr>\n<tr>\n<td>leads</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as department leads. Department leads can be removed by leaving them off the list. An empty value will remove all department leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","departments","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"c7406021-af3e-4bf5-aeea-e8166b271f5a","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","type":"text","value":"Testing update","description":"Department name","disabled":true},{"key":"description","type":"text","value":"Explore space with revolutionary technologies","description":"Department description"},{"key":"parent_id","type":"text","value":"0","description":"ID of the parent department (0 if the department has no parent)","disabled":true},{"key":"location_id","type":"text","value":"0","description":"ID of the department's location (0 if the department has no location)","disabled":true},{"key":"is_active","type":"text","value":"true","description":"Department's status","disabled":true},{"key":"leads","type":"text","value":"114, 90","description":"User data for each department lead","disabled":true},{"key":"external_identifier","type":"text","value":"abcd-1234","description":"UUID for 3rd party identification. An empty value will remove all department leads.","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/departments/spx/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:58:06 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD9e4bdc1debe3022522e64eab6118dfe4"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 17,\n    \"name\": \"Space Exploration\",\n    \"description\": \"Explore space with revolutionary technologies\",\n    \"parent_id\": 0,\n    \"is_active\": true,\n    \"external_identifier\": \"spx\",\n    \"leads\": [],\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"location\": {\n        \"id\": 46,\n        \"name\": \"SpaceX\",\n        \"external_identifier\": \"abcd-1234\"\n    }\n}"}],"_postman_id":"c4cc09df-ceef-4b76-a13c-3dc255319a2b"}],"id":"83a40d2d-7077-4b89-b992-09facc768081","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of a returned course object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Unique ID for the department</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Department name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Department description</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>Department's status</td>\n</tr>\n<tr>\n<td>leads</td>\n<td>array</td>\n<td>User data for each department lead</td>\n</tr>\n<tr>\n<td>lead.id (for each lead)</td>\n<td>integer</td>\n<td>User ID of the department lead</td>\n</tr>\n<tr>\n<td>lead.name (for each lead)</td>\n<td>string</td>\n<td>Name of the department lead</td>\n</tr>\n<tr>\n<td>parent</td>\n<td>object</td>\n<td>Data for a parent department</td>\n</tr>\n<tr>\n<td>parent.id</td>\n<td>integer</td>\n<td>ID of the parent department (0 if the department has no parent)</td>\n</tr>\n<tr>\n<td>parent.name</td>\n<td>string</td>\n<td>Title of the parent department</td>\n</tr>\n<tr>\n<td>location</td>\n<td>object</td>\n<td>Data for the department's location</td>\n</tr>\n<tr>\n<td>location.id</td>\n<td>integer</td>\n<td>ID of the department's location (0 if the department has no location)</td>\n</tr>\n<tr>\n<td>location.name</td>\n<td>string</td>\n<td>Name of the department's location</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"a104b7e8-3688-4f4e-9f60-63efde963742","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4af3163c-bc33-4d69-92a1-712c4a165342","type":"text/javascript","exec":[""]}}],"_postman_id":"83a40d2d-7077-4b89-b992-09facc768081","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}},{"name":"Job Titles","item":[{"name":"Create a Job Title","id":"19aa4284-d6ab-4f35-8b30-0f3b29d6f3a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Job title</p>\n"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles","description":"<p>Creates a new job title, returns the saved job title object with formatted data</p>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>Yes</td>\n<td>Job title</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","jobtitles"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"79e50d97-f5bb-4398-b58f-01407069b76f","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Tiger Wrangler","type":"text","description":"Job title"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Jan 2021 21:11:57 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD19ad4386a5f4ee92bb196720584bf067"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11,\n    \"name\": \"Tiger Wrangler\",\n    \"external_identifier\": null\n}"},{"id":"d7a6b742-946c-4cf0-a818-1efd01212c6d","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Mars Traveler","type":"text","description":"Job title"},{"key":"external_identifier","value":"6277","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 13:42:12 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDdc9f3a587c498de42a8f75689b24b216"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"name\": \"Mars Traveler\",\n    \"external_identifier\": \"6277\"\n}"}],"_postman_id":"19aa4284-d6ab-4f35-8b30-0f3b29d6f3a4"},{"name":"List All Job Titles","id":"1583c195-86b3-4214-a598-bc53f198c8dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles","description":"<p>Returns an array of job title objects</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","jobtitles"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1583c195-86b3-4214-a598-bc53f198c8dd"},{"name":"Retrieve Job Title","id":"3f98a8f4-fd83-4b1f-8689-67909553ff70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles/1","description":"<p>Get a single job title object, referenced by the job title ID</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/jobtitles/{id}</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","jobtitles","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f98a8f4-fd83-4b1f-8689-67909553ff70"},{"name":"Retrieve Job Title by External ID","id":"cf0fd32a-17d4-4926-b4a7-6f0467999b7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles/abcd-1234/external","description":"<p>Get a single job title object, referenced by the external_identifier</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/jobtitles/{external_identifier}/external</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","jobtitles","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf0fd32a-17d4-4926-b4a7-6f0467999b7f"},{"name":"Update Job Title","id":"dd91768b-cac7-4d39-bb46-5408b599a177","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Job title</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles/1","description":"<p>Updates an existing job title (referenced by the job title ID), returns the updated job title object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/jobtitles/{id}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Job title</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","jobtitles","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"20163572-9673-4b9d-845b-c9fa23bd3ba3","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Mars Explorer","type":"text","description":"Job title"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:30:48 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDdf73a7a631a340c4287f483182d45b17"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"name\": \"Mars Explorer\",\n    \"external_identifier\": \"6277\"\n}"}],"_postman_id":"dd91768b-cac7-4d39-bb46-5408b599a177"},{"name":"Update Job Title by External ID","id":"a643315c-5deb-40f1-8ddb-5de35e8620af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Job title</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles/abcd-1234/external","description":"<p>Updates an existing job title (referenced by the external_identifier), returns the updated job title object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/jobtitles/{external_identifier}/external</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Job title</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","jobtitles","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"7aa7524e-a81a-4979-a0cd-276699e45869","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Space Explorer","type":"text","description":"Job title"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/jobtitles/6277/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:35:23 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDd9be4fa1bf75fd9281f639cdc9a61ead"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"name\": \"Space Explorer\",\n    \"external_identifier\": \"6277\"\n}"}],"_postman_id":"a643315c-5deb-40f1-8ddb-5de35e8620af"}],"id":"d226f5b6-8888-44a2-a5ac-a5bb5617f31f","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of a returned job title object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Unique ID of the job title</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Job title</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"133de04c-31b6-48be-92ff-12271dd0afd0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1917557f-c250-4190-8efe-e95d8ebcb0d3","type":"text/javascript","exec":[""]}}],"_postman_id":"d226f5b6-8888-44a2-a5ac-a5bb5617f31f","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}},{"name":"Job Roles","item":[{"name":"Create a Job Role","id":"6e056da8-3d1b-434b-bc79-ffcc5ae25e6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Job Role name</p>\n"},{"key":"description","value":"About the job role","type":"text","description":"<p>Description of the job role</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles","description":"<p>Creates a new job role, returns the saved job role object with formatted data</p>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>Yes</td>\n<td>Job Role name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the job role</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-roles"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"7d025b91-f010-4184-94d3-f49e845f0e13","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Intern","type":"text","description":"Job Role name"},{"key":"description","value":"Fetches coffee","type":"text","description":"Description of the job role"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Jan 2021 21:13:39 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD5acfb900c42e2ab558d07da21b5ed2c3"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 42,\n    \"name\": \"Intern\",\n    \"description\": \"Fetches coffee\",\n    \"levels\": [],\n    \"competencies\": [],\n    \"external_identifier\": null\n}"},{"id":"bfc960f3-b2db-4dd3-b2e4-20aef1f013ac","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Closing","type":"text","description":"Job Role name"},{"key":"description","value":"Lock building after work day","type":"text","description":"Description of the job role"},{"key":"external_identifier","value":"close9-5","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 14:05:04 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD63a8ed8449e68f157dc1b953b2872e73"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 47,\n    \"name\": \"Closing\",\n    \"description\": \"Lock building after work day\",\n    \"levels\": [],\n    \"competencies\": [],\n    \"external_identifier\": \"close9-5\"\n}"}],"_postman_id":"6e056da8-3d1b-434b-bc79-ffcc5ae25e6f"},{"name":"List All Job Roles","id":"e8f3fd89-fcb9-49ac-a644-14cd4d2bd930","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles","description":"<p>Returns an array of job role objects</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-roles"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8f3fd89-fcb9-49ac-a644-14cd4d2bd930"},{"name":"Retrieve Job Role","id":"4b4b7d18-84a0-4d23-8af3-058637d67daa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles/1","description":"<p>Get a single job role object, referenced by the job role ID</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/job-roles/{id}</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-roles","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b4b7d18-84a0-4d23-8af3-058637d67daa"},{"name":"Retrieve Job Role by External ID","id":"7cf06c6f-2b2b-43f4-a4f0-825ae0acfe3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles/abcd-1234/external","description":"<p>Get a single job role object, referenced by the external_identifier</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/job-roles/{external_identifier}/external</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-roles","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7cf06c6f-2b2b-43f4-a4f0-825ae0acfe3d"},{"name":"Update Job Role","id":"e5005e01-3f5b-4f48-80d2-dbda79e20cec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Job Role name</p>\n","disabled":true},{"key":"description","value":"About the job role","type":"text","description":"<p>Description of the job role</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles/1","description":"<p>Updates an existing job role (referenced by the job role ID), returns the updated job role object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/job-roles/{id}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Job Role name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the job role</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-roles","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"7eade091-e3eb-4658-9a8d-a83f58b062b7","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Job Role name","disabled":true},{"key":"description","value":"Lock up building","type":"text","description":"Description of the job role"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles/47"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:39:56 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD798ba2ae9013fecfbfc284f5966a8780"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 47,\n    \"name\": \"Closing\",\n    \"description\": \"Lock up building\",\n    \"levels\": [],\n    \"competencies\": [],\n    \"external_identifier\": \"close9-5\"\n}"}],"_postman_id":"e5005e01-3f5b-4f48-80d2-dbda79e20cec"},{"name":"Update Job Role by External ID","id":"59251fc7-c1ac-4118-9a76-ec0f2875a8a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Job Role name</p>\n","disabled":true},{"key":"description","value":"About the job role","type":"text","description":"<p>Description of the job role</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles/abcd-1234/external","description":"<p>Updates an existing job role (referenced by the external_identifier), returns the updated job role object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/job-roles/{external_identifier}/external</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Job Role name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the job role</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-roles","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"a4698ebe-2aac-414c-b75b-d10078db8565","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Job Role name","disabled":true},{"key":"description","value":"Lock up building and push in chairs","type":"text","description":"Description of the job role"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-roles/close9-5/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:41:21 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDd797505d6f55c5f16ba6e994e7f3bbbe"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 47,\n    \"name\": \"Closing\",\n    \"description\": \"Lock up building and push in chairs\",\n    \"levels\": [],\n    \"competencies\": [],\n    \"external_identifier\": \"close9-5\"\n}"}],"_postman_id":"59251fc7-c1ac-4118-9a76-ec0f2875a8a1"}],"id":"2b4ec6d7-5403-4385-9b3e-53efbf09f391","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of a returned course object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Unique ID for the job role</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Job Role name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Job Role description</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"2ae31d2e-9c68-4d8e-b467-bee1b0391b49","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a1cf2ad2-d7c6-4831-859f-a3dfe4f648e3","type":"text/javascript","exec":[""]}}],"_postman_id":"2b4ec6d7-5403-4385-9b3e-53efbf09f391","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}},{"name":"Job Role Levels","item":[{"name":"Create a Job Role Level","id":"c50e318f-1c33-4420-bd0a-a6afcb490051","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"job_role_id","value":"1","description":"<p>ID of Job Role</p>\n","type":"text"},{"key":"name","value":"Testing","type":"text","description":"<p>Job Role Level name</p>\n"},{"key":"description","value":"About the job role level","type":"text","description":"<p>Description of the job role level</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels","description":"<p>Creates a new job role level, returns the saved job role level object with formatted data</p>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>job_role_id</td>\n<td>integer</td>\n<td>ID of Job Role</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>Yes</td>\n<td>Job Role Level name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the job role level</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-role-levels"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"af536368-41f0-4390-95d3-19384d02b6f0","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"job_role_id","value":"42","description":"ID of Job Role","type":"text"},{"key":"name","value":"Mug Cleaner","type":"text","description":"Job Role Level name"},{"key":"description","value":"Clean the dirty coffee mugs","type":"text","description":"Description of the job role level"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Jan 2021 21:14:36 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD23bbdefc7ea563ad079618678643e106"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 43,\n    \"name\": \"Mug Cleaner\",\n    \"description\": \"Clean the dirty coffee mugs\",\n    \"job_role_id\": \"42\",\n    \"competencies\": [],\n    \"external_identifier\": null\n}"},{"id":"e82c1ae0-3839-4487-a3e7-451028f4f13b","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"job_role_id","value":"42","description":"ID of Job Role","type":"text"},{"key":"name","value":"Coffee Maker","type":"text","description":"Job Role Level name"},{"key":"description","value":"Make the coffee in the pot","type":"text","description":"Description of the job role level"},{"key":"external_identifier","value":"cmake","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 14:02:12 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD9bef05a86fbbbb1ae41c3f5733e00add"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 46,\n    \"name\": \"Coffee Maker\",\n    \"description\": \"Make the coffee in the pot\",\n    \"job_role_id\": \"42\",\n    \"competencies\": [],\n    \"external_identifier\": \"cmake\"\n}"}],"_postman_id":"c50e318f-1c33-4420-bd0a-a6afcb490051"},{"name":"List All Job Role Levels","id":"a66517ca-428e-4214-aca7-e6262ac0b65e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels","description":"<p>Returns an array of job role level objects</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-role-levels"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a66517ca-428e-4214-aca7-e6262ac0b65e"},{"name":"Retrieve Job Role Level","id":"ae2ebf78-4023-432d-9ab2-1262aa9074d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels/1","description":"<p>Get a single job role level object, referenced by the job role level ID</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/job-role-levels/{id}</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-role-levels","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae2ebf78-4023-432d-9ab2-1262aa9074d0"},{"name":"Retrieve Job Role Level by External ID","id":"17d6394b-e0eb-41af-8c4f-23203b662a9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels/abcd-1234/external","description":"<p>Single job role level object, referenced by the external_identifier</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/job-role-levels/{external_identifier}/external</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-role-levels","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"17d6394b-e0eb-41af-8c4f-23203b662a9f"},{"name":"Update Job Role Level","id":"9086973f-479c-44b8-bb58-82ce65aaedd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Job Role Level name</p>\n","disabled":true},{"key":"description","value":"About the job role level","type":"text","description":"<p>Description of the job role level</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels/1","description":"<p>Updates an existing job role level (referenced by the job role level ID), returns the updated job role level object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/job-role-levels/{id}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Job Role Level name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the job role level</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-role-levels","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"09fc2a35-38d4-4962-97f7-f3ccb898991d","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Job Role Level name","disabled":true},{"key":"description","value":"About the job role level","type":"text","description":"Description of the job role level","disabled":true},{"key":"external_identifier","value":"intern-mug","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels/43"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:43:49 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDde85563f69704fdaf3fc802482f33261"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 43,\n    \"name\": \"Mug Cleaner\",\n    \"description\": \"Clean the dirty coffee mugs\",\n    \"job_role_id\": 42,\n    \"competencies\": [],\n    \"external_identifier\": \"intern-mug\"\n}"}],"_postman_id":"9086973f-479c-44b8-bb58-82ce65aaedd1"},{"name":"Update Job Role Level by External ID","id":"7884a634-cfeb-4d53-9e56-d69812574882","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Job Role Level name</p>\n","disabled":true},{"key":"description","value":"About the job role level","type":"text","description":"<p>Description of the job role level</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels/abcd-1234/external","description":"<p>Updates an existing job role level (referenced by the external_identifier), returns the updated job role level object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/job-role-levels/{external_identifier}/external</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Job Role Level name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the job role level</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","job-role-levels","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"63fe3f3b-ef22-470c-b115-de80b0679577","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Job Role Level name","disabled":true},{"key":"description","value":"Make or pick up coffee","type":"text","description":"Description of the job role level"},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/job-role-levels/cmake/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:45:42 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD9d78a9452b52fd4f1bb55f785a2026f2"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 46,\n    \"name\": \"Coffee Maker\",\n    \"description\": \"Make or pick up coffee\",\n    \"job_role_id\": 42,\n    \"competencies\": [],\n    \"external_identifier\": \"cmake\"\n}"}],"_postman_id":"7884a634-cfeb-4d53-9e56-d69812574882"}],"id":"dd451af5-0684-4caa-a658-c0ab69c17196","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of a returned job role level object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Unique ID for the job role level</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Job Role Level name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Job Role Level description</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"6fb53089-65e9-4f6e-8b83-1cd0e7d8a821","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e8dd7240-8166-4a15-86c7-f105a6d4a00e","type":"text/javascript","exec":[""]}}],"_postman_id":"dd451af5-0684-4caa-a658-c0ab69c17196","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}},{"name":"Groups","item":[{"name":"Create a Group","id":"65b926ce-f65f-44cc-ae18-08c38bbe2929","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Group name</p>\n"},{"key":"description","value":"About the group","type":"text","description":"<p>Description of the group</p>\n","disabled":true},{"key":"members","value":"","type":"text","description":"<p>Comma separated list of user IDs to assign as group members</p>\n","disabled":true},{"key":"features","value":"","type":"text","description":"<p>Comma separated list of features for the group, any of: \"learning\", \"cycle\"</p>\n","disabled":true},{"key":"cycle_start_date","value":"","type":"text","description":"<p>External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"cycle_end_date","value":"","type":"text","description":"<p>External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups","description":"<p>Creates a new group, returns the saved group object with formatted data</p>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>Yes</td>\n<td>Group name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the group</td>\n</tr>\n<tr>\n<td>parent_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>Parent group's ID</td>\n</tr>\n<tr>\n<td>leads</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as group leads</td>\n</tr>\n<tr>\n<td>members</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as group members</td>\n</tr>\n<tr>\n<td>features</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of features for the group, any of: <br />\"learning\"<br />\"cycle\"</td>\n</tr>\n<tr>\n<td>cycle_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>External cycle ID associated with the group</td>\n</tr>\n<tr>\n<td>cycle_start_date</td>\n<td>date</td>\n<td>10</td>\n<td>No</td>\n<td>External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>cycle_end_date</td>\n<td>date</td>\n<td>10</td>\n<td>No</td>\n<td>External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>cycle_number</td>\n<td>integer</td>\n<td>4</td>\n<td>No</td>\n<td>External cycle number</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","groups"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"0cdfb01d-712c-484c-9837-246055fb8c13","name":"Example #3","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Astronaut Interns","type":"text","description":"Group name"},{"key":"description","value":"Summer interns for astronaut program","type":"text","description":"Description of the group"},{"key":"parent_id","value":"0","type":"text","description":"Parent group's ID","disabled":true},{"key":"leads","value":"981","type":"text","description":"Comma separated list of user IDs to assign as group leads"},{"key":"members","value":"","type":"text","description":"Comma separated list of user IDs to assign as group members","disabled":true},{"key":"features","value":"cycle","type":"text","description":"Comma separated list of features for the group, any of: \"learning\", \"cycle\""},{"key":"cycle_id","value":"intern-summer","type":"text","description":"External cycle ID associated with the group"},{"key":"cycle_start_date","value":"2020-06-01","type":"text","description":"External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)"},{"key":"cycle_end_date","value":"2020-08-31","type":"text","description":"External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)"},{"key":"cycle_number","value":"062020","description":"External cycle number","type":"text"},{"key":"external_identifier","value":"astro-intern","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 14:14:24 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD40646eb7df4a8e2a5041369fda0ad5e2"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 15,\n    \"name\": \"Astronaut Interns\",\n    \"description\": \"Summer interns for astronaut program\",\n    \"parent_name\": \"\",\n    \"features\": \"cycle\",\n    \"cycle_start_date\": \"2020-06-01\",\n    \"cycle_end_date\": \"2020-08-31\",\n    \"cycle_number\": 62020,\n    \"post_id\": 36301,\n    \"forum_id\": 0,\n    \"mentor_group_id\": 0,\n    \"sme_group_id\": 0,\n    \"external_identifier\": \"astro-intern\",\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"leads\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"external_identifier\": \"emp-4815162342\"\n        }\n    ],\n    \"members\": []\n}"},{"id":"5ca7f5e7-71a8-4fe7-932b-ef5cd35fac10","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Aerospace Interns","type":"text","description":"Group name"},{"key":"description","value":"Summer interns for aerospace engineering","type":"text","description":"Description of the group"},{"key":"parent_id","value":"0","type":"text","description":"Parent group's ID","disabled":true},{"key":"leads","value":"981","type":"text","description":"Comma separated list of user IDs to assign as group leads"},{"key":"members","value":"","type":"text","description":"Comma separated list of user IDs to assign as group members","disabled":true},{"key":"features","value":"learning","type":"text","description":"Comma separated list of features for the group, any of: \"learning\", \"cycle\""},{"key":"cycle_id","value":"intern-summer","type":"text","description":"External cycle ID associated with the group"},{"key":"cycle_start_date","value":"2020-06-01","type":"text","description":"External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)"},{"key":"cycle_end_date","value":"2020-08-31","type":"text","description":"External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)"},{"key":"cycle_number","value":"062020","description":"External cycle number","type":"text"},{"key":"external_identifier","value":"spx-intern","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 14:09:36 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QD685b6ec50daaf8ea8b327939ae86d418"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"name\": \"Aerospace Interns\",\n    \"description\": \"Summer interns for aerospace engineering\",\n    \"parent_name\": \"\",\n    \"features\": \"learning\",\n    \"cycle_start_date\": null,\n    \"cycle_end_date\": null,\n    \"cycle_number\": 0,\n    \"post_id\": 36296,\n    \"forum_id\": 0,\n    \"mentor_group_id\": 0,\n    \"sme_group_id\": 0,\n    \"external_identifier\": \"spx-intern\",\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"leads\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"external_identifier\": \"emp-4815162342\"\n        }\n    ],\n    \"members\": []\n}"},{"id":"f1610a1c-4b58-4ad6-ab6c-1edfdc82d0c5","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Part-time Employees","type":"text","description":"Group name"},{"key":"description","value":"Work less than 20 hours per week","type":"text","description":"Description of the group"},{"key":"parent_id","value":"0","type":"text","description":"Parent group's ID","disabled":true},{"key":"leads","value":"","type":"text","description":"Comma separated list of user IDs to assign as group leads","disabled":true},{"key":"members","value":"978","type":"text","description":"Comma separated list of user IDs to assign as group members"},{"key":"features","value":"","type":"text","description":"Comma separated list of features for the group, any of: \"learning\", \"cycle\"","disabled":true},{"key":"cycle_id","value":"","type":"text","description":"External cycle ID associated with the group","disabled":true},{"key":"cycle_start_date","value":"","type":"text","description":"External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_end_date","value":"","type":"text","description":"External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_number","value":"","description":"External cycle number","type":"text","disabled":true},{"key":"external_identifier","value":"pt-emp","type":"text","description":"UUID for 3rd party identification"}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 18 Jan 2021 21:17:19 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDb884e5d70138ba36952bf6eb6e81d718"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 10,\n    \"name\": \"Part-time Employees\",\n    \"description\": \"Work less than 20 hours per week\",\n    \"parent_name\": \"\",\n    \"features\": \"\",\n    \"cycle_start_date\": null,\n    \"cycle_end_date\": null,\n    \"cycle_number\": 0,\n    \"post_id\": 36266,\n    \"forum_id\": 0,\n    \"mentor_group_id\": 0,\n    \"sme_group_id\": 0,\n    \"external_identifier\": \"pt-emp\",\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"leads\": [],\n    \"members\": [\n        {\n            \"id\": 978,\n            \"name\": \"John Smith\",\n            \"external_identifier\": \"\"\n        }\n    ]\n}"}],"_postman_id":"65b926ce-f65f-44cc-ae18-08c38bbe2929"},{"name":"List All Groups","id":"1a809b60-6e6b-4815-879d-92a8db33f1cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups","description":"<p>Returns an array of group objects</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","groups"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a809b60-6e6b-4815-879d-92a8db33f1cc"},{"name":"Retrieve Group","id":"82c7e786-6aae-43ad-b514-7aadd6e7ab9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups/1","description":"<p>Updates an existing group (referenced by the group ID), returns the updated group object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/groups/{id}</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","groups","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"82c7e786-6aae-43ad-b514-7aadd6e7ab9f"},{"name":"Retrieve Group by External ID","id":"74ef53ba-a390-4a40-ac86-78af386dbdad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups/abcd-1234/external","description":"<p>Updates an existing group (referenced by the external_identifier), returns the updated group object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/groups/{external_identifier}/external</p>\n</blockquote>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","groups","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"74ef53ba-a390-4a40-ac86-78af386dbdad"},{"name":"Update Group","id":"a19e234f-c4c3-4af3-9fa3-06c966fc981c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Group name</p>\n","disabled":true},{"key":"description","value":"About the group","type":"text","description":"<p>Description of the group</p>\n","disabled":true},{"key":"members","value":"","type":"text","description":"<p>Comma separated list of user IDs to assign as group members.\nGroup members can be removed by leaving them off the list.\nAn empty value will remove all group members.\nIf no changes are required, either pass the existing IDs or do not pass \"members\" in the request.</p>\n","disabled":true},{"key":"features","value":"","type":"text","description":"<p>Comma separated list of features for the group, any of: \"learning\", \"cycle\"</p>\n","disabled":true},{"key":"cycle_start_date","value":"","type":"text","description":"<p>External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"cycle_end_date","value":"","type":"text","description":"<p>External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups/1","description":"<p>Updates an existing group (referenced by the group ID), returns the updated group object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/groups/{id}</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Group name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the group</td>\n</tr>\n<tr>\n<td>parent_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>Parent group's ID</td>\n</tr>\n<tr>\n<td>leads</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as group leads. Group leads can be removed by leaving them off the list. An empty value will remove all group leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</td>\n</tr>\n<tr>\n<td>members</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as group members. Group members can be removed by leaving them off the list. An empty value will remove all group members. If no changes are required, either pass the existing IDs or do not pass \"members\" in the request.</td>\n</tr>\n<tr>\n<td>features</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of features for the group, any of: <br />\"learning\"<br />\"cycle\"</td>\n</tr>\n<tr>\n<td>cycle_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>External cycle ID associated with the group</td>\n</tr>\n<tr>\n<td>cycle_start_date</td>\n<td>date</td>\n<td>10</td>\n<td>No</td>\n<td>External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>cycle_end_date</td>\n<td>date</td>\n<td>10</td>\n<td>No</td>\n<td>External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>cycle_number</td>\n<td>integer</td>\n<td>4</td>\n<td>No</td>\n<td>External cycle number</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","groups","1"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"4cc5e0a9-0f30-47dc-8f2c-0eb64e8ed91e","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Group name","disabled":true},{"key":"description","value":"About the group","type":"text","description":"Description of the group","disabled":true},{"key":"parent_id","value":"0","type":"text","description":"Parent group's ID","disabled":true},{"key":"leads","value":"","type":"text","description":"Comma separated list of user IDs to assign as group leads.\nGroup leads can be removed by leaving them off the list.\nAn empty value will remove all group leads.\nIf no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.","disabled":true},{"key":"members","value":"","type":"text","description":"Comma separated list of user IDs to assign as group members.\nGroup members can be removed by leaving them off the list.\nAn empty value will remove all group members.\nIf no changes are required, either pass the existing IDs or do not pass \"members\" in the request.","disabled":true},{"key":"features","value":"learning, cycle","type":"text","description":"Comma separated list of features for the group, any of: \"learning\", \"cycle\""},{"key":"cycle_id","value":"","type":"text","description":"External cycle ID associated with the group","disabled":true},{"key":"cycle_start_date","value":"","type":"text","description":"External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_end_date","value":"","type":"text","description":"External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_number","value":"","description":"External cycle number","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups/15"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:47:20 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDc9728d696ae355e3a15bbfb68cbd5257"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 15,\n    \"name\": \"Astronaut Interns\",\n    \"description\": \"Summer interns for astronaut program\",\n    \"parent_name\": \"\",\n    \"features\": \"learning, cycle\",\n    \"cycle_start_date\": \"2020-06-01\",\n    \"cycle_end_date\": \"2020-08-31\",\n    \"cycle_number\": 62020,\n    \"post_id\": 36301,\n    \"forum_id\": 0,\n    \"mentor_group_id\": 0,\n    \"sme_group_id\": 0,\n    \"external_identifier\": \"astro-intern\",\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"leads\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"external_identifier\": \"emp-4815162342\"\n        }\n    ],\n    \"members\": []\n}"},{"id":"cc4bdbcd-d999-47e7-9199-0529c6f558b1","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Group name","disabled":true},{"key":"description","value":"About the group","type":"text","description":"Description of the group","disabled":true},{"key":"parent_id","value":"0","type":"text","description":"Parent group's ID","disabled":true},{"key":"leads","value":"","type":"text","description":"Comma separated list of user IDs to assign as group leads.\nGroup leads can be removed by leaving them off the list.\nAn empty value will remove all group leads.\nIf no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.","disabled":true},{"key":"members","value":"985","type":"text","description":"Comma separated list of user IDs to assign as group members.\nGroup members can be removed by leaving them off the list.\nAn empty value will remove all group members.\nIf no changes are required, either pass the existing IDs or do not pass \"members\" in the request."},{"key":"features","value":"","type":"text","description":"Comma separated list of features for the group, any of: \"learning\", \"cycle\"","disabled":true},{"key":"cycle_id","value":"","type":"text","description":"External cycle ID associated with the group","disabled":true},{"key":"cycle_start_date","value":"","type":"text","description":"External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_end_date","value":"","type":"text","description":"External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_number","value":"","description":"External cycle number","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:52:05 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDd46a908cd3a2db2992be2a4631188e54"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"name\": \"Aerospace Interns\",\n    \"description\": \"Summer interns for aerospace engineering\",\n    \"parent_name\": \"\",\n    \"features\": \"learning\",\n    \"cycle_start_date\": null,\n    \"cycle_end_date\": null,\n    \"cycle_number\": 0,\n    \"post_id\": 36296,\n    \"forum_id\": 0,\n    \"mentor_group_id\": 0,\n    \"sme_group_id\": 0,\n    \"external_identifier\": \"spx-intern\",\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"leads\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"external_identifier\": \"emp-4815162342\"\n        }\n    ],\n    \"members\": [\n        {\n            \"id\": 985,\n            \"name\": \"Jeff Bezos\",\n            \"external_identifier\": \"jbezos\"\n        }\n    ]\n}"}],"_postman_id":"a19e234f-c4c3-4af3-9fa3-06c966fc981c"},{"name":"Update Group by External ID","id":"84dd6e8b-15d8-4ab7-8c6d-b9a28f947a01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"<p>Group name</p>\n","disabled":true},{"key":"description","value":"About the group","type":"text","description":"<p>Description of the group</p>\n","disabled":true},{"key":"members","value":"","type":"text","description":"<p>Comma separated list of user IDs to assign as group members.\nGroup members can be removed by leaving them off the list.\nAn empty value will remove all group members.\nIf no changes are required, either pass the existing IDs or do not pass \"members\" in the request.</p>\n","disabled":true},{"key":"features","value":"","type":"text","description":"<p>Comma separated list of features for the group, any of: \"learning\", \"cycle\"</p>\n","disabled":true},{"key":"cycle_start_date","value":"","type":"text","description":"<p>External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"cycle_end_date","value":"","type":"text","description":"<p>External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)</p>\n","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"<p>UUID for 3rd party identification</p>\n","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups/abcd-1234/external","description":"<p>Updates an existing group (referenced by the external_identifier), returns the updated group object with formatted data</p>\n<h2 id=\"usage\">Usage</h2>\n<blockquote>\n<p>/groups/{external_identifier}/external</p>\n</blockquote>\n<h1 id=\"arguments\">Arguments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>200</td>\n<td>No, unless passing \"name\" in the request, then it cannot be empty</td>\n<td>Group name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>65,535</td>\n<td>No</td>\n<td>Description of the group</td>\n</tr>\n<tr>\n<td>parent_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>Parent group's ID</td>\n</tr>\n<tr>\n<td>leads</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as group leads. Group leads can be removed by leaving them off the list. An empty value will remove all group leads. If no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.</td>\n</tr>\n<tr>\n<td>members</td>\n<td>integer(s)</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of user IDs to assign as group members. Group members can be removed by leaving them off the list. An empty value will remove all group members. If no changes are required, either pass the existing IDs or do not pass \"members\" in the request.</td>\n</tr>\n<tr>\n<td>features</td>\n<td>string</td>\n<td></td>\n<td>No</td>\n<td>Comma separated list of features for the group, any of: <br />\"learning\"<br />\"cycle\"</td>\n</tr>\n<tr>\n<td>cycle_id</td>\n<td>integer</td>\n<td>11</td>\n<td>No</td>\n<td>External cycle ID associated with the group</td>\n</tr>\n<tr>\n<td>cycle_start_date</td>\n<td>date</td>\n<td>10</td>\n<td>No</td>\n<td>External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>cycle_end_date</td>\n<td>date</td>\n<td>10</td>\n<td>No</td>\n<td>External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>cycle_number</td>\n<td>integer</td>\n<td>4</td>\n<td>No</td>\n<td>External cycle number</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>50</td>\n<td>No</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","groups","abcd-1234","external"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[{"id":"3009495a-19fd-4c59-82a1-9493bbd545c8","name":"Example #1","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Group name","disabled":true},{"key":"description","value":"About the group","type":"text","description":"Description of the group","disabled":true},{"key":"parent_id","value":"0","type":"text","description":"Parent group's ID","disabled":true},{"key":"leads","value":"","type":"text","description":"Comma separated list of user IDs to assign as group leads.\nGroup leads can be removed by leaving them off the list.\nAn empty value will remove all group leads.\nIf no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.","disabled":true},{"key":"members","value":"985","type":"text","description":"Comma separated list of user IDs to assign as group members.\nGroup members can be removed by leaving them off the list.\nAn empty value will remove all group members.\nIf no changes are required, either pass the existing IDs or do not pass \"members\" in the request."},{"key":"features","value":"","type":"text","description":"Comma separated list of features for the group, any of: \"learning\", \"cycle\"","disabled":true},{"key":"cycle_id","value":"","type":"text","description":"External cycle ID associated with the group","disabled":true},{"key":"cycle_start_date","value":"","type":"text","description":"External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_end_date","value":"","type":"text","description":"External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_number","value":"","description":"External cycle number","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups/astro-intern/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:48:49 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDfb3f7b7eb65a616b9bf3d21d02feae6f"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 15,\n    \"name\": \"Astronaut Interns\",\n    \"description\": \"Summer interns for astronaut program\",\n    \"parent_name\": \"\",\n    \"features\": \"learning, cycle\",\n    \"cycle_start_date\": \"2020-06-01\",\n    \"cycle_end_date\": \"2020-08-31\",\n    \"cycle_number\": 62020,\n    \"post_id\": 36301,\n    \"forum_id\": 0,\n    \"mentor_group_id\": 0,\n    \"sme_group_id\": 0,\n    \"external_identifier\": \"astro-intern\",\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"leads\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"external_identifier\": \"emp-4815162342\"\n        }\n    ],\n    \"members\": [\n        {\n            \"id\": 985,\n            \"name\": \"Jeff Bezos\",\n            \"external_identifier\": \"jbezos\"\n        }\n    ]\n}"},{"id":"5ff51945-2769-4324-b901-d91fe6ac03cb","name":"Example #2","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Testing","type":"text","description":"Group name","disabled":true},{"key":"description","value":"About the group","type":"text","description":"Description of the group","disabled":true},{"key":"parent_id","value":"0","type":"text","description":"Parent group's ID","disabled":true},{"key":"leads","value":"","type":"text","description":"Comma separated list of user IDs to assign as group leads.\nGroup leads can be removed by leaving them off the list.\nAn empty value will remove all group leads.\nIf no changes are required, either pass the existing IDs or do not pass \"leads\" in the request.","disabled":true},{"key":"members","value":"","type":"text","description":"Comma separated list of user IDs to assign as group members.\nGroup members can be removed by leaving them off the list.\nAn empty value will remove all group members.\nIf no changes are required, either pass the existing IDs or do not pass \"members\" in the request.","disabled":true},{"key":"features","value":"learning, cycle","type":"text","description":"Comma separated list of features for the group, any of: \"learning\", \"cycle\""},{"key":"cycle_id","value":"","type":"text","description":"External cycle ID associated with the group","disabled":true},{"key":"cycle_start_date","value":"","type":"text","description":"External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_end_date","value":"","type":"text","description":"External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)","disabled":true},{"key":"cycle_number","value":"","description":"External cycle number","type":"text","disabled":true},{"key":"external_identifier","value":"abcd-1234","type":"text","description":"UUID for 3rd party identification","disabled":true}]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/groups/spx-intern/external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 19 Jan 2021 17:53:12 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"X-WP-DoingItWrong","value":"register_rest_route (since 5.5.0; The REST API route definition for <code>toolset/v2/search-posts</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.)"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"Link","value":"<https://test.stiles.expectancylearning.com/wp-json/>; rel=\"https://api.w.org/\""},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Access-Control-Expose-Headers","value":"X-WP-Total, X-WP-TotalPages, Link"},{"key":"Access-Control-Allow-Headers","value":"Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type"},{"key":"Allow","value":"GET, POST, PUT, PATCH"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-Edge-Location-Klb","value":"KyPk0KoJXpgIH03kqd7i25QDcf977ff1bf4ec6db3c461c6175f51d88"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"name\": \"Aerospace Interns\",\n    \"description\": \"Summer interns for aerospace engineering\",\n    \"parent_name\": \"\",\n    \"features\": \"learning, cycle\",\n    \"cycle_start_date\": null,\n    \"cycle_end_date\": null,\n    \"cycle_number\": 0,\n    \"post_id\": 36296,\n    \"forum_id\": 0,\n    \"mentor_group_id\": 0,\n    \"sme_group_id\": 0,\n    \"external_identifier\": \"spx-intern\",\n    \"parent\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"external_identifier\": \"\"\n    },\n    \"leads\": [\n        {\n            \"id\": 981,\n            \"name\": \"Elon Musk\",\n            \"external_identifier\": \"emp-4815162342\"\n        }\n    ],\n    \"members\": [\n        {\n            \"id\": 985,\n            \"name\": \"Jeff Bezos\",\n            \"external_identifier\": \"jbezos\"\n        }\n    ]\n}"}],"_postman_id":"84dd6e8b-15d8-4ab7-8c6d-b9a28f947a01"}],"id":"0b7af252-7e6e-494d-aed1-7bb594dcfa7f","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of a returned group object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Unique ID for the group</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Group name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Group description</td>\n</tr>\n<tr>\n<td>parent</td>\n<td>object</td>\n<td>Data for a parent group</td>\n</tr>\n<tr>\n<td>parent.id</td>\n<td>integer</td>\n<td>ID of the parent group (0 if the group has no parent)</td>\n</tr>\n<tr>\n<td>parent.name</td>\n<td>string</td>\n<td>Name of the parent group</td>\n</tr>\n<tr>\n<td>leads</td>\n<td>array</td>\n<td>User data for each group lead</td>\n</tr>\n<tr>\n<td>lead.id (for each lead)</td>\n<td>integer</td>\n<td>User ID of the group lead</td>\n</tr>\n<tr>\n<td>lead.name (for each lead)</td>\n<td>string</td>\n<td>Name of the group lead</td>\n</tr>\n<tr>\n<td>members</td>\n<td>array</td>\n<td>User data for each group member</td>\n</tr>\n<tr>\n<td>member.id (for each member)</td>\n<td>integer</td>\n<td>User ID of the group member</td>\n</tr>\n<tr>\n<td>member.name (for each member)</td>\n<td>string</td>\n<td>Name of the group member</td>\n</tr>\n<tr>\n<td>features</td>\n<td>string</td>\n<td>Comma separated list of features for the group, any of: <br />\"learning\"<br />\"cycle\"</td>\n</tr>\n<tr>\n<td>cycle_id</td>\n<td>integer</td>\n<td>External cycle ID associated with the group</td>\n</tr>\n<tr>\n<td>cycle_start_date</td>\n<td>date</td>\n<td>External cycle start date, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>cycle_end_date</td>\n<td>date</td>\n<td>External cycle end date, formatted as \"yyyy-mm-dd\" (UTC)</td>\n</tr>\n<tr>\n<td>cycle_number</td>\n<td>integer</td>\n<td>External cycle number</td>\n</tr>\n<tr>\n<td>external_identifier</td>\n<td>string</td>\n<td>UUID for 3rd party identification</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"a8da7a0d-07ef-4d23-b791-57cb36adbed6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"aa974bcd-91ea-490a-91f9-269ddb1efbaa","type":"text/javascript","exec":[""]}}],"_postman_id":"0b7af252-7e6e-494d-aed1-7bb594dcfa7f","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}},{"name":"Settings","item":[{"name":"Regenerate API Key","event":[{"listen":"test","script":{"id":"dfb5e7a2-5170-4493-91fa-2e20b7b1f5b4","exec":["// fill the newly generated API key in the current environment\r","let response = JSON.parse(pm.response.text());\r","if (response.hasOwnProperty('key')) {\r","    pm.environment.set(\"apiKey\", response.key);\r","}"],"type":"text/javascript"}}],"id":"4064c40e-a99e-4593-97d5-c21b3c883ebe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://www.YourPortalURL.com/wp-json/xy/v2/settings/apikey/regenerate","description":"<p>Generates and returns a new API key. Be sure to save this key, as the old key will be immediately invalidated.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}},"urlObject":{"path":["wp-json/xy/v2","settings","apikey","regenerate"],"host":["https://www.YourPortalURL.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4064c40e-a99e-4593-97d5-c21b3c883ebe"}],"id":"f67adecb-e037-4921-9362-bfd203e69c36","description":"<h1 id=\"schema\">Schema</h1>\n<p>The schema describes the format of a returned API key.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>key</td>\n<td>string</td>\n<td>API key</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"3b925a19-1e02-4974-abea-779cb406d794","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"59dfbde5-7f74-4247-9292-b2e0b3ff3d2c","type":"text/javascript","exec":[""]}}],"_postman_id":"f67adecb-e037-4921-9362-bfd203e69c36","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]},"isInherited":true,"source":{"_postman_id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","id":"266b6657-5ccd-4944-8b5b-8f60e5516e45","name":"XY REST API v2","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"your-api-key"}]}},"event":[{"listen":"prerequest","script":{"id":"a2d0b280-f8cb-4e36-98eb-244b621596dd","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"9441c54d-9171-41ff-95ab-007b09fdf740","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"apiKey","value":"your-api-key"},{"key":"host","value":"https://www.YourPortalURL.com"},{"key":"base","value":"wp-json/xy/v2"},{"key":"apiRef","value":"x-api-key"}]}