{"info":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","description":"<html><head></head><body><h1 id=\"overview\">Overview</h1>\n<p>eMaint X4 API v2 extends the capabilities of the original API:</p>\n<ul>\n<li><p>generated access tokens are now in JWT format</p>\n</li>\n<li><p>new web methods extends the capabilities of the API</p>\n</li>\n<li><p>proper status codes returned</p>\n</li>\n<li><p>response format now being driven by <code>Accept</code> header variable</p>\n</li>\n<li><p>/GetAnyData now supports joining to related tables</p>\n</li>\n</ul>\n<h1 id=\"whom-is-this-document-for\">Whom is this document for?</h1>\n<p>Developers</p>\n<h1 id=\"status-codes\">Status Codes</h1>\n<p>HTTP Status Codes with their definitions</p>\n<h3 id=\"success-codes\">Success Codes</h3>\n<p>The following status codes are expected whenever the request is successfully processed.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Text</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n<td>The request has succeeded.</td>\n</tr>\n<tr>\n<td>201</td>\n<td>Created</td>\n<td>The request has been fulfilled and has resulted in one or more new resources being created.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<p>The following status codes are expected whenever the request fails. Some requests try to operate over multiple entities and/or multiple records - in this scenario error response code is returned if the operation fails to at least one of the items in the submitted payload.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Text</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n<td>The server cannot or will not process the request due to something that is perceived to be a client error</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n<td>The request has not been applied because it lacks valid authentication credentials for the target resource.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</td>\n</tr>\n<tr>\n<td>405</td>\n<td>Not Allowed</td>\n<td>The method is not yet implemented or is not allowed</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error</td>\n<td>The server encountered an unexpected condition that prevented it from fulfilling the request.</td>\n</tr>\n<tr>\n<td>503</td>\n<td>Service Unavailable</td>\n<td>The server is not ready to handle the request.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"media-types\">Media Types</h1>\n<p>The following list describes all media types supported by the eMaint X4 API v2.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>application/json</td>\n<td>Supported as content-type as well as accepted output</td>\n</tr>\n<tr>\n<td>application/xml</td>\n<td>Supported as accepted output only</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"authentication\">Authentication</h1>\n<p>This API supports two authentication schemes: <a href=\"#introduction/authentication/http-basic-authentication\">HTTP Basic Authentication</a> and <a href=\"#introduction/authentication/jwt-token-authentication\">JWT Token Authentication</a>.</p>\n<h2 id=\"http-basic-authentication\">HTTP Basic Authentication</h2>\n<p>HTTP Basic Authentication can be used for non-interactive machine-to-machine communication with eMaint X4.</p>\n<p>To setup HTTP Basic Authentication include the standard <code>Authorization</code> HTTP header in every request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Basic &lt;token&gt;\n\n</code></pre><p>Where is <code>:</code> encoded in <a href=\"https://en.wikipedia.org/wiki/Base64\">Base64</a>.</p>\n<p>For example for:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>    username: jsmith\n    password: secret    \n\n</code></pre><p>The raw (unencoded) is: <code>jsmith:secret</code> and the resuting <code>Authorization</code> header is:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Basic *******************\n\n</code></pre><h2 id=\"jwt-token-authentication\">JWT Token Authentication</h2>\n<p>Authentication with JWT token is more secure and also can be used for non-interactive machine-to-machine communication with eMaint X4. Generated tokens are valid for 7 days and are paired with the <code>Xt-UserAgent</code> header variable that was used to generate the token. Therefore you have to always specify not just the token but also the same <code>Xt-UserAgent</code> in the header of each subsequent API call.</p>\n<p>Contact Support:<br>Email: <a href=\"https://mailto:support@emaint.com\">support@emaint.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"Whom is this document for?","slug":"whom-is-this-document-for"},{"content":"Status Codes","slug":"status-codes"},{"content":"Media Types","slug":"media-types"},{"content":"Authentication","slug":"authentication"}],"owner":"17558505","collectionId":"920169ff-5dd3-4a7f-8537-fff78cc25514","publishedId":"2sB2j3Ar6b","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-05-07T13:01:41.000Z"},"item":[{"name":"Generate Auth Token","item":[{"name":"with JWT Token","id":"23ead119-5d20-40ca-80dc-b7e21f426614","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"username","value":"","description":"<p>(Required) The user name for login</p>\n"},{"key":"password","value":"","description":"<p>(Required) The password for login in clear text</p>\n"},{"key":"XT-UserAgent","value":"","description":"<p>(Required) free text, the login token generated would be mapped to the user agent specified; same user agent id must present in subsequent calls</p>\n"}],"url":"https://x46.emaint.com/api/v2/GetLoginToken","description":"<p>GetLoginToken may be called from any server in the same environment, but all other methods must be called from the server provided in the “serverUrl” value. Use this token as part of request Authorization header for subsequent requests</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["GetLoginToken"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"034192fa-d157-4150-8a61-d9a85f8fc794","name":"successful operation","originalRequest":{"method":"GET","header":[{"key":"username","value":"{{USERNAME}}","description":"(Required) The user name for login"},{"key":"password","value":"{{PASSWORD}}","description":"(Required) The password for login in clear text"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}","description":"(Required) free text, the login token generated would be mapped to the user agent specified; same user agent id must present in subsequent calls"}],"url":"https://x46.emaint.com/api/v2/getLoginToken"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"\",\n    \"token\": \"jwt token here\",\n    \"serverUrl\": \"https://testx42.emaint.com/\"\n}"},{"id":"3b4ce1f7-95aa-46a0-af80-2cd25ef1737f","name":"Authentication failure","originalRequest":{"method":"GET","header":[{"key":"username","value":"{{USERNAME}}","description":"(Required) The user name for login"},{"key":"password","value":"{{PASSWORD}}","description":"(Required) The password for login in clear text"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}","description":"(Required) free text, the login token generated would be mapped to the user agent specified; same user agent id must present in subsequent calls"}],"url":"https://x46.emaint.com/api/v2/getLoginToken"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": \"minim\",\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"23ead119-5d20-40ca-80dc-b7e21f426614"}],"id":"0cce96bc-408c-4fba-81fe-02ce01dee26a","_postman_id":"0cce96bc-408c-4fba-81fe-02ce01dee26a","description":"","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"Query database","item":[{"name":"Query table subset","event":[{"listen":"test","script":{"id":"21306cf7-9cf3-474b-9aa9-d107d713ceeb","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response Content-Type header is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","","pm.test(\"Data array is present in the response\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData.data).to.exist.and.to.be.an('array');","});","","pm.test(\"Data array is not empty\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData.data.length).to.be.above(0);","});","","pm.test(\"Valid property is true\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData.valid).to.be.true;","});","","pm.test(\"The data object must exist and be an array\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.exist.and.to.be.an('array');","});",""],"type":"text/javascript","packages":{}}}],"id":"308d25fb-f0b8-40f9-b708-62dcbaffc84f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"POSTMAN","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"columns\": \"WO,WO_TYPE,DATE_WO,ADDDATE,TIME,ADDUSER,COMPID\",\n    \"filter\": {\n        \"logic\": \"and\",\n        \"filters\": [\n            {\n                \"field\": \"WO_TYPE\",\n                \"operator\": \"neq\",\n                \"value\": \"PM\"\n            },\n            {\n                \"table\": \"work\",\n                \"field\": \"adddate\",\n                \"operator\": \"gte\",\n                \"entryas\": \"expression\",\n                \"value\": \"DATE()-30\"\n            }\n        ]\n    },   \n    \"sortBy\": [\n        {\n            \"field\": \"compid\",\n            \"dir\": \"desc\"\n        }\n    ],\n    \"count\": 10,\n    \"offset\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/getAnyData","description":"<h3 id=\"description\">Description</h3>\n<p>Return the result of a query based on parameters passed which defines:</p>\n<ul>\n<li><p>Table name</p>\n</li>\n<li><p>Columns listed</p>\n</li>\n<li><p>Filter applied</p>\n</li>\n<li><p>Sorted columns and directions</p>\n</li>\n<li><p>Page number</p>\n</li>\n<li><p>Join to related tables</p>\n</li>\n<li><p>Group by clause</p>\n</li>\n<li><p>Page size (must be used in combination with Page number)</p>\n</li>\n<li><p>Offset</p>\n</li>\n<li><p>Count (must be used in combination with Offset)</p>\n</li>\n<li><p>Object Structure ID (advanced usage)</p>\n</li>\n</ul>\n<h4 id=\"remarks\">Remarks</h4>\n<ul>\n<li><p>Object structure metadata can be specified as a header variable <code>output-data-structure</code> . The value must be stringified JSON string.</p>\n</li>\n<li><p>If you specify <code>columns</code> and <code>objectId</code> , the columns property is getting ignored</p>\n</li>\n<li><p>limiting the number of records returned is done either with <code>pageNumber</code> and <code>pageSize</code> or with <code>offset</code> and <code>count</code></p>\n</li>\n</ul>\n<h5 id=\"how-to-filter-the-amount-of-data-returned\">How to filter the amount of data returned?</h5>\n<p>There are few ways to filter the amount of data to return via /GetAnyData API call:</p>\n<ul>\n<li><p>using a filter</p>\n</li>\n<li><p>page number and page size</p>\n</li>\n<li><p>offset and count</p>\n</li>\n</ul>\n<p>To filter out the data you wish to extract from your database you have to know the criteria you want to use. For example, in Work Orders table you may want to collect information about the \"open\" work orders only. Therefore, your filter will look like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"filter\": {\n    \"logic\": \"and\",\n    \"filters\": [\n        {\n            \"field\": \"WORKSTATUS\",\n            \"operator\": \"eq\",\n            \"value\": \"O\"\n        }\n    ]\n}\n\n</code></pre>\n<p>The main property is called <code>filter</code> and contains the <code>logic</code> (AND or OR) and the criteria listed in <code>filters</code> array. The filters array may contain multiple clauses combined according to the logic selected.</p>\n<h5 id=\"operators\">Operators</h5>\n<ul>\n<li><p>equal to - <code>eq</code>, <code>==</code></p>\n</li>\n<li><p>not equal to - <code>neq</code>, <code>!=</code></p>\n</li>\n<li><p>is greater than - <code>gt</code>, <code>&gt;</code></p>\n</li>\n<li><p>is greater than or equal to - <code>gte</code>, <code>&gt;=</code></p>\n</li>\n<li><p>is less than - <code>lt</code>, <code>&lt;</code></p>\n</li>\n<li><p>is less than or equal to - <code>lte</code>, <code>&lt;</code></p>\n</li>\n<li><p>value starts with - <code>startswith</code></p>\n</li>\n<li><p>value not starts with - <code>notstartswith</code></p>\n</li>\n<li><p>value ends with - <code>endswith</code></p>\n</li>\n<li><p>value not ends with - <code>notendswith</code></p>\n</li>\n<li><p>value contains - <code>contains</code></p>\n</li>\n<li><p>value does not contain - <code>notcontains</code></p>\n</li>\n<li><p>value contain at least one of the provided words - <code>containany</code></p>\n<ul>\n<li>example: \"first second third\" - will return records which contain \"first\" or \"second\" or \"third\" word</li>\n</ul>\n</li>\n<li><p>value contain all provided words</p>\n<ul>\n<li>example \"first second third\" - will return records which contain all words in any order, i.e \"second any third and first\" will be found</li>\n</ul>\n</li>\n<li><p>value is empty - <code>isempty</code></p>\n</li>\n<li><p>value is not empty - <code>notisempty</code></p>\n</li>\n<li><p>value is null - <code>isnull</code></p>\n</li>\n<li><p>value is not null - <code>notisnull</code></p>\n</li>\n<li><p>is between provided <code>value</code> and <code>value2</code> - between</p>\n</li>\n<li><p>is not between provided <code>value</code> and <code>value2</code> - notbetween</p>\n</li>\n</ul>\n<h5 id=\"how-to-join-2-tables-together\">How to join 2 tables together?</h5>\n<p>To join 2 tables together add <code>join</code> property to the payload. The main <code>table</code> is then joined to the table you provide into the property. There are 3 types of joins supported:</p>\n<ul>\n<li><p>LEFT - retrieves all records from the main <code>table</code> and the matched records from the \"joined\" table, returning NULL values for unmatched records in the joined table</p>\n</li>\n<li><p>INNER - retrieves only the matched records between the main <code>table</code> table and the \"joined\" table</p>\n</li>\n<li><p>RIGHT - retrieves all records from the joined table and the matched records from the left table, returning NULL values for unmatched records in the main <code>table</code><br />  The joined table is matched according to the predefined relationship in Data Dictionary.</p>\n</li>\n</ul>\n<p>Usage exmple:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"join\": {\n    \"joinwith\": [\n        {\n            \"dd_dbf\": \"WORK\",\n            \"jointype\": \"INNER\"\n        }\n    ]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["getAnyData"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"5e7560ee-8b60-4497-aaf7-4ebdd4cbf77b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{vault:x4-api-token}}","description":"Added as a part of security scheme: bearer"},{"key":"output-data-structure","value":"{\"joinwith\":[{\"columns\":[{\"name\":\"COMPID\"},{\"name\":\"COMP_DESC\"},{\"name\":\"BUILDING\"},{\"name\":\"FLR_LEVEL\"},{\"name\":\"ROOM_SPCE\"}],\"dd_dbf\":\"COMPINFO\"},{\"filter\":{\"field\":\"ctype\",\"value\":\"LAB\",\"operator\":\"eq\"},\"joinwith\":[{\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"FULLNAME\"},{\"name\":\"EMAIL\"}],\"dd_dbf\":\"CONTACT\"}],\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"TRANDATE\"},{\"name\":\"LAB_START\"},{\"name\":\"COMMENT\"},{\"name\":\"LAB_STOP\"},{\"name\":\"QTY\"},{\"name\":\"TRANID\"},{\"name\":\"SCHADASSID\"}],\"alias\":\"LABTRANS\",\"dd_dbf\":\"CHARGES\"},{\"filter\":{\"field\":\"ctype\",\"value\":\"MAT\",\"operator\":\"eq\"},\"joinwith\":[{\"columns\":[{\"name\":\"ITEM\"},{\"name\":\"DESCRIP\"}],\"dd_dbf\":\"ARINVT01\"},{\"columns\":[{\"name\":\"INV_NO\"},{\"name\":\"INVLOC\"}],\"dd_dbf\":\"ICJOURNL\"}],\"columns\":[{\"name\":\"ITEM\"},{\"name\":\"CATEGORY\"},{\"name\":\"TRANDATE\"},{\"name\":\"ADDUSER\"},{\"name\":\"INVLOC\"},{\"name\":\"UNITCOST\"},{\"name\":\"QTY\"},{\"name\":\"COMMENT\"},{\"name\":\"TRANID\"},{\"name\":\"SCHADASSID\"}],\"alias\":\"MATUSETRANS\",\"dd_dbf\":\"CHARGES\"},{\"columns\":[{\"name\":\"CUID\"},{\"name\":\"TASK_DESC\"},{\"name\":\"TASKTEXT\"},{\"name\":\"STATUS\"},{\"name\":\"COMPID\"},{\"name\":\"WO\"},{\"name\":\"TASK_NO\"},{\"name\":\"READING\"},{\"name\":\"PROC_SEQ\"},{\"name\":\"CMWO\"},{\"name\":\"PFNARADIO\"},{\"name\":\"SCHADASSID\"}],\"dd_dbf\":\"WO_PROCS\"},{\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"DATE_SCH\"},{\"name\":\"STATUS\"},{\"name\":\"CUID\"},{\"name\":\"EST_HOURS\"},{\"name\":\"SCHADASSID\"},{\"name\":\"SIGNEDON\"}],\"alias\":\"ASSIGNMENT\",\"dd_dbf\":\"WOASSIGN\"},{\"columns\":[{\"name\":\"CUID\"},{\"name\":\"SCHADASSID\"},{\"name\":\"CDESC\"},{\"name\":\"MLINK\"}],\"alias\":\"DOCUMENTS\",\"dd_dbf\":\"WO_DOCS\"}],\"columns\":[{\"name\":\"WO\"},{\"name\":\"BRIEF_DESC\"},{\"name\":\"WORK_DESC\"},{\"name\":\"DATE_WO\"},{\"name\":\"TIME\"},{\"name\":\"WORKSTATUS\"},{\"name\":\"WO_TYPE\"},{\"name\":\"SCH_DATE\"},{\"name\":\"DATE_CMPL\"},{\"name\":\"PRIORITY\"},{\"name\":\"COMPID\"},{\"name\":\"COMP_DESC\"},{\"name\":\"DEPARTMENT\"},{\"name\":\"ADDUSER\"}]}","description":"stringified JSON format expected","disabled":true},{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"POSTMAN","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"columns\": \"WO,WO_TYPE,DATE_WO,ADDDATE,TIME,ADDUSER,COMPID\",\n    \"filter\": {\n        \"logic\": \"and\",\n        \"filters\": [\n            {\n                \"field\": \"WO_TYPE\",\n                \"operator\": \"neq\",\n                \"value\": \"PM\"\n            }\n        ]\n    },\n    \"sortBy\": [\n        {\n            \"field\": \"compid\",\n            \"dir\": \"desc\"\n        }\n    ],\n    \"count\": 10,\n    \"offset\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://x42.emaint.com/api/v2/getAnyData"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"\",\n    \"data\": {\n        \"WORK\": [\n            {\n                \"WO\": \"742\",\n                \"BRIEF_DESC\": \"CONVEYOR BELT GENERAL INSPECTION\",\n                \"WORK_DESC\": \"\",\n                \"DATE_WO\": \"2017-11-13T00:00:00.000Z\",\n                \"WORKSTATUS\": \"COMPLETE\",\n                \"WO_TYPE\": \"PM\",\n                \"COMPINFO\": {\n                    \"COMPID\": \"HL11150\",\n                    \"COMP_DESC\": \"Filler Empty Bottle Infeed Screw Conveyor\",\n                    \"BUILDING\": \"Main\",\n                    \"FLR_LEVEL\": \"Ground\",\n                    \"ROOM_SPCE\": \"100\"\n                },\n                \"WO_PROCS\": {\n                    \"data\": [\n                        {\n                            \"CUID\": \"_54D0I4U5K\",\n                            \"TASK_DESC\": \"A-1 Air Dryer, Refrigerated or Regenerative\",\n                            \"TASKTEXT\": \"\",\n                            \"STATUS\": \"\",\n                            \"COMPID\": \"\",\n                            \"WO\": \"742\",\n                            \"READING\": \"\",\n                            \"TASK_NO\": \"A-1\",\n                            \"PROC_SEQ\": \"1\",\n                            \"CMWO\": \"0\",\n                            \"PFNARADIO\": \"\",\n                            \"WPCOMMENTS\": \"\",\n                            \"SCHADASSID\": \"\"\n                        },\n                        {\n                            \"CUID\": \"_54D0I5B9V\",\n                            \"TASK_DESC\": \"A-2 Unitary, Heating and Cooling Unit\",\n                            \"TASKTEXT\": \"\",\n                            \"STATUS\": \"On Hold\",\n                            \"COMPID\": \"\",\n                            \"WO\": \"742\",\n                            \"READING\": \"\",\n                            \"TASK_NO\": \"A-2\",\n                            \"PROC_SEQ\": \"2\",\n                            \"CMWO\": \"0\",\n                            \"PFNARADIO\": \"\",\n                            \"WPCOMMENTS\": \"\",\n                            \"SCHADASSID\": \"\"\n                        }\n                    ],\n                    \"ASSIGNMENT\": {\n                        \"data\": [\n                            {\n                                \"CONTACTID\": \"BWDEMO\",\n                                \"DATE_SCH\": \"2017-12-10T00:00:00.000Z\",\n                                \"STATUS\": \"ASSIGNED\",\n                                \"CUID\": \"_52404S6OA\",\n                                \"EST_HOURS\": \"0.00\",\n                                \"SCHADASSID\": \"\",\n                                \"SIGNEDON\": \"\"\n                            }\n                        ]\n                    },\n                    \"DOCUMENTS\": {\n                        \"data\": []\n                    }\n                }\n            }\n        ]\n    }\n}"},{"id":"cf26306a-f8b2-41cb-95d8-2efef6604c0a","name":"My Open Work Orders - Basic example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{vault:x4-api-token}}","description":"Added as a part of security scheme: bearer"},{"key":"output-data-structure","value":"{\"joinwith\":[{\"columns\":[{\"name\":\"COMPID\"},{\"name\":\"COMP_DESC\"},{\"name\":\"BUILDING\"},{\"name\":\"FLR_LEVEL\"},{\"name\":\"ROOM_SPCE\"}],\"dd_dbf\":\"COMPINFO\"},{\"filter\":{\"field\":\"ctype\",\"value\":\"LAB\",\"operator\":\"eq\"},\"joinwith\":[{\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"FULLNAME\"},{\"name\":\"EMAIL\"}],\"dd_dbf\":\"CONTACT\"}],\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"TRANDATE\"},{\"name\":\"LAB_START\"},{\"name\":\"COMMENT\"},{\"name\":\"LAB_STOP\"},{\"name\":\"QTY\"},{\"name\":\"TRANID\"},{\"name\":\"SCHADASSID\"}],\"alias\":\"LABTRANS\",\"dd_dbf\":\"CHARGES\"},{\"filter\":{\"field\":\"ctype\",\"value\":\"MAT\",\"operator\":\"eq\"},\"joinwith\":[{\"columns\":[{\"name\":\"ITEM\"},{\"name\":\"DESCRIP\"}],\"dd_dbf\":\"ARINVT01\"},{\"columns\":[{\"name\":\"INV_NO\"},{\"name\":\"INVLOC\"}],\"dd_dbf\":\"ICJOURNL\"}],\"columns\":[{\"name\":\"ITEM\"},{\"name\":\"CATEGORY\"},{\"name\":\"TRANDATE\"},{\"name\":\"ADDUSER\"},{\"name\":\"INVLOC\"},{\"name\":\"UNITCOST\"},{\"name\":\"QTY\"},{\"name\":\"COMMENT\"},{\"name\":\"TRANID\"},{\"name\":\"SCHADASSID\"}],\"alias\":\"MATUSETRANS\",\"dd_dbf\":\"CHARGES\"},{\"columns\":[{\"name\":\"CUID\"},{\"name\":\"TASK_DESC\"},{\"name\":\"TASKTEXT\"},{\"name\":\"STATUS\"},{\"name\":\"COMPID\"},{\"name\":\"WO\"},{\"name\":\"TASK_NO\"},{\"name\":\"READING\"},{\"name\":\"PROC_SEQ\"},{\"name\":\"CMWO\"},{\"name\":\"PFNARADIO\"},{\"name\":\"SCHADASSID\"}],\"dd_dbf\":\"WO_PROCS\"},{\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"DATE_SCH\"},{\"name\":\"STATUS\"},{\"name\":\"CUID\"},{\"name\":\"EST_HOURS\"},{\"name\":\"SCHADASSID\"},{\"name\":\"SIGNEDON\"}],\"alias\":\"ASSIGNMENT\",\"dd_dbf\":\"WOASSIGN\"},{\"columns\":[{\"name\":\"CUID\"},{\"name\":\"SCHADASSID\"},{\"name\":\"CDESC\"},{\"name\":\"MLINK\"}],\"alias\":\"DOCUMENTS\",\"dd_dbf\":\"WO_DOCS\"}],\"columns\":[{\"name\":\"WO\"},{\"name\":\"BRIEF_DESC\"},{\"name\":\"WORK_DESC\"},{\"name\":\"DATE_WO\"},{\"name\":\"TIME\"},{\"name\":\"WORKSTATUS\"},{\"name\":\"WO_TYPE\"},{\"name\":\"SCH_DATE\"},{\"name\":\"DATE_CMPL\"},{\"name\":\"PRIORITY\"},{\"name\":\"COMPID\"},{\"name\":\"COMP_DESC\"},{\"name\":\"DEPARTMENT\"},{\"name\":\"ADDUSER\"}]}","description":"stringified JSON format expected","disabled":true},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"columns\": \"WO,WO_TYPE,DATE_WO,BRIEF_DESC,COMPID,COMP_DESC,STATTYPE\",\n    \"filter\": {\n        \"logic\": \"and\",\n        \"filters\": [\n            {\n                \"field\": \"WORKSTATUS\",\n                \"operator\": \"eq\",\n                \"value\": \"O\"\n            },\n            {                \n                \"field\": \"assignto\",\n                \"operator\": \"eq\",\n                \"value\": \"John Dow\"\n            }\n        ]\n    },\n    \"sortBy\": [\n        {\n            \"field\": \"wo\",\n            \"dir\": \"desc\"\n        }\n    ],\n    \"pageNumber\": 1,\n    \"pageSize\": 100\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/api/v2/getAnyData"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"\",\n    \"data\": {\n        \"WORK\": [\n            {\n                \"WO\": \"742\",\n                \"WO_TYPE\": \"PM\",\n                \"DATE_WO\": \"2017-11-13T00:00:00.000Z\",\n                \"BRIEF_DESC\": \"CONVEYOR BELT GENERAL INSPECTION\",\n                \"COMPID\": \"1000\",\n                \"COMP_DESC\": \"MOTOR\",                \n                \"STATTYPE\": \"COMPLETE\"                             \n            }\n        ]\n    }\n}"},{"id":"bd56626f-931f-48ed-bf15-536a46c34665","name":"Query with filter, join and group by clauses","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"output-data-structure","value":"{{JSON}}","description":"stringified JSON format expected","disabled":true},{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"POSTMAN","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"CHARGES\",\n    \"columns\": \"CHARGES.WO, SUM(QTY) as qty, SUM(EXTCOST) as extcost\",\n    \"pageNumber\": 1,\n    \"pageSize\": 1000,\n    \"filter\": {\n        \"logic\": \"and\",\n        \"filters\": [\n            {\n                \"field\": \"ctype\",\n                \"operator\": \"eq\",\n                \"value\": \"MAT\"\n            },\n            {                \n                \"field\": \"WORK__WORKSTATUS\",\n                \"operator\": \"eq\",\n                \"value\": \"O\"\n            }\n        ]\n    },\n    \"join\": {\n        \"joinwith\": [\n            {\n                \"dd_dbf\": \"WORK\",\n                \"jointype\": \"INNER\"\n            }\n        ]\n    },\n    \"sortBy\": [\n        {\n            \"field\": \"trandate\",\n            \"dir\": \"desc\"\n        }\n    ],\n    \"groupBy\": [\n        {\n            \"field\": \"work.wo\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/getAnyData"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"\",\n    \"data\": {\n        \"WORK\": [\n            {\n                \"WO\": \"742\",\n                \"BRIEF_DESC\": \"CONVEYOR BELT GENERAL INSPECTION\",\n                \"WORK_DESC\": \"\",\n                \"DATE_WO\": \"2017-11-13T00:00:00.000Z\",\n                \"WORKSTATUS\": \"COMPLETE\",\n                \"WO_TYPE\": \"PM\",\n                \"COMPINFO\": {\n                    \"COMPID\": \"HL11150\",\n                    \"COMP_DESC\": \"Filler Empty Bottle Infeed Screw Conveyor\",\n                    \"BUILDING\": \"Main\",\n                    \"FLR_LEVEL\": \"Ground\",\n                    \"ROOM_SPCE\": \"100\"\n                },\n                \"WO_PROCS\": {\n                    \"data\": [\n                        {\n                            \"CUID\": \"_54D0I4U5K\",\n                            \"TASK_DESC\": \"A-1 Air Dryer, Refrigerated or Regenerative\",\n                            \"TASKTEXT\": \"\",\n                            \"STATUS\": \"\",\n                            \"COMPID\": \"\",\n                            \"WO\": \"742\",\n                            \"READING\": \"\",\n                            \"TASK_NO\": \"A-1\",\n                            \"PROC_SEQ\": \"1\",\n                            \"CMWO\": \"0\",\n                            \"PFNARADIO\": \"\",\n                            \"WPCOMMENTS\": \"\",\n                            \"SCHADASSID\": \"\"\n                        },\n                        {\n                            \"CUID\": \"_54D0I5B9V\",\n                            \"TASK_DESC\": \"A-2 Unitary, Heating and Cooling Unit\",\n                            \"TASKTEXT\": \"\",\n                            \"STATUS\": \"On Hold\",\n                            \"COMPID\": \"\",\n                            \"WO\": \"742\",\n                            \"READING\": \"\",\n                            \"TASK_NO\": \"A-2\",\n                            \"PROC_SEQ\": \"2\",\n                            \"CMWO\": \"0\",\n                            \"PFNARADIO\": \"\",\n                            \"WPCOMMENTS\": \"\",\n                            \"SCHADASSID\": \"\"\n                        }\n                    ],\n                    \"ASSIGNMENT\": {\n                        \"data\": [\n                            {\n                                \"CONTACTID\": \"BWDEMO\",\n                                \"DATE_SCH\": \"2017-12-10T00:00:00.000Z\",\n                                \"STATUS\": \"ASSIGNED\",\n                                \"CUID\": \"_52404S6OA\",\n                                \"EST_HOURS\": \"0.00\",\n                                \"SCHADASSID\": \"\",\n                                \"SIGNEDON\": \"\"\n                            }\n                        ]\n                    },\n                    \"DOCUMENTS\": {\n                        \"data\": []\n                    }\n                }\n            }\n        ]\n    }\n}"},{"id":"f1626de8-5562-4d41-9782-38ee4c4cee5c","name":"Query with complex object structure in response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{vault:x4-api-token}}","description":"Added as a part of security scheme: bearer"},{"key":"output-data-structure","value":"{\"joinwith\":[{\"columns\":[{\"name\":\"COMPID\"},{\"name\":\"COMP_DESC\"},{\"name\":\"BUILDING\"},{\"name\":\"FLR_LEVEL\"},{\"name\":\"ROOM_SPCE\"}],\"dd_dbf\":\"COMPINFO\"},{\"filter\":{\"field\":\"ctype\",\"value\":\"LAB\",\"operator\":\"eq\"},\"joinwith\":[{\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"FULLNAME\"},{\"name\":\"EMAIL\"}],\"dd_dbf\":\"CONTACT\"}],\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"TRANDATE\"},{\"name\":\"LAB_START\"},{\"name\":\"COMMENT\"},{\"name\":\"LAB_STOP\"},{\"name\":\"QTY\"},{\"name\":\"TRANID\"},{\"name\":\"SCHADASSID\"}],\"alias\":\"LABTRANS\",\"dd_dbf\":\"CHARGES\"},{\"filter\":{\"field\":\"ctype\",\"value\":\"MAT\",\"operator\":\"eq\"},\"joinwith\":[{\"columns\":[{\"name\":\"ITEM\"},{\"name\":\"DESCRIP\"}],\"dd_dbf\":\"ARINVT01\"},{\"columns\":[{\"name\":\"INV_NO\"},{\"name\":\"INVLOC\"}],\"dd_dbf\":\"ICJOURNL\"}],\"columns\":[{\"name\":\"ITEM\"},{\"name\":\"CATEGORY\"},{\"name\":\"TRANDATE\"},{\"name\":\"ADDUSER\"},{\"name\":\"INVLOC\"},{\"name\":\"UNITCOST\"},{\"name\":\"QTY\"},{\"name\":\"COMMENT\"},{\"name\":\"TRANID\"},{\"name\":\"SCHADASSID\"}],\"alias\":\"MATUSETRANS\",\"dd_dbf\":\"CHARGES\"},{\"columns\":[{\"name\":\"CUID\"},{\"name\":\"TASK_DESC\"},{\"name\":\"TASKTEXT\"},{\"name\":\"STATUS\"},{\"name\":\"COMPID\"},{\"name\":\"WO\"},{\"name\":\"TASK_NO\"},{\"name\":\"READING\"},{\"name\":\"PROC_SEQ\"},{\"name\":\"CMWO\"},{\"name\":\"PFNARADIO\"},{\"name\":\"SCHADASSID\"}],\"dd_dbf\":\"WO_PROCS\"},{\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"DATE_SCH\"},{\"name\":\"STATUS\"},{\"name\":\"CUID\"},{\"name\":\"EST_HOURS\"},{\"name\":\"SCHADASSID\"},{\"name\":\"SIGNEDON\"}],\"alias\":\"ASSIGNMENT\",\"dd_dbf\":\"WOASSIGN\"},{\"columns\":[{\"name\":\"CUID\"},{\"name\":\"SCHADASSID\"},{\"name\":\"CDESC\"},{\"name\":\"MLINK\"}],\"alias\":\"DOCUMENTS\",\"dd_dbf\":\"WO_DOCS\"}],\"columns\":[{\"name\":\"WO\"},{\"name\":\"BRIEF_DESC\"},{\"name\":\"WORK_DESC\"},{\"name\":\"DATE_WO\"},{\"name\":\"TIME\"},{\"name\":\"WORKSTATUS\"},{\"name\":\"WO_TYPE\"},{\"name\":\"SCH_DATE\"},{\"name\":\"DATE_CMPL\"},{\"name\":\"PRIORITY\"},{\"name\":\"COMPID\"},{\"name\":\"COMP_DESC\"},{\"name\":\"DEPARTMENT\"},{\"name\":\"ADDUSER\"}]}","description":"stringified JSON format expected"},{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"POSTMAN","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",    \n    \"pageNumber\": 1,\n    \"pageSize\": 10,\n    \"filter\": {\n        \"logic\": \"and\",\n        \"filters\": [           \n            {                \n                \"field\": \"WORK__WORKSTATUS\",\n                \"operator\": \"eq\",\n                \"value\": \"O\"\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/getAnyData"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"\",\n    \"data\": {\n        \"WORK\": [\n            {\n                \"WO\": \"742\",\n                \"BRIEF_DESC\": \"CONVEYOR BELT GENERAL INSPECTION\",\n                \"WORK_DESC\": \"\",\n                \"DATE_WO\": \"2017-11-13T00:00:00.000Z\",\n                \"WORKSTATUS\": \"COMPLETE\",\n                \"WO_TYPE\": \"PM\",\n                \"COMPINFO\": {\n                    \"COMPID\": \"HL11150\",\n                    \"COMP_DESC\": \"Filler Empty Bottle Infeed Screw Conveyor\",\n                    \"BUILDING\": \"Main\",\n                    \"FLR_LEVEL\": \"Ground\",\n                    \"ROOM_SPCE\": \"100\"\n                },\n                \"WO_PROCS\": {\n                    \"data\": [\n                        {\n                            \"CUID\": \"_54D0I4U5K\",\n                            \"TASK_DESC\": \"A-1 Air Dryer, Refrigerated or Regenerative\",\n                            \"TASKTEXT\": \"\",\n                            \"STATUS\": \"\",\n                            \"COMPID\": \"\",\n                            \"WO\": \"742\",\n                            \"READING\": \"\",\n                            \"TASK_NO\": \"A-1\",\n                            \"PROC_SEQ\": \"1\",\n                            \"CMWO\": \"0\",\n                            \"PFNARADIO\": \"\",\n                            \"WPCOMMENTS\": \"\",\n                            \"SCHADASSID\": \"\"\n                        },\n                        {\n                            \"CUID\": \"_54D0I5B9V\",\n                            \"TASK_DESC\": \"A-2 Unitary, Heating and Cooling Unit\",\n                            \"TASKTEXT\": \"\",\n                            \"STATUS\": \"On Hold\",\n                            \"COMPID\": \"\",\n                            \"WO\": \"742\",\n                            \"READING\": \"\",\n                            \"TASK_NO\": \"A-2\",\n                            \"PROC_SEQ\": \"2\",\n                            \"CMWO\": \"0\",\n                            \"PFNARADIO\": \"\",\n                            \"WPCOMMENTS\": \"\",\n                            \"SCHADASSID\": \"\"\n                        }\n                    ],\n                    \"ASSIGNMENT\": {\n                        \"data\": [\n                            {\n                                \"CONTACTID\": \"BWDEMO\",\n                                \"DATE_SCH\": \"2017-12-10T00:00:00.000Z\",\n                                \"STATUS\": \"ASSIGNED\",\n                                \"CUID\": \"_52404S6OA\",\n                                \"EST_HOURS\": \"0.00\",\n                                \"SCHADASSID\": \"\",\n                                \"SIGNEDON\": \"\"\n                            }\n                        ]\n                    },\n                    \"DOCUMENTS\": {\n                        \"data\": []\n                    }\n                }\n            }\n        ]\n    }\n}"},{"id":"574cc8d5-d956-4184-812f-8e6d363600f4","name":"Unable to complete the operation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"POSTMAN","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"filter\": {\n        \"logic\": \"and\",\n        \"filters\": [\n            {\n                \"field\": \"WO_TYPE\",\n                \"operator\": \"neq\",\n                \"value\": \"PM\"\n            },\n            {\n                \"table\": \"compinfo\",\n                \"field\": \"comp_desc\",\n                \"operator\": \"startswith\",\n                \"value\": \"A\"\n            }\n        ]\n    },\n    \"join\": {\n        \"joinwith\": [\n            {\n                \"dd_dbf\": \"COMPINFO\"\n            }\n        ]\n    },\n    \"sortBy\": [\n        {\n            \"field\": \"compid1\",\n            \"dir\": \"desc\"\n        }\n    ],\n    \"pageNumber\": 1,\n    \"pageSize\": 10\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/getAnyData"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Page number must be higher than zero.\"\n}"},{"id":"b7247c49-fe99-4678-89e4-01ad97818ee2","name":"Authentication failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{vault:x4-api-token}}","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"BAD_AGENT","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"columns\": \"WO, WO_TYPE\",\n    \"filter\": {\n        \"logic\": \"and\",\n        \"filters\": [\n            {\n                \"field\": \"WO_TYPE\",\n                \"operator\": \"eq\",\n                \"value\": \"PM\"\n            },\n            {\n                \"table\": \"compinfo\",\n                \"field\": \"comp_desc\",\n                \"operator\": \"notstartswith\",\n                \"value\": \"A\"\n            }\n        ]\n    },\n    \"join\": {\n        \"joinwith\": [\n            {\n                \"dd_dbf\": \"COMPINFO\"\n            }\n        ]\n    },\n    \"sortBy\": [\n        {\n            \"field\": \"compid\",\n            \"dir\": \"desc\"\n        }\n    ],\n    \"pageNumber\": 1,\n    \"pageSize\": 10\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/getAnyData"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"308d25fb-f0b8-40f9-b708-62dcbaffc84f"},{"name":"Get record with nested data (advanced)","id":"da28ccdb-2e2b-454e-a15a-9931937df368","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"POSTMAN"},{"key":"Authorization","value":"Bearer {{vault:x4-api-token}}","type":"text"}],"url":"https://x46.emaint.com/api/v2/getObjectData?table=WORK&keyvalue=120&objectid=WO_WO","description":"<p>Use this method to obtain record data along with related information in a complex nested JSON/XML structure</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["getObjectData"],"host":["https://x46.emaint.com/api/v2"],"query":[{"description":{"content":"<p>(Required) Table identifier</p>\n","type":"text/plain"},"key":"table","value":"WORK"},{"description":{"content":"<p>(Required) Record identifier</p>\n","type":"text/plain"},"key":"keyvalue","value":"120"},{"description":{"content":"<p>(Required) Object structure identifier</p>\n","type":"text/plain"},"key":"objectid","value":"WO_WO"}],"variable":[]}},"response":[{"id":"7f537bc4-8b1a-40ff-b0d6-ffee68acab0c","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"XT-UserAgent","value":"POSTMAN","type":"text"},{"key":"Authorization","value":"Bearer {{vault:x4-api-token}}","type":"text"}],"url":{"raw":"https://x46.emaint.com/api/v2/getObjectData?table=WORK&keyvalue=120&objectid=WO_WO","host":["https://x46.emaint.com/api/v2"],"path":["getObjectData"],"query":[{"key":"table","value":"WORK"},{"key":"keyvalue","value":"120"},{"key":"objectid","value":"WO_WO"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"\",\n    \"data\": {\n        \"WORK\": {\n            \"WO\": \"742\",\n            \"BRIEF_DESC\": \"CONVEYOR BELT GENERAL INSPECTION\",\n            \"WORK_DESC\": \"\",\n            \"DATE_WO\": \"2017-11-13T00:00:00.000Z\",\n            \"WORKSTATUS\": \"COMPLETE\",\n            \"WO_TYPE\": \"PM\",\n            \"COMPINFO\": {\n                \"COMPID\": \"HL11150\",\n                \"COMP_DESC\": \"Filler Empty Bottle Infeed Screw Conveyor\",\n                \"BUILDING\": \"Main\",\n                \"FLR_LEVEL\": \"Ground\",\n                \"ROOM_SPCE\": \"100\"\n            },\n            \"WO_PROCS\": {\n                \"data\": [\n                    {\n                        \"CUID\": \"_54D0I4U5K\",\n                        \"TASK_DESC\": \"A-1 Air Dryer, Refrigerated or Regenerative\",\n                        \"TASKTEXT\": \"\",\n                        \"STATUS\": \"\",\n                        \"COMPID\": \"\",\n                        \"WO\": \"742\",\n                        \"READING\": \"\",\n                        \"TASK_NO\": \"A-1\",\n                        \"PROC_SEQ\": \"1\",\n                        \"CMWO\": \"0\",\n                        \"PFNARADIO\": \"\",\n                        \"WPCOMMENTS\": \"\",\n                        \"SCHADASSID\": \"\"\n                    },\n                    {\n                        \"CUID\": \"_54D0I5B9V\",\n                        \"TASK_DESC\": \"A-2 Unitary, Heating and Cooling Unit\",\n                        \"TASKTEXT\": \"\",\n                        \"STATUS\": \"On Hold\",\n                        \"COMPID\": \"\",\n                        \"WO\": \"742\",\n                        \"READING\": \"\",\n                        \"TASK_NO\": \"A-2\",\n                        \"PROC_SEQ\": \"2\",\n                        \"CMWO\": \"0\",\n                        \"PFNARADIO\": \"\",\n                        \"WPCOMMENTS\": \"\",\n                        \"SCHADASSID\": \"\"\n                    }\n                ],\n                \"ASSIGNMENT\": {\n                    \"data\": [\n                        {\n                            \"CONTACTID\": \"BWDEMO\",\n                            \"DATE_SCH\": \"2017-12-10T00:00:00.000Z\",\n                            \"STATUS\": \"ASSIGNED\",\n                            \"CUID\": \"_52404S6OA\",\n                            \"EST_HOURS\": \"0.00\",\n                            \"SCHADASSID\": \"\",\n                            \"SIGNEDON\": \"\"\n                        }\n                    ]\n                },\n                \"DOCUMENTS\": {\n                    \"data\": []\n                }\n            }\n        }\n    }\n}"},{"id":"733d8aba-d1af-4ce7-a365-664013be9617","name":"Unable to complete the operation","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{vault:x4-api-token}}","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"POSTMAN","type":"text"}],"url":{"raw":"https://x46.emaint.com/api/v2/getObjectData?table=WORK&keyvalue=120&objectid=WO_WO","host":["https://x46.emaint.com/api/v2"],"path":["getObjectData"],"query":[{"key":"table","value":"WORK"},{"key":"keyvalue","value":"120"},{"key":"objectid","value":"WO_WO"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Record not found.\"\n}"},{"id":"37971062-6e87-4211-9b06-2638765103d1","name":"Authentication failure","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{vault:x4-api-token}}","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"POSTMAN","type":"text"}],"url":{"raw":"https://x46.emaint.com/api/v2/getObjectData?table=WORK&keyvalue=120&objectid=WO_WO","host":["https://x46.emaint.com/api/v2"],"path":["getObjectData"],"query":[{"key":"table","value":"WORK"},{"key":"keyvalue","value":"120"},{"key":"objectid","value":"WO_WO"}]}},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"da28ccdb-2e2b-454e-a15a-9931937df368"}],"id":"933f1c7a-3aa2-429d-b6b3-9c4bbdcd7d5b","description":"<p>Pulls records in batch by given criteria</p>\n","_postman_id":"933f1c7a-3aa2-429d-b6b3-9c4bbdcd7d5b","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"General Operations - One record","item":[{"name":"Add record","id":"1a26b20c-6fb7-41d2-9bae-a764257d7017","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"payload\": {\n        \"wo\": \"[AUTO]\",\n        \"brief_desc\": \"Test brief description\",\n        \"assignid\": \"Test Assign ID\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record","description":"<p>Adds a new table record with the data provided in “payload” json object</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["record"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"64687430-b906-40a0-937e-8d95bf11af76","name":"Succcess","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"payload\": {\n        \"wo\": \"[AUTO]\",\n        \"brief_desc\": \"Test brief description\",\n        \"assignid\": \"Test Assign ID\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"Record Saved Successfully\",\n    \"id\": 12345\n}"},{"id":"375570b5-f48c-4b21-a937-f702f75185f5","name":"Unable to parse the request data","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json","name":"Content-Type"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"payload\": {\n        \"wo\": \"[AUTO]\",\n        \"brief_desc\": \"Test brief description\",\n        \"assignid\": \"Test Assign ID\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Data table not specified or not found.\"\n}"},{"id":"d5356b7f-15a5-48e8-96da-260f19d99e5a","name":"Permissions denied","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"payload\": {\n        \"wo\": \"[AUTO]\",\n        \"brief_desc\": \"Test brief description\",\n        \"assignid\": \"Test Assign ID\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Security Problem. User does not have required security access for this function. Please contact your system administrator.\"\n}"},{"id":"054b255c-37ac-4c81-a9c6-3bd730bf0e10","name":"Unauthorized","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json","name":"Content-Type"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"payload\": {\n        \"wo\": \"[AUTO]\",\n        \"brief_desc\": \"Test brief description\",\n        \"assignid\": \"Test Assign ID\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"1a26b20c-6fb7-41d2-9bae-a764257d7017"},{"name":"Update record","id":"0cebf9ee-2a7c-4e27-883f-5156f8d5c369","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"payload\": {\n        \"brief_desc\": \"Test brief description\",\n        \"assignid\": \"Test Assign ID\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record","description":"<p>updates existing record with the data provided in “payload” json object</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["record"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"62f477fd-cdb1-429c-95e4-216a867ea4d5","name":"Unable to parse the request data","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"payload\": {\n        \"brief_desc\": \"Test brief description\",\n        \"assignid\": \"Test Assign ID\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Data table not specified or not found.\"\n}"},{"id":"502487a8-5b43-42a6-ae09-606c60230335","name":"Permissions denied","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json","name":"Content-Type"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"payload\": {\n        \"brief_desc\": \"Test brief description\",\n        \"assignid\": \"Test Assign ID\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Security Problem. User does not have required security access for this function. Please contact your system administrator.\"\n}"},{"id":"6e92b7bf-228a-43c9-bb3e-af168680b67f","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json","name":"Content-Type"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"payload\": {\n        \"brief_desc\": \"Test brief description\",\n        \"assignid\": \"Test Assign ID\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"0cebf9ee-2a7c-4e27-883f-5156f8d5c369"},{"name":"Delete/Restore record","id":"99387369-c295-4fbb-8885-bd1c0b4b85a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"action\": \"delete\"\n}"},"url":"https://x46.emaint.com/api/v2/record","description":"<p>deletes or restores existing table record. Use property “action”:“delete” to delete the record and “action”:“restore” to restore a deleted record</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["record"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"e37b2bdf-55c6-4328-8095-3ba26245003e","name":"Succcess","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"action\": \"delete\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"Record deleted successfully\"\n}"},{"id":"26aa48b0-05db-427c-86d3-29709ec43ee0","name":"Unable to parse the request data","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json","name":"Content-Type"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"action\": \"delete\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Data table not specified or not found.\"\n}"},{"id":"ed381ffd-aa7a-4b06-a98e-80b9495ef9f1","name":"Permissions denied","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json","name":"Content-Type"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"action\": \"delete\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Security Problem. User does not have required security access for this function. Please contact your system administrator.\"\n}"},{"id":"7ec15774-6d3f-4142-9681-342aaf393b34","name":"Failed to delete or restore the record specified","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"action\": \"delete\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"WORK ORDERS with CHARGES CAN NOT BE DELETED.\"\n}"},{"id":"b9b84d92-39c8-4055-b1a1-5cc8fbef35b7","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json","name":"Content-Type"}],"body":{"mode":"raw","raw":"{\n    \"table\": \"WORK\",\n    \"id\": \"34527\",\n    \"action\": \"delete\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/record"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Authentication failure\"\n}"}],"_postman_id":"99387369-c295-4fbb-8885-bd1c0b4b85a7"}],"id":"5b7a40b6-7dcd-4e48-806a-68917d6d233a","description":"<p>Standard methods to create, update or delete a record from the account’s database</p>\n<p>Note that some operations require calling specific API end-points. For the following actions it is not recommended to use /Record API:</p>\n<ul>\n<li>sign on/off - use /signOn and /signOff</li>\n<li>close out work order - use /closeWorkOrder</li>\n<li>document upload - use /uploadDocument</li>\n<li>approve/reject work order request - use /approveRequest and /rejectRequest</li>\n<li>adjust inventory on-hand - use /adjustInventory</li>\n<li>receive PO items - use /savePoReceipt</li>\n</ul>\n","_postman_id":"5b7a40b6-7dcd-4e48-806a-68917d6d233a","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"General Operations - Multiple records","item":[{"name":"Add one or more records in bulk","id":"b8a3880b-401f-4b4e-954d-aba65fd3291a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"payload\": {\n            \"wo\": \"[AUTO]\",\n            \"brief_desc\": \"Test brief description\",\n            \"assignid\": \"Test Assign ID\"\n        }\n    },\n    {\n        \"table\": \"WORK\",\n        \"payload\": {\n            \"wo\": \"[AUTO]\",\n            \"brief_desc\": \"Another brief description\",\n            \"assignid\": \"Another Assign ID\"\n        }\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/records","description":"<p>Adds multiple table record with the data provided in “payload” json object. Requires an array of records in JSON format in the payload and can have a mix with records belonging to different tables. The response contains an array to output the status of each record attempted to be added, updated or deleted</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["records"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"478bd794-2c19-42d2-81ca-2c35173507b7","name":"Unable to complete the operation","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"payload\": {\n            \"wo\": \"[AUTO]\",\n            \"brief_desc\": \"Test brief description\",\n            \"assignid\": \"Test Assign ID\"\n        }\n    },\n    {\n        \"table\": \"WORK\",\n        \"payload\": {\n            \"wo\": \"[AUTO]\",\n            \"brief_desc\": \"Another brief description\",\n            \"assignid\": \"Another Assign ID\"\n        }\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Data table not specified or not found.\"\n}"},{"id":"f24b9ce5-b2a6-435d-b35f-5a3443ec7fcb","name":"Permissions denied","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"payload\": {\n            \"wo\": \"[AUTO]\",\n            \"brief_desc\": \"Test brief description\",\n            \"assignid\": \"Test Assign ID\"\n        }\n    },\n    {\n        \"table\": \"WORK\",\n        \"payload\": {\n            \"wo\": \"[AUTO]\",\n            \"brief_desc\": \"Another brief description\",\n            \"assignid\": \"Another Assign ID\"\n        }\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"Forbidden","code":403,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Security Problem. User does not have required security access for this function. Please contact your system administrator.\"\n}"},{"id":"6ad874ea-32cd-4796-aacf-5d2b18213a7a","name":"Unauthorized","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"payload\": {\n            \"wo\": \"[AUTO]\",\n            \"brief_desc\": \"Test brief description\",\n            \"assignid\": \"Test Assign ID\"\n        }\n    },\n    {\n        \"table\": \"WORK\",\n        \"payload\": {\n            \"wo\": \"[AUTO]\",\n            \"brief_desc\": \"Another brief description\",\n            \"assignid\": \"Another Assign ID\"\n        }\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Authentication failure\"\n}"}],"_postman_id":"b8a3880b-401f-4b4e-954d-aba65fd3291a"},{"name":"Update one or more records in bulk","id":"f54bd3ff-3f04-48a0-8278-e8b32c4ccd88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34527\",\n        \"payload\": {\n            \"brief_desc\": \"Test brief description\",\n            \"assignid\": \"Test Assign ID\"\n        }\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"payload\": {\n            \"brief_desc\": \"Another brief description\",\n            \"assignid\": \"Another Assign ID\"\n        }\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/records","description":"<p>updates existing record with the data provided in “payload” json object</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["records"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"81977976-224f-400f-a67a-1b005d95b112","name":"Unable to complete the operation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34527\",\n        \"payload\": {\n            \"brief_desc\": \"Test brief description\",\n            \"assignid\": \"Test Assign ID\"\n        }\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"payload\": {\n            \"brief_desc\": \"Another brief description\",\n            \"assignid\": \"Another Assign ID\"\n        }\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Data table not specified or not found.\"\n}"},{"id":"798671a5-5cc7-45d2-955d-aa29c3c22f9f","name":"Permissions denied","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34527\",\n        \"payload\": {\n            \"brief_desc\": \"Test brief description\",\n            \"assignid\": \"Test Assign ID\"\n        }\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"payload\": {\n            \"brief_desc\": \"Another brief description\",\n            \"assignid\": \"Another Assign ID\"\n        }\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"Forbidden","code":403,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Security Problem. User does not have required security access for this function. Please contact your system administrator.\"\n}"},{"id":"01c79f0f-cda1-4a07-8e6f-b6d0adbb6ee7","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34527\",\n        \"payload\": {\n            \"brief_desc\": \"Test brief description\",\n            \"assignid\": \"Test Assign ID\"\n        }\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"payload\": {\n            \"brief_desc\": \"Another brief description\",\n            \"assignid\": \"Another Assign ID\"\n        }\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Authentication failure\"\n}"}],"_postman_id":"f54bd3ff-3f04-48a0-8278-e8b32c4ccd88"},{"name":"Delete/Restore one or more records in bulk","id":"cb407504-387c-4c6c-a5a7-cd7de3b926ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34527\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"restore\"\n    },\n    {\n        \"table\": \"COMPINFO\",\n        \"id\": \"TESTASSET\",\n        \"action\": \"delete\"\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/records","description":"<p>deletes or restores existing table record. Use property “action”:“delete” to delete the record and “action”:“restore” to restore a deleted record</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["records"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"90df06f6-880c-410a-a865-380ae0889c4f","name":"Succcess","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34527\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"restore\"\n    },\n    {\n        \"table\": \"COMPINFO\",\n        \"id\": \"TESTASSET\",\n        \"action\": \"delete\"\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": true,\n \"message\": \"{NUMBER} records processed successfully\",\n \"data\": [\n  {\n   \"valid\": true,\n   \"message\": \"Record deleted successfully\"\n  },\n  {\n   \"valid\": true,\n   \"message\": \"Record deleted successfully\"\n  },\n  {\n   \"valid\": true,\n   \"message\": \"Record restored successfully\"\n  },\n  {\n   \"valid\": true,\n   \"message\": \"Record deleted successfully\"\n  }\n ]\n}"},{"id":"1306a403-f788-4734-aaef-0843061f381f","name":"Unable to complete the operation","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34527\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"restore\"\n    },\n    {\n        \"table\": \"COMPINFO\",\n        \"id\": \"TESTASSET\",\n        \"action\": \"delete\"\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Request payload is not an array.\"\n}"},{"id":"57b721b4-9fe7-488d-8ba6-b2b4bae35528","name":"Permissions denied","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34527\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"restore\"\n    },\n    {\n        \"table\": \"COMPINFO\",\n        \"id\": \"TESTASSET\",\n        \"action\": \"delete\"\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"Forbidden","code":403,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Security Problem. User does not have required security access for this function. Please contact your system administrator.\"\n}"},{"id":"51260b05-a312-4e8d-80d8-ac27cbc515d9","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"[\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34527\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"delete\"\n    },\n    {\n        \"table\": \"WORK\",\n        \"id\": \"34528\",\n        \"action\": \"restore\"\n    },\n    {\n        \"table\": \"COMPINFO\",\n        \"id\": \"TESTASSET\",\n        \"action\": \"delete\"\n    }\n]"},"url":"https://x46.emaint.com/api/v2/records"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Authentication failure\"\n}"}],"_postman_id":"cb407504-387c-4c6c-a5a7-cd7de3b926ee"}],"id":"1ec4eb70-3819-45be-a2b0-9072135a6eb0","description":"<p>Standard methods to create, update or delete multiple records in bulk</p>\n","_postman_id":"1ec4eb70-3819-45be-a2b0-9072135a6eb0","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"Work Orders Management","item":[{"name":"Sign On","id":"3204e0a5-0e9d-4701-a1ce-ff91f779f15e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signonDate\": \"2022-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOn","description":"<p>Use this method to sign on to a work order.</p>\n<p>Remarks:</p>\n<ul>\n<li><code>contactId</code> must be a valid contact Id. If you omit the parameter, the authenticated user executing the request is used.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["signOn"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"267cfce3-392f-43d3-bbf8-7d408f83997c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signonDate\": \"2022-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOn"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"Successfully signed on to work order #12345\"\n}"},{"id":"4b4711d2-ae40-457c-88a9-f0cdd1444336","name":"Unable to sign on using a future date","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signonDate\": \"2099-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOn"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Sign on date cannot be a future date\"\n}"},{"id":"dd401bc1-e372-494d-9cba-1f1b7fb36c63","name":"Authentication failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signonDate\": \"2099-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOn"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"},{"id":"45c2f6a4-1641-46b5-bf32-41644a861575","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signonDate\": \"2099-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\"\n}   ","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOn"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"The server is unable to process your request\"\n}"}],"_postman_id":"3204e0a5-0e9d-4701-a1ce-ff91f779f15e"},{"name":"Sign Off","id":"c62df220-bf70-4b2c-a727-0befeacd5c8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signoffDate\": \"2022-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\",\n    \"completed\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOff","description":"<p>Use this method to sign off a work order.</p>\n<p>Remarks:</p>\n<ul>\n<li><code>contactId</code> must be a valid contact Id. If you omit the parameter, the authenticated user executing the request is used.</li>\n<li>use <code>completed:false</code> to just pause working to the work order specified while still being signed on</li>\n<li><code>completed</code> is optional - default value is <code>true</code></li>\n<li><code>signoffDate</code> is optional - default value is current date/time</li>\n<li>User must be signed on already.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["signOff"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"581fff1b-1890-408f-9228-b334d0c7f93b","name":"Sign Off - Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signoffDate\": \"2022-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\",\n    \"completed\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOff"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"Successfully signed off to work order #12345\"\n}"},{"id":"313569c7-979d-4590-9c9a-43f19022e0ac","name":"Pause - Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signoffDate\": \"2022-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\",\n    \"completed\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOff"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"Successfully paused work on work order #12345\"\n}"},{"id":"b94253ec-568f-4835-92e5-b87967344171","name":"Unable to sign off using a future date","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signonDate\": \"2099-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOff"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Sign off date cannot be a future date\"\n}"},{"id":"ce9cfc19-9992-4b50-9bb4-2571edcad6f4","name":"Authentication failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signonDate\": \"2099-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOff"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"},{"id":"43404f8a-8756-43d8-8741-e8d517d42621","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signonDate\": \"2099-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\"\n}   ","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOn"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"The server is unable to process your request\"\n}"}],"_postman_id":"c62df220-bf70-4b2c-a727-0befeacd5c8d"},{"name":"Close Out Work Order","id":"72c94322-15b1-4495-a403-c63af3e1b483","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"date_cmpl\": \"2022-01-07T10:30:00.000Z\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/closeWorkOrder","description":"<p>Use this method to sign on to a work order.</p>\n<p>Remarks:</p>\n<ul>\n<li><code>date_cmpl</code> is optional.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["closeWorkOrder"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"6d9d57f7-3452-4af3-991f-373e1678dcb3","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"signonDate\": \"2022-01-07T10:30:00.000Z\",\n    \"contactId\": \"ABCDEF99\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/signOn"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"Successfully signed on to work order #12345\"\n}"},{"id":"85b94228-a74c-4df2-a949-ce4b49987aca","name":"Work Order Is Already Closed","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"date_cmpl\": \"2022-01-07T10:30:00.000Z\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/closeWorkOrder"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Work order is already closed\"\n}"},{"id":"c0a650c9-6a22-4e2d-bbbf-ec4aeedb3225","name":"Authentication failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"wo\": \"12345\",\n    \"date_cmpl\": \"2022-01-07T10:30:00.000Z\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/closeWorkOrder"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"72c94322-15b1-4495-a403-c63af3e1b483"}],"id":"e5e35e9c-eb72-4959-ae11-31fba8b7a45d","description":"<p>Work orders sign on / sign off management</p>\n","_postman_id":"e5e35e9c-eb72-4959-ae11-31fba8b7a45d","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"Work Order Requests Management","item":[{"name":"Approve Work Request","id":"57e5a396-4948-477c-86d3-0b58289cf6ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"requestno\": \"WORK\",\n    \"contactId\": \"BWDEMO\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/approveRequest","description":"<p>Use this method to approve an open work order request</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["approveRequest"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"8f6f08b4-cff6-4647-904a-8b102e45595e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"requestno\": \"WORK\",\n    \"contactId\": \"BWDEMO\"\n}"},"url":"https://x46.emaint.com/api/v2/approveRequest"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"Work Request approved on 04/19/2021 : 02:32:32 PM By BWDEMO. Request Number 00150 became WO No. 200419\",\n    \"wo\": 12345\n}"},{"id":"5fc1fd88-2545-4b6b-8a8a-2bff3f578d8d","name":"Unable to complete the operation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"requestno\": \"WORK\",\n    \"contactId\": \"BWDEMO\"\n}"},"url":"https://x46.emaint.com/api/v2/approveRequest"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Request identifier is not specified\"\n}"},{"id":"247665ce-6c59-4ce9-8ce7-2ee9fe0fd679","name":"Authentication failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"requestno\": \"WORK\",\n    \"contactId\": \"BWDEMO\"\n}"},"url":"https://x46.emaint.com/api/v2/approveRequest"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"57e5a396-4948-477c-86d3-0b58289cf6ca"},{"name":"Reject Work Request","id":"9db1497d-806a-4601-87cd-521d3cf76e4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"requestno\": \"WORK\",\n    \"contactId\": \"BWDEMO\",\n    \"reason\": \"We have no resources at this time. A workaround already submitted to user\"\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/rejectRequest","description":"<p>Use this method to reject an open work order request</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["rejectRequest"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"7c686616-3252-4d03-83ee-ace198ab1d0d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"requestno\": \"WORK\",\n    \"contactId\": \"BWDEMO\",\n    \"reason\": \"We have no resources at this time. A workaround already submitted to user\"\n}"},"url":"https://x46.emaint.com/api/v2/rejectRequest"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"Work Request Number 00105 has been REJECTED. Notification mailed to : user_email@yourmail.com\"\n}"},{"id":"3cba891e-72a6-4959-a2c6-eae4c077ea4e","name":"Unable to complete the operation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"requestno\": \"WORK\",\n    \"contactId\": \"BWDEMO\",\n    \"reason\": \"We have no resources at this time. A workaround already submitted to user\"\n}"},"url":"https://x46.emaint.com/api/v2/rejectRequest"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Request identifier is not specified\"\n}"},{"id":"4dda4746-67e7-44e6-8437-74bb8327313b","name":"Authentication failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"requestno\": \"WORK\",\n    \"contactId\": \"BWDEMO\",\n    \"reason\": \"We have no resources at this time. A workaround already submitted to user\"\n}"},"url":"https://x46.emaint.com/api/v2/rejectRequest"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"9db1497d-806a-4601-87cd-521d3cf76e4b"}],"id":"8c83756a-720f-4aea-9e32-8053d52233d9","description":"<p>Manage work order request status</p>\n","_postman_id":"8c83756a-720f-4aea-9e32-8053d52233d9","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"Inventory Management","item":[{"name":"Adjust Inventory Item Quantities","id":"292be4b0-8503-443f-ba61-68f35864d940","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"ADJUSTMENT\",\n    \"payload\": {\n        \"item\": \"2004\",\n        \"document\": \"PHYSCOUNT\",\n        \"invloc\": \"MAIN\",\n        \"qtyadj\": 10\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/adjustInventory","description":"<p>Use this method to set or adjust on-hand quantities of an existing inventory item</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["adjustInventory"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"f77279de-1aa1-4e8d-9e28-27e88ea18858","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"ADJUSTMENT\",\n    \"payload\": {\n        \"item\": \"2004\",\n        \"document\": \"PHYSCOUNT\",\n        \"invloc\": \"MAIN\",\n        \"qtyadj\": 10\n    }\n}"},"url":"https://x46.emaint.com/api/v2/adjustInventory"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"Your transaction was saved\"\n}"},{"id":"05bac159-67ed-4717-8c3e-2c37fe9b202f","name":"Unable to complete the operation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"ADJUSTMENT\",\n    \"payload\": {\n        \"item\": \"2004\",\n        \"document\": \"PHYSCOUNT\",\n        \"invloc\": \"MAIN\",\n        \"qtyadj\": 10\n    }\n}"},"url":"https://x46.emaint.com/api/v2/adjustInventory"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Payload not specified.\"\n}"},{"id":"c15e8445-43fb-4699-a488-b8d8d8241366","name":"Authentication failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"ADJUSTMENT\",\n    \"payload\": {\n        \"item\": \"2004\",\n        \"document\": \"PHYSCOUNT\",\n        \"invloc\": \"MAIN\",\n        \"qtyadj\": 10\n    }\n}"},"url":"https://x46.emaint.com/api/v2/adjustInventory"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Authentication failure\"\n}"}],"_postman_id":"292be4b0-8503-443f-ba61-68f35864d940"}],"id":"d1f962ef-6599-445e-b0c7-90b7a2cdf4dc","description":"<p>Inventory items management</p>\n","_postman_id":"d1f962ef-6599-445e-b0c7-90b7a2cdf4dc","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"Purchase Orders","item":[{"name":"Receive PO Items","id":"d35d5de7-361d-4a1d-9a0e-afacf23d77ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"body":{"mode":"raw","raw":"{\n    \"purno\": \"00027\",\n    \"type\": \"TOTALREC\",\n    \"payload\": [\n        {\n            \"item\": \"2003\",\n            \"qty\": 1\n        },\n        {\n            \"lineid\": \"_61411G2ER\",\n            \"qty\": 1\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://x46.emaint.com/api/v2/savePoReceipt","description":"<p>Use this method to receive items in existing Purchase Order (PO)</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["savePoReceipt"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"feb3691f-b569-42e7-9534-27d6925dd6b0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"purno\": \"00027\",\n    \"type\": \"TOTALREC\",\n    \"payload\": [\n        {\n            \"item\": \"2003\",\n            \"qty\": 1\n        },\n        {\n            \"lineid\": \"_61411G2ER\",\n            \"qty\": 1\n        }\n    ]\n}"},"url":"https://x46.emaint.com/api/v2/savePoReceipt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"All transactions passed.\",\n    \"details\": [\n        {\n            \"valid\": true,\n            \"item\": \"2003\",\n            \"lineid\": \"_61411FNEW\",\n            \"message\": \"Transaction passed.\"\n        },\n        {\n            \"valid\": true,\n            \"item\": \"2012\",\n            \"lineid\": \"_61411G2ER\",\n            \"message\": \"Transaction passed.\"\n        }\n    ]\n}"},{"id":"0194552c-be88-43fb-8031-888fd0b2058e","name":"Unable to complete the operation","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"purno\": \"00027\",\n    \"type\": \"TOTALREC\",\n    \"payload\": [\n        {\n            \"item\": \"2003\",\n            \"qty\": 1\n        },\n        {\n            \"lineid\": \"_61411G2ER\",\n            \"qty\": 1\n        }\n    ]\n}"},"url":"https://x46.emaint.com/api/v2/savePoReceipt"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"One or more transactions have failed.\",\n    \"details\": [\n        {\n            \"valid\": false,\n            \"lineid\": \"_5AB0QH956\",\n            \"message\": \"Transaction not found - unable to find Line ID = _5AB0QH956\"\n        },\n        {\n            \"valid\": false,\n            \"lineno\": \"344\",\n            \"message\": \"Transaction not found - unable to find Line No = 1\"\n        }\n    ]\n}"},{"id":"924f07d8-30a3-4b04-ad8a-cb0fb96ad8e6","name":"Authentication failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"body":{"mode":"raw","raw":"{\n    \"purno\": \"00027\",\n    \"type\": \"TOTALREC\",\n    \"payload\": [\n        {\n            \"item\": \"2003\",\n            \"qty\": 1\n        },\n        {\n            \"lineid\": \"_61411G2ER\",\n            \"qty\": 1\n        }\n    ]\n}"},"url":"https://x46.emaint.com/api/v2/savePoReceipt"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"d35d5de7-361d-4a1d-9a0e-afacf23d77ef"}],"id":"1530e0cb-4a22-418e-82f9-d6be7ddb63a8","description":"<p>Purchase orders management</p>\n","_postman_id":"1530e0cb-4a22-418e-82f9-d6be7ddb63a8","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"Documents Management","item":[{"name":"Download document","id":"0e90fe1c-edc5-4120-9435-5b893a9c3518","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"url":"https://x46.emaint.com/api/v2/downloadDocument?id={{DOCUMENT_ID}}","description":"<p>Use this method to download existing document or an image file already stored in Document Storage</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["downloadDocument"],"host":["https://x46.emaint.com/api/v2"],"query":[{"description":{"content":"<p>(Required) Document identifier</p>\n","type":"text/plain"},"key":"id","value":"{{DOCUMENT_ID}}"}],"variable":[]}},"response":[{"id":"edfa0af7-96af-4f6a-a93c-9344cce5924c","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":{"raw":"https://x46.emaint.com/api/v2/downloadDocument?id=elit f","host":["https://x46.emaint.com/api/v2"],"path":["downloadDocument"],"query":[{"key":"id","value":"elit f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"image/jpeg"}],"cookie":[],"responseTime":null,"body":"elit f"},{"id":"8884a0b5-1398-405f-b0e9-2b874089533f","name":"File not found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":{"raw":"https://x46.emaint.com/api/v2/downloadDocument?id=elit f","host":["https://x46.emaint.com/api/v2"],"path":["downloadDocument"],"query":[{"key":"id","value":"elit f"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"File not found\"\n}"},{"id":"2225325b-058c-4e7c-a7f6-abb562dde23f","name":"Authentication failure","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":{"raw":"https://x46.emaint.com/api/v2/downloadDocument?id=elit f","host":["https://x46.emaint.com/api/v2"],"path":["downloadDocument"],"query":[{"key":"id","value":"elit f"}]}},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Authentication failure\"\n}"}],"_postman_id":"0e90fe1c-edc5-4120-9435-5b893a9c3518"},{"name":"Upload Document","id":"f347d4f5-6be9-47a5-8bad-0ffa4d0f74b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}","type":"text"}],"url":"https://x46.emaint.com/api/v2/uploadDocument","description":"<h3 id=\"description\">Description</h3>\n<p>Use this method to upload a new document or an image file directly in Document Storage.</p>\n<p>Here are the applicable parameters:</p>\n<ul>\n<li>filename - name of the file uploaded (including file extension)</li>\n<li>description (optional) </li>\n<li>folder - logical path to the file</li>\n<li>data - base64 encoded string of the file contents</li>\n</ul>\n<h4 id=\"remarks\">Remarks</h4>\n<ul>\n<li>if another file with same name and extension already exist in the destination folder the system will add a timestamp suffix to distinguish both files on the server</li>\n<li>if the folder is blank or not specified system defaults to \"MOBILE\" folder</li>\n<li>you may specify a folder path , i.e \"MOBILE/TEST/TEST2\"</li>\n<li>in case the folder does not exist on server it is being created.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["uploadDocument"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"d8dffffc-589c-4139-9aa6-3b7e1951e021","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic <credentials>","type":"text"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://x46.emaint.com/api/v2/uploadDocument"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"File uploaded successfully\",\n    \"id\": \"_65M0TMLMA\"\n}"},{"id":"474b0811-6be7-4883-82ea-a111e051f949","name":"Bad request","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic <credentials>","type":"text"},{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://x46.emaint.com/api/v2/uploadDocument"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Upload Error : An error occurred during the upload\"\n}"},{"id":"81cfe2e3-9a8e-4c8e-b35f-90d61ba45602","name":"Authentication failure","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://x46.emaint.com/api/v2/uploadDocument"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": false,\n    \"message\": \"Authentication failure\"\n}"}],"_postman_id":"f347d4f5-6be9-47a5-8bad-0ffa4d0f74b1"}],"id":"40a1f509-5f97-4212-a828-59060e4f2705","description":"<p>Working with documents</p>\n","_postman_id":"40a1f509-5f97-4212-a828-59060e4f2705","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"User","item":[{"name":"Get user permissions","id":"33a551e9-47cd-4617-91fe-2c75d04908d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"XT-UserAgent","value":"{{USER_AGENT}}"}],"url":"https://x46.emaint.com/api/v2/getPermissions?userId={{USER_ID}}","description":"<p>Use this method to obtain a list of permissions to which the requested user have access ritghts to.</p>\n","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}},"urlObject":{"path":["getPermissions"],"host":["https://x46.emaint.com/api/v2"],"query":[{"description":{"content":"<p>(Required) User identifier</p>\n","type":"text/plain"},"key":"userId","value":"{{USER_ID}}"}],"variable":[]}},"response":[{"id":"969d900a-d3f0-4a80-8767-2397f30b60fb","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":{"raw":"https://x46.emaint.com/api/v2/getPermissions?userId=elit f","host":["https://x46.emaint.com/api/v2"],"path":["getPermissions"],"query":[{"key":"userId","value":"elit f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": true,\n \"message\": \"\",\n \"type\": \"Administration User\",\n \"data\": [\n  {\n   \"item_desc\": \"Access File\",\n   \"sec_desc\": \"ASSET TYPE\",\n   \"sec_no\": \"T001\"\n  }\n ]\n}"},{"id":"091d46aa-761e-4a4f-a3a2-202173f9a2cd","name":"User not found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":{"raw":"https://x46.emaint.com/api/v2/getPermissions?userId=elit f","host":["https://x46.emaint.com/api/v2"],"path":["getPermissions"],"query":[{"key":"userId","value":"elit f"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"User not found\"\n}"},{"id":"061aa179-ca3c-43c4-841a-841663fe990b","name":"Authentication failure","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","description":"Added as a part of security scheme: bearer"}],"url":{"raw":"https://x46.emaint.com/api/v2/getPermissions?userId=elit f","host":["https://x46.emaint.com/api/v2"],"path":["getPermissions"],"query":[{"key":"userId","value":"elit f"}]}},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"valid\": false,\n \"message\": \"Authentication failure\"\n}"}],"_postman_id":"33a551e9-47cd-4617-91fe-2c75d04908d8"}],"id":"6dd68cdc-50a5-420b-99b7-de87060e4d22","description":"<p>Manage users</p>\n","_postman_id":"6dd68cdc-50a5-420b-99b7-de87060e4d22","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}},{"name":"Version","item":[{"name":"Get API Version","id":"52df9f17-e791-45bb-81b1-9b0bbfda9cf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://x46.emaint.com/api/v2/version","urlObject":{"path":["version"],"host":["https://x46.emaint.com/api/v2"],"query":[],"variable":[]}},"response":[{"id":"ab5b41c7-a16d-4315-8802-a8f60516547e","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://x46.emaint.com/api/v2/version"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"valid\": true,\n    \"message\": \"OK\",\n    \"version\": \"2.0.0\"\n}"}],"_postman_id":"52df9f17-e791-45bb-81b1-9b0bbfda9cf7"}],"id":"77769315-f1b7-4822-b1cd-24db55a9148a","description":"<p>API version</p>\n","_postman_id":"77769315-f1b7-4822-b1cd-24db55a9148a","auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"},"isInherited":true,"source":{"_postman_id":"920169ff-5dd3-4a7f-8537-fff78cc25514","id":"920169ff-5dd3-4a7f-8537-fff78cc25514","name":"eMaint X4 API v2","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"token":"{{JWT-Token}}"}},"event":[{"listen":"prerequest","script":{"id":"796460dc-9a83-441a-afe9-374254162ed0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8e3e9437-7e0a-4c1e-964e-4e4e347498db","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://x46.emaint.com/api/v2"},{"key":"password","value":"{{vault:x4-password}}"},{"key":"username","value":"BWDEMO"},{"key":"agent","value":"POSTMAN"},{"key":"token","value":"{{vault:x4-api-token}}"},{"key":"table_name","value":"WORK"},{"key":"table_id","value":"120"},{"key":"object_id","value":"WO_WO"},{"key":"ods","value":"{\"joinwith\":[{\"columns\":[{\"name\":\"COMPID\"},{\"name\":\"COMP_DESC\"},{\"name\":\"BUILDING\"},{\"name\":\"FLR_LEVEL\"},{\"name\":\"ROOM_SPCE\"}],\"dd_dbf\":\"COMPINFO\"},{\"filter\":{\"field\":\"ctype\",\"value\":\"LAB\",\"operator\":\"eq\"},\"joinwith\":[{\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"FULLNAME\"},{\"name\":\"EMAIL\"}],\"dd_dbf\":\"CONTACT\"}],\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"TRANDATE\"},{\"name\":\"LAB_START\"},{\"name\":\"COMMENT\"},{\"name\":\"LAB_STOP\"},{\"name\":\"QTY\"},{\"name\":\"TRANID\"},{\"name\":\"SCHADASSID\"}],\"alias\":\"LABTRANS\",\"dd_dbf\":\"CHARGES\"},{\"filter\":{\"field\":\"ctype\",\"value\":\"MAT\",\"operator\":\"eq\"},\"joinwith\":[{\"columns\":[{\"name\":\"ITEM\"},{\"name\":\"DESCRIP\"}],\"dd_dbf\":\"ARINVT01\"},{\"columns\":[{\"name\":\"INV_NO\"},{\"name\":\"INVLOC\"}],\"dd_dbf\":\"ICJOURNL\"}],\"columns\":[{\"name\":\"ITEM\"},{\"name\":\"CATEGORY\"},{\"name\":\"TRANDATE\"},{\"name\":\"ADDUSER\"},{\"name\":\"INVLOC\"},{\"name\":\"UNITCOST\"},{\"name\":\"QTY\"},{\"name\":\"COMMENT\"},{\"name\":\"TRANID\"},{\"name\":\"SCHADASSID\"}],\"alias\":\"MATUSETRANS\",\"dd_dbf\":\"CHARGES\"},{\"columns\":[{\"name\":\"CUID\"},{\"name\":\"TASK_DESC\"},{\"name\":\"TASKTEXT\"},{\"name\":\"STATUS\"},{\"name\":\"COMPID\"},{\"name\":\"WO\"},{\"name\":\"TASK_NO\"},{\"name\":\"READING\"},{\"name\":\"PROC_SEQ\"},{\"name\":\"CMWO\"},{\"name\":\"PFNARADIO\"},{\"name\":\"SCHADASSID\"}],\"dd_dbf\":\"WO_PROCS\"},{\"columns\":[{\"name\":\"CONTACTID\"},{\"name\":\"DATE_SCH\"},{\"name\":\"STATUS\"},{\"name\":\"CUID\"},{\"name\":\"EST_HOURS\"},{\"name\":\"SCHADASSID\"},{\"name\":\"SIGNEDON\"}],\"alias\":\"ASSIGNMENT\",\"dd_dbf\":\"WOASSIGN\"},{\"columns\":[{\"name\":\"CUID\"},{\"name\":\"SCHADASSID\"},{\"name\":\"CDESC\"},{\"name\":\"MLINK\"}],\"alias\":\"DOCUMENTS\",\"dd_dbf\":\"WO_DOCS\"}],\"columns\":[{\"name\":\"WO\"},{\"name\":\"BRIEF_DESC\"},{\"name\":\"WORK_DESC\"},{\"name\":\"DATE_WO\"},{\"name\":\"TIME\"},{\"name\":\"WORKSTATUS\"},{\"name\":\"WO_TYPE\"},{\"name\":\"SCH_DATE\"},{\"name\":\"DATE_CMPL\"},{\"name\":\"PRIORITY\"},{\"name\":\"COMPID\"},{\"name\":\"COMP_DESC\"},{\"name\":\"DEPARTMENT\"},{\"name\":\"ADDUSER\"}]}"}]}