{"info":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","description":"<html><head></head><body><p>Welcome to the FieldInsight API Documentation, Here you will find all current endpoints documented with examples provided. Body data for all requests must be encoded as a query string.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Authenticate through OAuth 2 all grant types are supported. A development account must be requested from FieldInsight for the Client ID/Secret and Redirect URL required to use this API. A guide to using the Development account is found <a href=\"https://www.fieldinsight.com/how-to-register-oauth-app/\">here</a>.</p>\n<h1 id=\"url-encoded\">URL Encoded</h1>\n<p>This API requires that all requests with body data(PATCH POST) have that data encoded as a URL encoded string. It's also expected your URL encoded string handles arrays as repeated values. You should be able to find a setting to enable this behaviour in your language&nbsp;of choice e.g. workers=1844&amp;workers=1845 not workers[0]=1844&amp;workers[1]=1845</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"URL Encoded","slug":"url-encoded"}],"owner":"14754452","collectionId":"3af1a496-925d-4ca7-862a-600a6af0fdff","publishedId":"TWDdjDgZ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-01T22:36:15.000Z"},"item":[{"name":"OAuth 2 flow Example","item":[{"name":"Redirect User","id":"e816c935-6ec3-4f5f-bbae-acbd9fcbd2e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://app.fieldinsight.com/oauth/authorize/?response_type=code&state=random_state&client_id=CLIENT_ID","description":"<p>Redirect the User to this URL to have them log in to FieldInsight. FieldInsight will provide an Authorization code in response.</p>\n","urlObject":{"host":["https://app.fieldinsight.com/oauth/authorize/"],"query":[{"description":{"content":"<p>Set this to code to get an Authorization Code.</p>\n","type":"text/plain"},"key":"response_type","value":"code"},{"description":{"content":"<p>Set this to something and FieldInsight will pass it back (Security check).</p>\n","type":"text/plain"},"key":"state","value":"random_state"},{"description":{"content":"<p>Put your Client ID here.</p>\n","type":"text/plain"},"key":"client_id","value":"CLIENT_ID"}],"variable":[]}},"response":[],"_postman_id":"e816c935-6ec3-4f5f-bbae-acbd9fcbd2e8"},{"name":"Callback example","id":"b629de31-7d8a-4d0a-ba52-18b2b9386ad6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://my-fieldinsight-integration.com/oauth-callback/?state=random_state&code=CODE","description":"<p>Next FieldInsight will send the Customer back to the Callback URL you specified with the Authorization code.</p>\n","urlObject":{"host":["https://my-fieldinsight-integration.com/oauth-callback/"],"query":[{"description":{"content":"<p>You can make sure the same state has been sent back for increased security.</p>\n","type":"text/plain"},"key":"state","value":"random_state"},{"description":{"content":"<p>This is your Authorization Code used in the next step to retrieve an Access Code.</p>\n","type":"text/plain"},"key":"code","value":"CODE"}],"variable":[]}},"response":[],"_postman_id":"b629de31-7d8a-4d0a-ba52-18b2b9386ad6"},{"name":"Request an Access Token","id":"543a8598-3bf7-4673-8800-e67aba782fa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"authorization_code","type":"text","description":"<p>We use an Authorization Code for this example.</p>\n"},{"key":"client_id","value":"CLIENT_ID","type":"text","description":"<p>The Client ID you recieved from FieldInsight.</p>\n"},{"key":"client_secret","value":"CLIENT_SECRET","type":"text","description":"<p>The Client Secret you recieved from FieldInsight.</p>\n"},{"key":"code","value":"CODE","type":"text","description":"<p>The Authorization Code from the previous step.</p>\n"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/","type":"text","description":"<p>The Callback URL you provided to FieldInsight.</p>\n"}]},"url":"https://app.fieldinsight.com/oauth/token/","description":"<p>Finally you request an Access Token from FieldInsight using the Authorization Code and Client ID/Secret. Once you have the Access Token you can use it to Access the Rest of the API</p>\n","urlObject":{"host":["https://app.fieldinsight.com/oauth/token/"],"query":[],"variable":[]}},"response":[],"_postman_id":"543a8598-3bf7-4673-8800-e67aba782fa8"},{"name":"Refreshing an Access Token","id":"516cd0cb-b66b-4d88-ad48-e088eb6bffb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"refresh_token","type":"text"},{"key":"client_id","value":"CLIENT_ID","description":"<p>The Client ID you recieved from FieldInsight.</p>\n","type":"text"},{"key":"client_secret","value":"CLIENT_SECRET","description":"<p>The Client Secret you recieved from FieldInsight.</p>\n","type":"text"},{"key":"refresh_token","value":"REFRESH_TOKEN","description":"<p>The Refresh Token you recieved with the Access Token.</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/oauth/token/","description":"<p>Access tokens expire after 10 hours. \nYour app can refresh an access token without user interaction by using a refresh token provided together with the access token.\nTo refresh your access token, make a POST request to the token endpoint with grant_type=refresh_token, and include the refresh token as well as the client credentials.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"8f42a5b9-eb5e-4eb1-893b-c7b1ac0c8d47","id":"8f42a5b9-eb5e-4eb1-893b-c7b1ac0c8d47","name":"OAuth 2 flow Example","type":"folder"}},"urlObject":{"host":["https://app.fieldinsight.com/oauth/token/"],"query":[],"variable":[]}},"response":[],"_postman_id":"516cd0cb-b66b-4d88-ad48-e088eb6bffb1"}],"id":"8f42a5b9-eb5e-4eb1-893b-c7b1ac0c8d47","description":"<p>Provided below is an example of the Authorization code OAuth 2 flow. The user is redirected to FieldInsight to login and permit access. Then FieldInsight will redirect the user back to the callback url you specified with an authorization code. Finally the authorization code is traded for an access code which you can use to access the rest of the API </p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"f7d93307-fc59-46df-990b-ad2e8621b0be","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d2936fa0-84dd-419d-9d1f-64fe609d8ebd","type":"text/javascript","exec":[""]}}],"_postman_id":"8f42a5b9-eb5e-4eb1-893b-c7b1ac0c8d47"},{"name":"Company","item":[{"name":"List Companies","id":"2acba8b7-3f22-4f15-9b98-3abee290f118","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"connection":true}},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/companies/?id&email&cursor&page_size&external_id","description":"<p>Retrieve one or more Companies.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/companies"],"query":[{"description":{"content":"<p>Find one company by ID.</p>\n","type":"text/plain"},"key":"id","value":null},{"description":{"content":"<p>Find one or more companies by email (case insensitive).</p>\n","type":"text/plain"},"key":"email","value":null},{"description":{"content":"<p>Start from a specific position, used for pagination.</p>\n","type":"text/plain"},"key":"cursor","value":null},{"description":{"content":"<p>Number of Results to return (min 1, max 100).</p>\n","type":"text/plain"},"key":"page_size","value":null},{"description":{"content":"<p>Find one company by external ID.</p>\n","type":"text/plain"},"key":"external_id","value":null}],"variable":[]}},"response":[{"id":"e6dfb13e-60b9-4c5b-939b-c504ade53add","name":"Find companies by email","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://app.fieldinsight.com/public-api/companies/?email=sales@acme.com","host":["https://app.fieldinsight.com/public-api/companies"],"path":[""],"query":[{"key":"email","value":"sales@acme.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n   \"objects\": [\n        {\n            \"id\": \"432\", // Id\n            \"business_name\": \"Acme Corp\", // String(200)\n            \"business_number\": \"5341 53242\", // String(50) \n            \"mobile_number\": \"9491 570 156\", // String(150)\n            \"email\": \"sales@acme.com\", // String(254)\n            \"notes\": \"Plumber is installing new baffles.\", // String(10240)\n            \"address\": \"4 Fancher Drive Richmond VIC 3121, Australia\" // String(500)\n        }\n        ...\n    ],\n    \"next_page_cursor\": \"gt/440\" // Repeat the same query again with cursor paramater set to this value to get the next page.\n}"}],"_postman_id":"2acba8b7-3f22-4f15-9b98-3abee290f118"},{"name":"Create a new Company","id":"bc075bce-5f8c-4380-a104-beda4406eb4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"business_name","value":"","type":"text","description":"<p>Company's name. Example: Acme Corp.</p>\n"},{"key":"mobile_number","value":"","type":"text","description":"<p>Company's' mobile number. Example: 9491 570 156.</p>\n"},{"key":"email","value":"","type":"text","description":"<p>Company's email address. Example: <a href=\"mailto:sales@acme.com\">sales@acme.com</a>.</p>\n"},{"key":"business_number","value":"","type":"text","description":"<p>Company's business number. Example: 5341 53242.</p>\n"},{"key":"address","value":"","description":"<p>Company's address. Example: 4 Fancher Drive Richmond VIC 3121, Australia.</p>\n","type":"text"},{"key":"notes","value":"","description":"<p>Company's notes. Example: Plumber is installing new baffles.</p>\n","type":"text"},{"key":"external_id","value":"","description":"<p>Company's external ID. Example: 32f9c7f7-fee7-4b55-a769-06d8b686e850</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/companies/","description":"<p>Create a new Company.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/companies"],"query":[],"variable":[]}},"response":[{"id":"1d4de9db-a029-4dda-ada6-d2a347d95c4c","name":"Create a new Company","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"business_name","value":"Acme Corp","type":"text"},{"key":"mobile_number","value":"9491 570 156","type":"text"},{"key":"email","value":"sales@acme.com","type":"text"},{"key":"business_number","value":"5341 53242","type":"text"},{"key":"address","value":"4 Fancher Drive Richmond VIC 3121, Australia.","type":"text"},{"key":"notes","value":"Plumber is installing new baffles.","type":"text"},{"key":"external_id","value":"a09f3c5b-451a-4392-ad9c-32f34070cbbe","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/companies/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"6712\" // id of the created company\n}"}],"_postman_id":"bc075bce-5f8c-4380-a104-beda4406eb4f"},{"name":"Update a Company","id":"404ef148-fb6e-4257-92b4-249d04d35bd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"business_name","value":"","type":"text","description":"<p>Company's name</p>\n"},{"key":"mobile_number","value":"","type":"text","description":"<p>Company's mobile number</p>\n"},{"key":"email","value":"","type":"text","description":"<p>Company's email</p>\n"},{"key":"business_number","value":"","type":"text","description":"<p>Company's registration number</p>\n"},{"key":"address","value":"","type":"text","description":"<p>Company's address</p>\n"},{"key":"notes","value":"","type":"text","description":"<p>Notes</p>\n"}]},"url":"https://app.fieldinsight.com/public-api/companies/:company_id/","description":"<p>This endpoint allows to update individual fields of an existing company. One or more fields can be updated at once.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":company_id",""],"host":["https://app.fieldinsight.com/public-api/companies"],"query":[],"variable":[{"description":{"content":"<p>Id of the Company to update</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"}]}},"response":[{"id":"d5f37fc1-bdf7-4f00-b874-699143246d1e","name":"Update a Company's name","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"business_name","value":"2342","type":"text","description":"Never Late Electrical"}]},"url":{"raw":"https://app.fieldinsight.com/public-api/companies/:company_id/","host":["https://app.fieldinsight.com/public-api/companies"],"path":[":company_id",""],"variable":[{"key":"company_id","value":"3452","description":"Id of the Company to update"}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"404ef148-fb6e-4257-92b4-249d04d35bd3"}],"id":"284aa813-e952-4a8f-83ab-6d375a844a95","description":"<p>Endpoints for working with Companies</p>\n","event":[{"listen":"prerequest","script":{"id":"0eaefa7e-19ec-42a4-88c3-175feef06df5","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f11dd7ff-58b0-4269-9c52-166a76d39e2a","type":"text/javascript","exec":[""]}}],"_postman_id":"284aa813-e952-4a8f-83ab-6d375a844a95","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Sites","item":[{"name":"List Sites","id":"c86085bf-d87b-4305-8c15-ac72456948b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/sites/?id&email&cursor&page_size&order","description":"<p>Retrieve one or more Sites.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/sites"],"query":[{"description":{"content":"<p>Find one site by ID.</p>\n","type":"text/plain"},"key":"id","value":null},{"description":{"content":"<p>Find one or more sites by email (case insensitive).</p>\n","type":"text/plain"},"key":"email","value":null},{"description":{"content":"<p>Start from a specific position, Used for pagination.</p>\n","type":"text/plain"},"key":"cursor","value":null},{"description":{"content":"<p>Number of Results to return (min 1, max 100).</p>\n","type":"text/plain"},"key":"page_size","value":null},{"description":{"content":"<p>Order the ENTIRE set before pulling n=page_size from the top. 'name_asc' to sort by name ascending(a-z) or 'creation_time_desc' to sort reverse chronologically(2000-1990)</p>\n","type":"text/plain"},"key":"order","value":null}],"variable":[]}},"response":[{"id":"44ea0dec-410c-4567-9fc5-23bcb23dad27","name":"Find one site by ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://app.fieldinsight.com/public-api/sites/?id=552","host":["https://app.fieldinsight.com/public-api/sites"],"path":[""],"query":[{"key":"id","value":"552"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n   \"objects\": [\n        {\n            \"id\": \"552\",\n            \"first_name\": \"Chloe\",  // String(50)\n            \"last_name\": \"Ormsby\", // String(50)\n            \"business_name\": \"Acme Corp\", // String(200)\n            \"mobile_number\": \"9491 570 156\", // String(150)\n            \"email\": \"chloe@gmail.com\", // String(254)\n            \"notes\": \"The key is under the mat\", // String(10240)\n            \"url\": \"https://www.instagram.com/chloe199812/\", // String(1024)\n            \"address\": \"15 Madison Ave Richmond VIC 3121, Australia\" // String(500)\n        }\n        ...\n    ],\n    \"next_page_cursor\": \"gt/642\" // Repeat the same query again with cursor paramater set to this value to get the next page.\n}"}],"_postman_id":"c86085bf-d87b-4305-8c15-ac72456948b1"},{"name":"Create a new Site","id":"c7793184-cf56-44aa-b59e-867a6193ce88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"first_name","value":"","type":"text","description":"<p>Site's contact's first name. Example: Chloe.</p>\n"},{"key":"last_name","value":"","type":"text","description":"<p>Site's contact's last name. Example: Ormsby.</p>\n"},{"key":"business_name","value":"","type":"text","description":"<p>Site's Business's name. Example: Acme Corp</p>\n"},{"key":"company","value":"","type":"text","description":"<p>Site's Company's ID.</p>\n"},{"key":"mobile_number","value":"","type":"text","description":"<p>Site's contact's mobile number. Example: 9491 570 156.</p>\n"},{"key":"email","value":"","type":"text","description":"<p>Site's contact's email. Example: <a href=\"mailto:chloe@gmail.com\">chloe@gmail.com</a>.</p>\n"},{"key":"notes","value":"","type":"text","description":"<p>Site's notes. Example: The key is under the mat.</p>\n"},{"key":"address","value":"","type":"text","description":"<p>Site's address. Example: 15 Madison Ave Richmond VIC 3121, Australia.</p>\n"},{"key":"url","value":"","type":"text","description":"<p>Site's URL. <a href=\"https://www.instagram.com/chloe199812/\">https://www.instagram.com/chloe199812/</a></p>\n"},{"key":"external_id","value":"","description":"<p>Site's external ID.</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/sites/","description":"<p>Create a new Site.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/sites"],"query":[],"variable":[]}},"response":[{"id":"7e9a07c9-a808-4be7-8ff4-8627b4c6c2f0","name":"Create new Site","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"first_name","value":"Chloe","type":"text"},{"key":"last_name","value":"Ormsby","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/sites/"},"code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"4237\" // id of the created site\n}"}],"_postman_id":"c7793184-cf56-44aa-b59e-867a6193ce88"},{"name":"Update a Site","id":"a798bf6b-14c0-4b55-8a86-2f93516e289a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"first_name","value":"","type":"text","description":"<p>Site's contact's first name.</p>\n"},{"key":"last_name","value":"","type":"text","description":"<p>Site's contact's last name.</p>\n"},{"key":"business_name","value":"","type":"text","description":"<p>Site's business's name.</p>\n"},{"key":"company","value":"","type":"text","description":"<p>Site's Company's ID.</p>\n"},{"key":"mobile_number","value":"","type":"text","description":"<p>Site's contact's mobile number.</p>\n"},{"key":"email","value":"","type":"text","description":"<p>Site's contact's email.</p>\n"},{"key":"notes","value":"","type":"text","description":"<p>Site's notes.</p>\n"},{"key":"address","value":"","type":"text","description":"<p>Site's address.</p>\n"},{"key":"url","value":"","type":"text","description":"<p>Site's URL.</p>\n"},{"key":"external_id","value":"","description":"<p>Site's external ID</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/sites/:site_id/","description":"<p>This endpoint allows to update individual fields of an existing Site. One or more fields can be updated at once.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":site_id",""],"host":["https://app.fieldinsight.com/public-api/sites"],"query":[],"variable":[{"description":{"content":"<p>Id of the Site to update</p>\n","type":"text/plain"},"type":"any","value":"","key":"site_id"}]}},"response":[{"id":"7491095c-dc9d-42f8-9a37-0de487fbbe03","name":"Update a Site's address","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"address","value":"198 Shirley Street PIMPAMA QLD 4209","type":"text"}]},"url":{"raw":"https://app.fieldinsight.com/public-api/sites/:site_id/","host":["https://app.fieldinsight.com/public-api/sites"],"path":[":site_id",""],"variable":[{"key":"site_id","value":"8313","description":"Id of the Site to update"}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"a798bf6b-14c0-4b55-8a86-2f93516e289a"}],"id":"1b5211a0-f89f-4431-8da3-e6e70c397c9d","description":"<p>Endpoints for working with Sites</p>\n","event":[{"listen":"prerequest","script":{"id":"c5663016-5152-4cd8-806b-2d16933d2b8c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"905666a1-1f3e-408b-adc0-98a96b54f528","type":"text/javascript","exec":[""]}}],"_postman_id":"1b5211a0-f89f-4431-8da3-e6e70c397c9d","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Jobs","item":[{"name":"List Job Statuses","id":"6d864a78-e659-4059-af42-d64c883bd6eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/job-statuses/?name&cursor&page_size&order","description":"<p>Retrieve one or more Job statuses.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/job-statuses"],"query":[{"description":{"content":"<p>Find one Job Status by name, exact match (case sensitive).</p>\n","type":"text/plain"},"key":"name","value":null},{"description":{"content":"<p>Start from a specific position, used for pagination.</p>\n","type":"text/plain"},"key":"cursor","value":null},{"description":{"content":"<p>Number of Results to return (min 1, max 100).</p>\n","type":"text/plain"},"key":"page_size","value":null},{"description":{"content":"<p>Order the ENTIRE set before pulling n=page_size from the top. 'name_asc' to sort by name ascending(a-z) or 'creation_time_desc' to sort reverse chronologically(2000-1990)</p>\n","type":"text/plain"},"key":"order","value":null}],"variable":[]}},"response":[{"id":"5a9a6290-14c4-449f-a607-b19569c774c9","name":"Find a status by name","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://app.fieldinsight.com/public-api/job-statuses/?name=Scheduled","host":["https://app.fieldinsight.com/public-api/job-statuses"],"path":[""],"query":[{"key":"name","value":"Scheduled"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"next_page_cursor\": null,\n    \"objects\": [\n        {\n            \"id\": 772,\n            \"name\": \"Scheduled\"\n        }\n    ]\n}"}],"_postman_id":"6d864a78-e659-4059-af42-d64c883bd6eb"},{"name":"List Job Types","id":"e98589bf-73e1-4c86-b435-ea21acd16b91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/job-types/?name&cursor&page_size&order","description":"<p>Retrieve one or more Job types.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/job-types"],"query":[{"description":{"content":"<p>Find one Job Type by name, exact match (case sensitive).</p>\n","type":"text/plain"},"key":"name","value":null},{"description":{"content":"<p>Start from a specific position, Used for pagination.</p>\n","type":"text/plain"},"key":"cursor","value":null},{"description":{"content":"<p>Number of Results to return (min 1, max 100).</p>\n","type":"text/plain"},"key":"page_size","value":null},{"description":{"content":"<p>Order the ENTIRE set before pulling n=page_size from the top. 'name_asc' to sort by name ascending(a-z) or 'creation_time_desc' to sort reverse chronologically(2000-1990)</p>\n","type":"text/plain"},"key":"order","value":null}],"variable":[]}},"response":[{"id":"6cf30404-128e-4241-b985-2f14fa1eed90","name":"Find a job type by name","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://app.fieldinsight.com/public-api/job-types/?name=Installation","host":["https://app.fieldinsight.com/public-api/job-types"],"path":[""],"query":[{"key":"name","value":"Installation"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"next_page_cursor\": null,\n    \"objects\": [\n        {\n            \"id\": 1,\n            \"name\": \"Installation\"\n        }\n    ]\n}"}],"_postman_id":"e98589bf-73e1-4c86-b435-ea21acd16b91"},{"name":"List Jobs","id":"ef37bc4f-08d2-4038-afd7-f7e7f54453c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/jobs/?id&time_from&time_to&site&company&status&cursor&page_size&updated_from&updated_to&external_id","description":"<p>Retrieve one or more Jobs.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/jobs"],"query":[{"description":{"content":"<p>Find one job by ID.</p>\n","type":"text/plain"},"key":"id","value":null},{"description":{"content":"<p>Only include jobs that overlap in time with an interval starting at this time.</p>\n","type":"text/plain"},"key":"time_from","value":null},{"description":{"content":"<p>Only include jobs that overlap in time with an interval ending at this time.</p>\n","type":"text/plain"},"key":"time_to","value":null},{"description":{"content":"<p>Only include jobs that have a site with this ID.</p>\n","type":"text/plain"},"key":"site","value":null},{"description":{"content":"<p>Only include jobs that have a site with this company ID.</p>\n","type":"text/plain"},"key":"company","value":null},{"description":{"content":"<p>Only include jobs in a status with this ID.</p>\n","type":"text/plain"},"key":"status","value":null},{"description":{"content":"<p>Start from a specific position, used for pagination.</p>\n","type":"text/plain"},"key":"cursor","value":null},{"description":{"content":"<p>Number of Results to return (min 1, max 100).</p>\n","type":"text/plain"},"key":"page_size","value":null},{"description":{"content":"<p>Only include jobs that were updated last time on or after this time in UTC timezone. </p>\n","type":"text/plain"},"key":"updated_from","value":null},{"description":{"content":"<p>Only include jobs that were updated last time before this time in UTC timezone.</p>\n","type":"text/plain"},"key":"updated_to","value":null},{"description":{"content":"<p>Only include jobs with this external ID.</p>\n","type":"text/plain"},"key":"external_id","value":null}],"variable":[]}},"response":[{"id":"d07996ca-5714-4241-858f-accc545832fb","name":"Find jobs in a time range","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://app.fieldinsight.com/public-api/jobs/?time_from=2009-05-12T00:00:00&time_to=2009-05-13T00:00:00","host":["https://app.fieldinsight.com/public-api/jobs"],"path":[""],"query":[{"key":"time_from","value":"2009-05-12T00:00:00"},{"key":"time_to","value":"2009-05-13T00:00:00"}]}},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"10342\",\n        \"printable_number\": \"0-14\",\n        \"start_time\": \"2009-05-12T02:30:00Z\",\n        \"end_time\": \"2009-05-12T03:00:00Z\",\n        \"site\": {\n            \"id\": \"172\",\n            \"address\": \"1629 Bens Hill Rd, Koongawa SA 5650, Australia\"\n        },\n        \"status\": {\n            \"id\": \"772\",\n            \"name\": \"Scheduled\"\n        },\n        \"job_types\": [\n            {\n                \"id\": \"221\",\n                \"name\": \"Installation\"\n            },\n            {\n                \"id\": \"223\",\n                \"name\": \"Repairs\"\n            }\n        ],\n        \"workers\": [\n            {\n                \"id\": \"3312\",\n                \"name\": \"Grayson Keller\"\n            },\n            {\n                \"id\": \"5432\",\n                \"name\": \"Oswald Young\"\n            }\n        ],\n        \"creator\": {\n            \"id\": \"1442\",\n            \"name\": \"Jack Wilcher\"\n        },\n        \"created_at\": \"2009-05-01T10:05:00Z\", // Time in UTC timezone\n        \"updated_at\": \"2009-05-01T11:05:00Z\", // Time in UTC timezone\n        \"timesheet_hrs\": \"0.5\",\n        \"custom_fields\": [\n            {\n                \"id\": \"3442\",\n                \"field_type\": \"text\",\n                \"name\": \"Warranty Number\",\n                \"value\": \"G3A110215-1EQFA\"\n            },\n            {\n                \"id\": \"6631\",\n                \"field_type\": \"textarea\",\n                \"name\": \"Completion Notes\",\n                \"value\": \"Verified sufficient power from sub-panel.\"\n            },\n            {\n                \"id\": \"5132\",\n                \"field_type\": \"date\",\n                \"name\": \"Tentative Booked Date\",\n                \"value\": \"2009-05-12\"\n            },\n            {\n                \"id\": \"5244\",\n                \"field_type\": \"time\",\n                \"name\": \"On Site Time\",\n                \"value\": \"02:34:00\"\n            },\n            {\n                \"id\": \"4544\",\n                \"field_type\": \"checkbox\",\n                \"name\": \"Have Parts Been Ordered?\",\n                \"value\": true\n            },\n            {\n                \"id\": \"3251\",\n                \"field_type\": \"phone\",\n                \"name\": \"Additional Phone number\",\n                \"value\": \"0432 510 738\"\n            },\n            {\n                \"id\": \"6766\",\n                \"field_type\": \"select\",\n                \"name\": \"Instal Type\",\n                \"value\": {\n                    \"id\": \"3651\",\n                    \"name\": \"Side to Back\"\n                }\n            },\n            {\n                \"id\": \"6767\",\n                \"field_type\": \"multiselect\",\n                \"name\": \"Site Checks\",\n                \"value\": [\n                    {\n                        \"id\": \"3953\",\n                        \"name\": \"All staff have checked in\"\n                    },\n                    {\n                        \"id\": \"3954\",\n                        \"name\": \"All tools accounted for\"\n                    }\n                ]\n            }\n        ],\n        \"total_purchase_price_inc_tax\": \"321.00\",\n        \"total_sales_price_ex_tax\": \"450.00\"\n    }\n]"}],"_postman_id":"ef37bc4f-08d2-4038-afd7-f7e7f54453c9"},{"name":"List Job Inventory","id":"e0d8c5f2-b0a7-411d-b8f7-d5d387d78695","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/jobs/:job_id/inventory/","description":"<p>Retrieve Job inventory.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":job_id","inventory",""],"host":["https://app.fieldinsight.com/public-api/jobs"],"query":[],"variable":[{"description":{"content":"<p>Id of the Job</p>\n","type":"text/plain"},"type":"any","value":"","key":"job_id"}]}},"response":[{"id":"f5ea04ce-c3b5-4464-a129-5a32e9754eca","name":"Find a job Inventory","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://app.fieldinsight.com/public-api/jobs/:job_id/inventory/","host":["https://app.fieldinsight.com/public-api/jobs"],"path":[":job_id","inventory",""],"variable":[{"key":"job_id","value":"1121","description":"Id of the Job"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"line_items\":[\n    {\n      \"inv_type\":\"part\",\n      \"item_code\":{\n        \"id\":\"10\",\n        \"external_id\":\"ITM0000001\",\n        \"name\":\"ITM0000001\"\n      },\n      \"uom\":null,\n      \"cost_code\":{\n        \"id\":\"1\",\n        \"external_id\":\"0000\",\n        \"code\":\"0000\"\n      },\n      \"account_group\":null,\n      \"description\":\"Standard Keyboard\",\n      \"tax\":\"tax\",\n      \"estimated_hours_per_day\":\"1\",\n      \"work_duration_in_days\":1,\n      \"coverage_qty\":\"0\",\n      \"qty\":\"1\",\n      \"discount\":\"0\",\n      \"sales_unit_price\":\"0\",\n      \"sales_sub_total\":\"0\",\n      \"sales_tax_amount\":\"0\",\n      \"sales_total_inc_tax\":\"0\",\n      \"purchase_unit_price\":\"0\",\n      \"purchase_sub_total\":\"0\",\n      \"purchase_tax_amount\":\"0\",\n      \"purchase_total_inc_tax\":\"0\",\n      \"location\":{\n        \"external_id\":\"\"\n      }\n    },\n    {\n      \"inv_type\":\"part\",\n      \"item_code\":{\n        \"id\":\"60\",\n        \"external_id\":\"ELE32LED\",\n        \"name\":\"ELE32LED\"\n      },\n      \"uom\":null,\n      \"cost_code\":{\n        \"id\":\"2\",\n        \"external_id\":\"44 3\",\n        \"code\":\"44 3\"\n      },\n      \"account_group\":null,\n      \"description\":\"Sam 32-Inch LED HDTV\",\n      \"tax\":\"tax\",\n      \"estimated_hours_per_day\":\"1\",\n      \"work_duration_in_days\":1,\n      \"coverage_qty\":\"0\",\n      \"qty\":\"1\",\n      \"discount\":\"0\",\n      \"sales_unit_price\":\"565.95\",\n      \"sales_sub_total\":\"565.95\",\n      \"sales_tax_amount\":\"56.6\",\n      \"sales_total_inc_tax\":\"622.55\",\n      \"purchase_unit_price\":\"0\",\n      \"purchase_sub_total\":\"0\",\n      \"purchase_tax_amount\":\"0\",\n      \"purchase_total_inc_tax\":\"0\",\n      \"location\":{\n        \"external_id\":\"\"\n      }\n    }\n  ],\n  \"tax_rate\":\"10\",\n  \"sales_tax_base\":\"exclusive\",\n  \"sales_sub_total\":\"565.95\",\n  \"sales_tax_amount\":\"56.6\",\n  \"total_sales_price_ex_tax\":\"565.95\",\n  \"total_sales_price_inc_tax\":\"622.55\",\n  \"purchase_tax_base\":\"exclusive\",\n  \"purchase_sub_total\":\"0\",\n  \"total_purchase_price_inc_tax\":\"0\"\n}"}],"_postman_id":"e0d8c5f2-b0a7-411d-b8f7-d5d387d78695"},{"name":"Create a new Job","id":"15492226-1826-45b8-ac56-fde3e17d5220","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"start_time","value":"","type":"text","description":"<p>Job's start date/time. Example: 2021-02-12T09:00:00.</p>\n"},{"key":"end_time","value":"","type":"text","description":"<p>Job's end date/time. Example: 2021-02-12T10:00:00.</p>\n"},{"key":"unscheduled","value":"","type":"text","description":"<p>Create an unscheduled Job. Must be set to True.</p>\n"},{"key":"status","value":"","type":"text","description":"<p>Job's status ID</p>\n"},{"key":"site","value":"","type":"text","description":"<p>Job's site ID</p>\n"},{"key":"job_types","value":"","type":"text","description":"<p>Job's job type IDs</p>\n"},{"key":"job_notes","value":"","type":"text","description":"<p>Job's notes</p>\n"},{"key":"purchase_order_number","value":"","description":"<p>Job's purchase order number</p>\n","type":"text"},{"key":"workers","value":"","description":"<p>Worker IDs to assign to this job</p>\n","type":"text"},{"key":"external_id","value":"","description":"<p>Job's external ID</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/jobs/","description":"<p>Create a new Job.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/jobs"],"query":[],"variable":[]}},"response":[{"id":"49f89104-5580-4c3b-8e2c-59dd85454da0","name":"Create a new Job","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"start_time","value":"2021-02-12T09:00:00","type":"text"},{"key":"end_time","value":"2021-02-12T10:00:00","type":"text"},{"key":"unscheduled","value":"True","type":"text"},{"key":"status","value":"772","type":"text"},{"key":"site","value":"1550250","type":"text"},{"key":"job_types","value":"1","type":"text"},{"key":"job_notes","value":"Notes for the job","type":"text"},{"key":"purchase_order_number","value":"00001\n","type":"text"},{"key":"workers","value":"18444","description":"Worker IDs to assign to this job","type":"text"},{"key":"external_id","value":"f7dd4fcd-07c2-44c9-9105-8fda1db28744","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/jobs/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"5442\",\n    \"printable_number\": \"100\" // Job number visible to the user. String(100)\n}"}],"_postman_id":"15492226-1826-45b8-ac56-fde3e17d5220"},{"name":"Update a Job","id":"11703f5b-6fc6-42da-90b3-cdbd9f46e536","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"start_time","value":"","type":"text","description":"<p>Job's start date/time. Example: 2021-02-12T09:00:00.</p>\n"},{"key":"end_time","value":"","type":"text","description":"<p>Job's end date/time. Example: 2021-02-12T10:00:00.</p>\n"},{"key":"status","value":"","type":"text","description":"<p>Job's status ID</p>\n"},{"key":"site","value":"","type":"text","description":"<p>Job's site ID</p>\n"},{"key":"job_types","value":"","type":"text","description":"<p>Job's job type IDs</p>\n"},{"key":"job_notes","value":"","type":"text","description":"<p>Job's notes</p>\n"},{"key":"purchase_order_number","value":"","description":"<p>Job's purchase order number</p>\n","type":"text"},{"key":"workers","value":"","description":"<p>Worker IDs to assign to this job</p>\n","type":"text"},{"key":"external_id","value":"","description":"<p>Job's external ID</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/jobs/:job_id/","description":"<p>This endpoint allows to update individual fields of an existing Job. One or more fields can be updated at once.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":job_id",""],"host":["https://app.fieldinsight.com/public-api/jobs"],"query":[],"variable":[{"description":{"content":"<p>Id of the Job to update</p>\n","type":"text/plain"},"type":"any","value":"","key":"job_id"}]}},"response":[{"id":"d60f0e5c-17ec-44af-a659-76eb6bfdd153","name":"Update a Job's time","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"start_time","value":"2021-02-12T14:00:00","type":"text","description":"Job's start date/time. Example: 2021-02-12T09:00:00."},{"key":"end_time","value":"2021-02-12T15:00:00","type":"text","description":"Job's end date/time. Example: 2021-02-12T10:00:00."}]},"url":{"raw":"https://app.fieldinsight.com/public-api/jobs/:job_id/","host":["https://app.fieldinsight.com/public-api/jobs"],"path":[":job_id",""],"variable":[{"key":"job_id","value":"7740","description":"Id of the Job to update"}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"961194e7-2ee5-4659-b780-d41281e87753","name":"Update a Job's purchase order number","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"purchase_order_number","value":"0002","description":"Job's purchase order number","type":"text"}]},"url":{"raw":"https://app.fieldinsight.com/public-api/jobs/:job_id/","host":["https://app.fieldinsight.com/public-api/jobs"],"path":[":job_id",""],"variable":[{"key":"job_id","value":"7740","description":"Id of the Job to update"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"56c9b293-894c-4ffa-89c4-7cd6e5af7afc","name":"Assign workers to a job","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"start_time","value":"","type":"text","description":"Job's start date/time. Example: 2021-02-12T09:00:00.","disabled":true},{"key":"end_time","value":"","type":"text","description":"Job's end date/time. Example: 2021-02-12T10:00:00.","disabled":true},{"key":"status","value":"","type":"text","description":"Job's status ID","disabled":true},{"key":"site","value":"","type":"text","description":"Job's site ID","disabled":true},{"key":"job_types","value":"","type":"text","description":"Job's job type IDs","disabled":true},{"key":"job_notes","value":"","type":"text","description":"Job's notes","disabled":true},{"key":"purchase_order_number","value":"","description":"Job's purchase order number","type":"text","disabled":true},{"key":"workers","value":"1844","description":"Worker IDs to assign to this job","type":"text"}]},"url":{"raw":"https://app.fieldinsight.com/public-api/jobs/:job_id/","host":["https://app.fieldinsight.com/public-api/jobs"],"path":[":job_id",""],"variable":[{"key":"job_id","value":"","description":"Id of the Job to update"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"11703f5b-6fc6-42da-90b3-cdbd9f46e536"},{"name":"Upload a file to a Job","id":"1c80123a-0e52-4bcf-aad9-d783d861aa12","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept-encoding":true,"user-agent":true}},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"},{"key":"Content-Length","value":"","description":"<p>Size of the file</p>\n","type":"text"},{"key":"Content-Type","value":"","description":"<p>MIME type of the file (Use application/octet-stream if type is unknown)</p>\n","type":"text"}],"body":{"mode":"file","file":{"src":""}},"url":"https://app.fieldinsight.com/public-api/jobs/:job_id/attachments/upload/?name=","description":"<p>This endpoint allows to upload a file and attach it to a job.\nThe maximum file size that can be uploaded through the API is 10 MB.</p>\n<p>To upload a file make a POST request with the file size specified in the Content-Length header, the file name specified in the name parameter of the query and the file contents in the request body.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":job_id","attachments","upload",""],"host":["https://app.fieldinsight.com/public-api/jobs"],"query":[{"description":{"content":"<p>Name of the file</p>\n","type":"text/plain"},"key":"name","value":""}],"variable":[{"description":{"content":"<p>Id of the job to attach the file to</p>\n","type":"text/plain"},"type":"any","value":"","key":"job_id"}]}},"response":[{"id":"731554e5-cfc3-4a53-954d-052475c59c5d","name":"Upload a file using curl","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"},{"key":"Content-Length","value":"2464","description":"Size of the file","type":"text"},{"key":"Content-Type","value":"image/png","description":"MIME type of the file","type":"text"}],"body":{"mode":"file","file":{"src":"r_PFVlby7/example.png"}},"url":{"raw":"https://app.fieldinsight.com/public-api/jobs/:job_id/attachments/upload/?name=example.png","host":["https://app.fieldinsight.com/public-api/jobs"],"path":[":job_id","attachments","upload",""],"query":[{"key":"name","value":"example.png","description":"Name of the file"}],"variable":[{"key":"job_id","value":"3432","description":"Id of the job to attach the file to"}]}},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"File uploaded successfully.\"\n}"}],"_postman_id":"1c80123a-0e52-4bcf-aad9-d783d861aa12"}],"id":"0c28e195-2b6f-45d5-857c-41215a62390f","description":"<p>Endpoints for working with Jobs</p>\n","_postman_id":"0c28e195-2b6f-45d5-857c-41215a62390f","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Assets","item":[{"name":"List Assets","id":"71377d7e-7db6-4442-bc78-3bfc148d61ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/assets/?id&updated_from &updated_to","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/assets"],"query":[{"description":{"content":"<p>Only include assets with this ID.</p>\n","type":"text/plain"},"key":"id","value":null},{"description":{"content":"<p>Only include assets that were updated last time on or after this time in UTC timezone. </p>\n","type":"text/plain"},"key":"updated_from ","value":null},{"description":{"content":"<p>Only include assets that were updated last time before this time in UTC timezone.</p>\n","type":"text/plain"},"key":"updated_to","value":null}],"variable":[]}},"response":[{"id":"cfd18c07-61e9-466c-a1ae-dd9339e86fec","name":"List Assets","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://app.fieldinsight.com/public-api/assets/?id&updated_from &updated_to","host":["https://app.fieldinsight.com/public-api/assets"],"path":[""],"query":[{"key":"id","value":null,"description":"Only include assets with this ID."},{"key":"updated_from ","value":null,"description":"Only include assets that were updated last time on or after this time in UTC timezone. "},{"key":"updated_to","value":null,"description":"Only include assets that were updated last time before this time in UTC timezone."}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"next_page_cursor\": null,\n    \"prev_page_cursor\": null,\n    \"objects\": [\n        {\n            \"id\": \"184433\",\n            \"custom_id\": \"4542w34\",\n            \"serial_number\": \"serial_number\",\n            \"qty\": 1,\n            \"asset_type\": {\n                \"id\": \"1760\",\n                \"name\": \"Type 1\"\n            },\n            \"model\": {\n                \"id\": \"20023\",\n                \"name\": \"model_number\"\n            },\n            \"created_at\": \"2009-05-01T10:05:00Z\", // Time in UTC timezone\n            \"updated_at\": \"2009-05-01T11:05:00Z\", // Time in UTC timezone\n            \"custom_fields\": [\n                {\n                    \"id\": \"1432\",\n                    \"field_type\": \"text\",\n                    \"name\": \"Warranty Number\",\n                    \"value\": \"G3A110215-1EQFA\"\n                },\n                {\n                    \"id\": \"7242\",\n                    \"field_type\": \"text\",\n                    \"name\": \"Pressure\",\n                    \"value\": \"278\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"71377d7e-7db6-4442-bc78-3bfc148d61ca"},{"name":"List Asset types","id":"fd842e11-40f9-4708-8c97-6afd5514e145","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.fieldinsight.com/public-api/asset-types/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/asset-types"],"query":[],"variable":[]}},"response":[{"id":"020fa689-1fef-4573-84a6-6784b4faa2df","name":"List Asset types","originalRequest":{"method":"GET","header":[],"url":"https://app.fieldinsight.com/public-api/asset-types/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"objects\": [\n        {\n            \"id\": 1760,\n            \"name\": \"Type 1\"\n        },\n        {\n            \"id\": 1761,\n            \"name\": \"Type 2\"\n        },\n        {\n            \"id\": 1762,\n            \"name\": \"Type 3\"\n        }\n    ],\n    \"next_page_cursor\": null\n}"}],"_postman_id":"fd842e11-40f9-4708-8c97-6afd5514e145"},{"name":"List Asset custom fields","id":"2abd2e11-cd8c-4fa6-ae5b-746932410b89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.fieldinsight.com/public-api/custom-fields/assets/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":["assets",""],"host":["https://app.fieldinsight.com/public-api/custom-fields"],"query":[],"variable":[]}},"response":[{"id":"b0e8cef6-e81b-416d-a557-2be26cfcd1a6","name":"List Asset custom fields","originalRequest":{"method":"GET","header":[],"url":"https://app.fieldinsight.com/public-api/custom-fields/assets/"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"objects\": [\n    {\n      \"id\": 29751,\n      \"name\": \"Checkbox\",\n      \"field_type\": \"checkbox\"\n    },\n    {\n      \"id\": 29752,\n      \"name\": \"Number\",\n      \"field_type\": \"decimal\"\n    },\n    {\n      \"id\": 29750,\n      \"name\": \"Text Field\",\n      \"field_type\": \"text\"\n    }\n  ],\n  \"next_page_cursor\": null,\n  \"prev_page_cursor\": null\n}"}],"_postman_id":"2abd2e11-cd8c-4fa6-ae5b-746932410b89"},{"name":"Create Asset","id":"0783d2c7-f01b-4d94-90bf-06b7f0d8da56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"custom_id","value":"","type":"text"},{"key":"site","value":"","type":"text"},{"key":"notes","value":"","type":"text"},{"key":"customer_reference","value":"","type":"text"},{"key":"model_number","value":"","type":"text"},{"key":"serial_number","value":"","type":"text"},{"key":"expiry_date","value":"","type":"text"},{"key":"commissioning_date","value":"","type":"text"},{"key":"installation_date","value":"","type":"text"},{"key":"installer","value":"","type":"text"},{"key":"asset_type","value":"","type":"text"},{"key":"qty","value":"","type":"text"},{"key":"custom-field","value":"","description":"<p>See examples for usage</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/assets/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/assets"],"query":[],"variable":[]}},"response":[{"id":"55728eb3-cfa3-4067-a4cf-ba55cb69d737","name":"Create Asset","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"custom_id","value":"4542w34","type":"text"},{"key":"site","value":"1710813","type":"text"},{"key":"notes","value":"some notes","type":"text"},{"key":"customer_reference","value":"custref","type":"text"},{"key":"model_number","value":"model_number","type":"text"},{"key":"serial_number","value":"serial_number","type":"text"},{"key":"expiry_date","value":"2021-10-11","type":"text"},{"key":"commissioning_date","value":"2021-08-11","type":"text"},{"key":"installation_date","value":"2021-09-11","type":"text"},{"key":"installer","value":"installer","type":"text"},{"key":"asset_type","value":"1760","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/assets/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": 184433\n}"},{"id":"959c9175-2b77-4069-b462-f71d9320dcfc","name":"Create Asset - With custom field","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/javascript","type":"text"}],"body":{"mode":"raw","raw":"\n//Custom fields must be passed as custom-field.{Custom ID} ex:\n//custom-field.29752=51&custom-field.29751=true\n//Javascript with Nodes QS library : https://www.npmjs.com/package/qs\nlet object = {\n    \"custom-field.123\": 2,\n    \"custom-field.321\": 1\n}\nqs.stringify(object);\n//returns 'custom-field.123=2&custom-field.321=1'\n//The allow dots option may allow you to parse this from an object easily.\nlet object2 = {\n    //Rest of asset request ommited\n    \"custom-field\" : {\n        \"123\":2, \n        \"321\":1\n    }\n}\n//Using the Allow Dots parser option.\nqs.stringify(object2, {allowDots: true});\n//returns 'custom-field.123=2&custom-field.321=1'","options":{"raw":{"language":"javascript"}}},"url":"https://app.fieldinsight.com/public-api/assets/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"0783d2c7-f01b-4d94-90bf-06b7f0d8da56"},{"name":"Update Asset","id":"6701b4ec-fdc0-459d-8d85-e08a81fde6de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"custom_id","value":"","type":"text"},{"key":"site","value":"","type":"text"},{"key":"notes","value":"","type":"text"},{"key":"customer_reference","value":"","type":"text"},{"key":"model_number","value":"","type":"text"},{"key":"serial_number","value":"","type":"text"},{"key":"expiry_date","value":"","type":"text"},{"key":"commissioning_date","value":"","type":"text"},{"key":"installation_date","value":"","type":"text"},{"key":"installer","value":"","type":"text"},{"key":"asset_type","value":"","type":"text"},{"key":"qty","value":"","type":"text"},{"key":"custom-field","value":"","description":"<p>See examples for usage</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/assets/ASSET_ID/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":["ASSET_ID",""],"host":["https://app.fieldinsight.com/public-api/assets"],"query":[],"variable":[]}},"response":[{"id":"80905e23-3af5-4679-a275-02bc1ed138b1","name":"Update Asset","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"custom_id","value":"4542w34","type":"text","disabled":true},{"key":"site","value":"1710813","type":"text","disabled":true},{"key":"notes","value":"some notes","type":"text","disabled":true},{"key":"customer_reference","value":"custref","type":"text","disabled":true},{"key":"model_number","value":"model_number","type":"text","disabled":true},{"key":"serial_number","value":"serial_number_two","type":"text"},{"key":"expiry_date","value":"2021-10-11","type":"text","disabled":true},{"key":"commissioning_date","value":"2021-08-11","type":"text","disabled":true},{"key":"installation_date","value":"2021-09-11","type":"text","disabled":true},{"key":"installer","value":"installer","type":"text","disabled":true},{"key":"asset_type","value":"1760","type":"text","disabled":true},{"key":"qty","value":"1","type":"text","disabled":true}]},"url":"https://app.fieldinsight.com/public-api/assets/184429/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""},{"id":"9e655238-f9b6-4a7d-af6f-e9dfdf5b2a23","name":"Update Asset - With custom field","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/javascript","type":"text"}],"body":{"mode":"raw","raw":"\n//Custom fields must be passed as custom-field.{Custom ID} ex:\n//custom-field.29752=51&custom-field.29751=true\n//Javascript with Nodes QS library : https://www.npmjs.com/package/qs\nlet object = {\n    \"custom-field.123\": 2,\n    \"custom-field.321\": 1\n}\nqs.stringify(object);\n//returns 'custom-field.123=2&custom-field.321=1'\n//The allow dots option may allow you to parse this from an object easily.\nlet object2 = {\n    //Rest of asset request ommited\n    \"custom-field\" : {\n        \"123\":2, \n        \"321\":1\n    }\n}\n//Using the Allow Dots parser option.\nqs.stringify(object2, {allowDots: true});\n//returns 'custom-field.123=2&custom-field.321=1'","options":{"raw":{"language":"javascript"}}},"url":"https://app.fieldinsight.com/public-api/assets/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6701b4ec-fdc0-459d-8d85-e08a81fde6de"}],"id":"f1bc4930-6325-48aa-8e21-26b29c663041","_postman_id":"f1bc4930-6325-48aa-8e21-26b29c663041","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Assets on Jobs","item":[{"name":"Remove asset from Job","id":"2c26411e-360b-4f00-8ec9-fde352965929","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.fieldinsight.com/public-api/jobs/:job_id/assets/:asset_id/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":job_id","assets",":asset_id",""],"host":["https://app.fieldinsight.com/public-api/jobs"],"query":[],"variable":[{"description":{"content":"<p>Job ID</p>\n","type":"text/plain"},"type":"any","value":null,"key":"job_id"},{"description":{"content":"<p>Asset ID</p>\n","type":"text/plain"},"type":"any","value":null,"key":"asset_id"}]}},"response":[{"id":"c36c52cf-283f-4196-99cc-a4e153334703","name":"Remove asset from Job","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://app.fieldinsight.com/public-api/jobs/:job_id/assets/:asset_id/","host":["https://app.fieldinsight.com/public-api/jobs"],"path":[":job_id","assets",":asset_id",""],"variable":[{"key":"job_id","value":"10146777","description":"Job ID"},{"key":"asset_id","value":"184433","description":"Asset ID"}]}},"code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2c26411e-360b-4f00-8ec9-fde352965929"},{"name":"List Assets selected on jobs","id":"0924fc6e-f452-4b38-87f2-2ee56c7f0d59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/jobs/assets/?job=","description":"<p>This endpoint returns assets marked as 'used' on jobs.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":["assets",""],"host":["https://app.fieldinsight.com/public-api/jobs"],"query":[{"description":{"content":"<p>Only include assets selected on a job with this ID. This parameter can be specified more than once.</p>\n","type":"text/plain"},"key":"job","value":""}],"variable":[]}},"response":[{"id":"20060bc3-9089-4557-a745-0c29f452bc70","name":"List Job Assets","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.fieldinsight.com/public-api/jobs/assets/?job=6711","host":["https://app.fieldinsight.com/public-api/jobs"],"path":["assets",""],"query":[{"key":"job","value":"6711"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"next_page_cursor\": null,\n    \"objects\": [\n        {\n            \"id\": 1432, // asset's id\n            \"job_id\": \"6711\", // job's id\n            \"custom_id\": \"A-1432\" // asset's custom id\n        },\n        {\n            \"id\": 1433,\n            \"job_id\": \"6711\",\n            \"custom_id\": \"A-1433\"\n        }\n    ]\n}"}],"_postman_id":"0924fc6e-f452-4b38-87f2-2ee56c7f0d59"},{"name":"Add asset to Job","id":"57f6da99-1c73-449a-b85a-bcb05ef5e2ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"asset","value":"","description":"<p>Asset ID</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/jobs/:job_id/assets/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":job_id","assets",""],"host":["https://app.fieldinsight.com/public-api/jobs"],"query":[],"variable":[{"description":{"content":"<p>Job ID</p>\n","type":"text/plain"},"type":"any","value":null,"key":"job_id"}]}},"response":[{"id":"61d106f2-36d8-494f-a08a-6b5d778e1cb8","name":"Add asset to Job","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"asset","value":"184433","description":"Asset ID","type":"text"}]},"url":{"raw":"https://app.fieldinsight.com/public-api/jobs/:job_id/assets/","host":["https://app.fieldinsight.com/public-api/jobs"],"path":[":job_id","assets",""],"variable":[{"key":"job_id","value":"10146777","description":"Job ID"}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"57f6da99-1c73-449a-b85a-bcb05ef5e2ba"}],"id":"a6ffe621-91ce-4db7-8e7c-5ae1e8cd0ef1","_postman_id":"a6ffe621-91ce-4db7-8e7c-5ae1e8cd0ef1","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Business","item":[{"name":"Get business details","id":"e7d21c0c-ef74-473d-b06e-17719948298f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/business/","description":"<p>Returns fields describing the business.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/business"],"query":[],"variable":[]}},"response":[{"id":"920d1c88-35c7-4088-8d7a-ac20a6c0a9a7","name":"Get business details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/business/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5673,\n    \"name\": \"My Company\",\n    \"email\": \"sales@mycompany.com\"\n}"}],"_postman_id":"e7d21c0c-ef74-473d-b06e-17719948298f"}],"id":"ef411c2c-579f-4816-9e3f-41fa13e74b49","description":"<p>Information describing the business account the API client connected to.</p>\n","_postman_id":"ef411c2c-579f-4816-9e3f-41fa13e74b49","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Users","item":[{"name":"GET Users","id":"d4f42c5a-7393-4349-91b7-45ad7cad0ce0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.fieldinsight.com/public-api/users/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/users"],"query":[{"disabled":true,"key":"username_exact","value":"dev"}],"variable":[]}},"response":[{"id":"0e6effd8-ba68-4c58-86f5-52e01d34a364","name":"GET all users","originalRequest":{"method":"GET","header":[],"url":"https://app.fieldinsight.com/public-api/users/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"objects\": [\n    {\n      \"id\": \"18445\",\n      \"external_id\": \"\",\n      \"first_name\": \"Bob\",\n      \"last_name\": \"\",\n      \"email\": \"tech1_dev@fieldinsight.com\",\n      \"username\": \"tech1_dev@fieldinsight.com\"\n    },\n    {\n      \"id\": \"18444\",\n      \"external_id\": \"\",\n      \"first_name\": \"Dev\",\n      \"last_name\": \"One\",\n      \"email\": \"dev@fieldinsight.com\",\n      \"username\": \"dev@fieldinsight.com\"\n    },\n    {\n      \"id\": \"18446\",\n      \"external_id\": \"\",\n      \"first_name\": \"Frank\",\n      \"last_name\": \"\",\n      \"email\": \"tech2_dev@fieldinsight.com\",\n      \"username\": \"tech2_dev@fieldinsight.com\"\n    }\n  ],\n  \"next_page_cursor\": null,\n  \"prev_page_cursor\": null\n}"},{"id":"9d878e67-a9ac-4e20-b1ad-f27dfaa42aa4","name":"GET a single user by username","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.fieldinsight.com/public-api/users/?username_exact=tech2_dev@fieldinsight.com","host":["https://app.fieldinsight.com/public-api/users"],"path":[""],"query":[{"key":"username_exact","value":"tech2_dev@fieldinsight.com"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"objects\": [\n    {\n      \"id\": \"18446\",\n      \"external_id\": \"\",\n      \"first_name\": \"Frank\",\n      \"last_name\": \"\",\n      \"email\": \"tech2_dev@fieldinsight.com\",\n      \"username\": \"tech2_dev@fieldinsight.com\"\n    }\n  ],\n  \"next_page_cursor\": null,\n  \"prev_page_cursor\": null\n}"}],"_postman_id":"d4f42c5a-7393-4349-91b7-45ad7cad0ce0"}],"id":"4f86af0e-b107-4671-92ad-af0f4042a870","_postman_id":"4f86af0e-b107-4671-92ad-af0f4042a870","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Inventory","item":[{"name":"Create Or Update Item","id":"9eddaea0-179b-4c46-b410-49069832fd9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"external_id","value":"","description":"<p>A unique identifier of the asset (required). Max length is 36 characters.</p>\n","type":"text"},{"key":"inv_type","value":"","description":"<p>Type of the inventory item, e.g., service, part (required).</p>\n","type":"text"},{"key":"code","value":"","description":"<p>Name of the item. Single line, max length is 255 characters.</p>\n","type":"text"},{"key":"sales","value":"","description":"<p>Sales price of the item in the decimal format. Example: 100.42.</p>\n","type":"text"},{"key":"purchase","value":"","description":"<p>Purchase price of the item in the decimal format. Example: 90.87.</p>\n","type":"text"},{"key":"description","value":"","description":"<p>Description of the item. Multiline, max length is 2000 characters.</p>\n","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/inventory/","description":"<p>This andpoint allows to either create or update an Inventory Item identified by external_id. It looks for an item matching to specified external_id and updates it if found. If not found creates a new Item. Returns internal id of the item in Fieldinsight.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/inventory"],"query":[],"variable":[]}},"response":[{"id":"299252fc-2731-4475-922d-4ad9eb3b6999","name":"Create Or Update a Product Item","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"external_id","value":"dac32a3d-e587-435c-9ea5-dc9d9a7594fa","type":"text"},{"key":"inv_type","value":"part","type":"text"},{"key":"code","value":"Subatomic antigravity cleaner","type":"text"},{"key":"sales","value":"399.99","type":"text"},{"key":"purchase","value":"100","type":"text"},{"key":"description","value":"The device is equipped with a proprietary antigravity generator,\nallowing it to effortlessly float in mid-air and navigate any surface with ease. ","type":"text"}]},"url":"https://app.fieldinsight.com/public-api/inventory/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"756231"}],"_postman_id":"9eddaea0-179b-4c46-b410-49069832fd9f"}],"id":"89094f46-eb7c-4cd1-887f-3cb4668f896c","_postman_id":"89094f46-eb7c-4cd1-887f-3cb4668f896c","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Invoices","item":[{"name":"Get Invoice details","id":"ddc2f71a-3f72-4b62-80a9-d11f40d2ae97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN"}],"url":"https://app.fieldinsight.com/public-api/invoices/:invoice_id/","description":"<p>Returns fields describing the Invoice.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":invoice_id",""],"host":["https://app.fieldinsight.com/public-api/invoices"],"query":[],"variable":[{"description":{"content":"<p>Id of the Invoice</p>\n","type":"text/plain"},"type":"any","value":"111","key":"invoice_id"}]}},"response":[{"id":"b52f9bb6-16ce-45ba-8c8c-ce1a569dec6f","name":"Get Invoice details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer Ym9zY236Ym9zY28="}],"url":"https://app.fieldinsight.com/public-api/invoices/222/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\":\"11\",\n  \"printable_number\":\"INV-0001\",\n  \"title\":\"Invoice 1\",\n  \"created_at\":\"2024-01-19T20:38:03+1100\",\n  \"updated_at\":\"2024-03-20T18:54:25+1100\",\n  \"site\":null,\n  \"project\":{\n    \"id\": 1,\n    \"number\": 1\n    \"external_id\": \"PR000001\"\n  },\n  \"workflow\":{\n    \"id\":\"1\",\n    \"name\":\"Service\"\n  },\n  \"business_area\":null,\n  \"business_division\":null,\n  \"jobs\":[\n    \n  ],\n  \"sub_total\":\"300\",\n  \"tax_amount\":\"30\",\n  \"total\":\"330\",\n  \"sections\":[\n    {\n      \"description\":\"<h3></h3>\",\n      \"allotted_budget\":\"0\",\n      \"line_items\":[\n        {\n          \"sales_price\":\"200\",\n          \"qty\":\"1\",\n          \"discount\":\"0\",\n          \"description\":\"Standard Keyboard\",\n          \"item_code\":{\n            \"id\":\"10\",\n            \"external_id\":\"ITM0000001\",\n            \"name\":\"ITM0000001\"\n          },\n          \"location\":{\n            \"id\":\"1\",\n            \"external_id\":\"\",\n            \"type\":\"warehouse\",\n            \"name\":\"Warehouse\"\n          },\n          \"job\":null\n        },\n        {\n          \"sales_price\":\"100\",\n          \"qty\":\"1\",\n          \"discount\":\"0\",\n          \"description\":\"\",\n          \"item_code\":{\n            \"id\":\"1\",\n            \"external_id\":\"\",\n            \"name\":\"Electrical Labour\"\n          },\n          \"location\":null,\n          \"job\":null\n        }\n      ]\n    }\n  ],\n  \"recipient\":{\n    \"id\": 10,\n    \"type\": \"site\",\n    \"name\": \"John Smith\"\n  },\n  \"status\":\"draft\",\n  \"date\":\"2024-01-19\",\n  \"due_date\": \"2024-01-31\",\n  \"paid_date\": \"2024-01-25\",\n  \"paid_amount\": 100,\n  \"owing_amount\": 0,\n  \"purchase_order_number\": \"PO0001\",\n}"}],"_postman_id":"ddc2f71a-3f72-4b62-80a9-d11f40d2ae97"},{"name":"Get Invoice list","id":"d2930efd-165e-496b-83e8-9308734c9367","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN"}],"url":"https://app.fieldinsight.com/public-api/invoices/?update_from=2024-01-01T00:00:00&update_to=2024-01-01T23:59:59&external_id=000001&job_visit=111","description":"<p>Returns fields describing the Invoice.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/invoices"],"query":[{"description":{"content":"<p>Only include documents that were updated last time on or after this time in UTC timezone. </p>\n","type":"text/plain"},"key":"update_from","value":"2024-01-01T00:00:00"},{"description":{"content":"<p>Only include documents that were updated last time before this time in UTC timezone.</p>\n","type":"text/plain"},"key":"update_to","value":"2024-01-01T23:59:59"},{"description":{"content":"<p>Only include documents with this exiternal_id.</p>\n","type":"text/plain"},"key":"external_id","value":"000001"},{"description":{"content":"<p>Only include documents that are associated with the specified job visit.</p>\n","type":"text/plain"},"key":"job_visit","value":"111"}],"variable":[]}},"response":[{"id":"2be37ea1-f332-4a45-b5f3-a97393e8fdf8","name":"Get Invoices","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer Ym9zY236Ym9zY28="}],"url":"https://app.fieldinsight.com/public-api/invoices/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\":\"11\",\n    \"printable_number\":\"INV-0001\",\n    \"title\":\"Invoice 1\",\n    \"created_at\":\"2024-01-19T20:38:03+1100\",\n    \"updated_at\":\"2024-03-20T18:54:25+1100\",\n    \"site\":null,\n    \"project\":{\n      \"id\": 1,\n      \"number\": 1,\n      \"external_id\": \"PR000001\"\n    },\n    \"workflow\":{\n      \"id\":\"1\",\n      \"name\":\"Service\"\n    },\n    \"business_area\":null,\n    \"business_division\":null,\n    \"jobs\":[\n      \n    ],\n    \"sub_total\":\"300\",\n    \"tax_amount\":\"30\",\n    \"total\":\"330\",\n    \"sections\":[\n      {\n        \"description\":\"<h3></h3>\",\n        \"allotted_budget\":\"0\",\n        \"line_items\":[\n          {\n            \"sales_price\":\"200\",\n            \"qty\":\"1\",\n            \"discount\":\"0\",\n            \"description\":\"Standard Keyboard\",\n            \"item_code\":{\n              \"id\":\"10\",\n              \"external_id\":\"ITM0000001\",\n              \"name\":\"ITM0000001\"\n            },\n            \"location\":{\n              \"id\":\"1\",\n              \"external_id\":\"\",\n              \"type\":\"warehouse\",\n              \"name\":\"Warehouse\"\n            },\n            \"job\":null\n          },\n          {\n            \"sales_price\":\"100\",\n            \"qty\":\"1\",\n            \"discount\":\"0\",\n            \"description\":\"\",\n            \"item_code\":{\n              \"id\":\"1\",\n              \"external_id\":\"\",\n              \"name\":\"Electrical Labour\"\n            },\n            \"location\":null,\n            \"job\":null\n          }\n        ]\n      }\n    ],\n    \"recipient\":{\n      \"id\": 10,\n      \"type\": \"site\",\n      \"name\": \"John Smith\"\n    },\n    \"status\":\"draft\",\n    \"date\":\"2024-01-19\",\n    \"due_date\": \"2024-01-31\",\n    \"paid_date\": \"2024-01-25\",\n    \"paid_amount\": 100,\n    \"owing_amount\": 0,\n    \"purchase_order_number\": \"PO0001\"\n  }\n]"}],"_postman_id":"d2930efd-165e-496b-83e8-9308734c9367"},{"name":"Get Invoice PDF","id":"fe6cdb50-21d5-4094-8c1b-1c414fbe8027","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/invoices/:invoice_id/pdf/","description":"<p>This endpoint generates a PDF document. It returns a response with status 302 and a url of the generated file in the Location header.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":invoice_id","pdf",""],"host":["https://app.fieldinsight.com/public-api/invoices"],"query":[],"variable":[{"type":"any","value":"","key":"invoice_id"}]}},"response":[{"id":"7b9ea0a5-8562-482a-80bd-133681b7acf9","name":"Get Invoice PDF","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer Ym9zY236Ym9zY28="}],"url":"https://app.fieldinsight.com/public-api/invoices/222/pdf/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"fe6cdb50-21d5-4094-8c1b-1c414fbe8027"}],"id":"81e32b63-d5aa-4421-be45-ed43a56182f6","_postman_id":"81e32b63-d5aa-4421-be45-ed43a56182f6","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Quotes","item":[{"name":"Get Quote details","id":"a68c5cbf-c050-446a-9b23-190241a01039","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/quotes/:quote_id/","description":"<p>Returns fields describing the Quote.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":quote_id",""],"host":["https://app.fieldinsight.com/public-api/quotes"],"query":[],"variable":[{"description":{"content":"<p>Id of the Quote</p>\n","type":"text/plain"},"type":"any","value":"111","key":"quote_id"}]}},"response":[{"id":"d775c949-c3b6-4c47-b505-fc9fe927e65f","name":"Get Quote details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer Ym9zY236Ym9zY28="}],"url":"https://app.fieldinsight.com/public-api/quotes/11/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\":\"11\",\n  \"printable_number\":\"QUO-0001\",\n  \"title\":\"\",\n  \"created_at\":\"2024-01-19T20:38:03+1100\",\n  \"updated_at\":\"2024-03-20T18:54:25+1100\",\n  \"site\":null,\n  \"project\":null,\n  \"workflow\":{\n    \"id\":\"1\",\n    \"name\":\"Service\"\n  },\n  \"business_area\":null,\n  \"business_division\":null,\n  \"jobs\":[\n    \n  ],\n  \"sub_total\":\"300\",\n  \"tax_amount\":\"30\",\n  \"total\":\"330\",\n  \"sections\":[\n    {\n      \"description\":\"<h3></h3>\",\n      \"allotted_budget\":\"0\",\n      \"line_items\":[\n        {\n          \"sales_price\":\"200\",\n          \"qty\":\"1\",\n          \"discount\":\"0\",\n          \"description\":\"Standard Keyboard\",\n          \"item_code\":{\n            \"id\":\"10\",\n            \"external_id\":\"ITM0000001\",\n            \"name\":\"ITM0000001\"\n          },\n          \"location\":{\n            \"id\":\"1\",\n            \"external_id\":\"\",\n            \"type\":\"warehouse\",\n            \"name\":\"Warehouse\"\n          },\n          \"job\":null\n        },\n        {\n          \"sales_price\":\"100\",\n          \"qty\":\"1\",\n          \"discount\":\"0\",\n          \"description\":\"\",\n          \"item_code\":{\n            \"id\":\"1\",\n            \"external_id\":\"\",\n            \"name\":\"Electrical Labour\"\n          },\n          \"location\":null,\n          \"job\":null\n        }\n      ]\n    }\n  ],\n  \"recipient\":null,\n  \"status\":\"draft\",\n  \"date\":\"2024-01-19\",\n  \"accepted_date\":null,\n  \"expected_start_date\":null,\n  \"markup\":\"100\"\n}"}],"_postman_id":"a68c5cbf-c050-446a-9b23-190241a01039"},{"name":"Get Quote list","id":"d8614f91-a680-4bd6-bb48-22317b929762","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN"}],"url":"https://app.fieldinsight.com/public-api/quotes/?update_from=2024-01-01T00:00:00&update_to=2024-01-01T23:59:59&external_id=000001&job_visit=111","description":"<p>Returns fields describing the Quote.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/quotes"],"query":[{"description":{"content":"<p>Only include documents that were updated last time on or after this time in UTC timezone. </p>\n","type":"text/plain"},"key":"update_from","value":"2024-01-01T00:00:00"},{"description":{"content":"<p>Only include documents that were updated last time before this time in UTC timezone.</p>\n","type":"text/plain"},"key":"update_to","value":"2024-01-01T23:59:59"},{"description":{"content":"<p>Only include documents with this exiternal_id.</p>\n","type":"text/plain"},"key":"external_id","value":"000001"},{"description":{"content":"<p>Only include documents that are associated with the specified job visit.</p>\n","type":"text/plain"},"key":"job_visit","value":"111"}],"variable":[]}},"response":[{"id":"81e400c1-7bc3-4c03-9c74-de67872f2cfd","name":"Get Quotes","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer Ym9zY236Ym9zY28="}],"url":"https://app.fieldinsight.com/public-api/quotes/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\":\"11\",\n    \"printable_number\":\"QUO-0001\",\n    \"title\":\"\",\n    \"created_at\":\"2024-01-19T20:38:03+1100\",\n    \"updated_at\":\"2024-03-20T18:54:25+1100\",\n    \"site\":null,\n    \"project\":null,\n    \"workflow\":{\n      \"id\":\"1\",\n      \"name\":\"Service\"\n    },\n    \"business_area\":null,\n    \"business_division\":null,\n    \"jobs\":[\n      \n    ],\n    \"sub_total\":\"300\",\n    \"tax_amount\":\"30\",\n    \"total\":\"330\",\n    \"sections\":[\n      {\n        \"description\":\"<h3></h3>\",\n        \"allotted_budget\":\"0\",\n        \"line_items\":[\n          {\n            \"sales_price\":\"200\",\n            \"qty\":\"1\",\n            \"discount\":\"0\",\n            \"description\":\"Standard Keyboard\",\n            \"item_code\":{\n              \"id\":\"10\",\n              \"external_id\":\"ITM0000001\",\n              \"name\":\"ITM0000001\"\n            },\n            \"location\":{\n              \"id\":\"1\",\n              \"external_id\":\"\",\n              \"type\":\"warehouse\",\n              \"name\":\"Warehouse\"\n            },\n            \"job\":null\n          },\n          {\n            \"sales_price\":\"100\",\n            \"qty\":\"1\",\n            \"discount\":\"0\",\n            \"description\":\"\",\n            \"item_code\":{\n              \"id\":\"1\",\n              \"external_id\":\"\",\n              \"name\":\"Electrical Labour\"\n            },\n            \"location\":null,\n            \"job\":null\n          }\n        ]\n      }\n    ],\n    \"recipient\":null,\n    \"status\":\"draft\",\n    \"date\":\"2024-01-19\",\n    \"accepted_date\":null,\n    \"expected_start_date\":null,\n    \"markup\":\"100\"\n  }\n]"}],"_postman_id":"d8614f91-a680-4bd6-bb48-22317b929762"}],"id":"b2a3ba25-1031-4ea0-bb66-efa324164904","_postman_id":"b2a3ba25-1031-4ea0-bb66-efa324164904","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}},{"name":"Reports","item":[{"name":"Get Report details","id":"5abe1dd9-508f-41ae-8098-a5fd57202553","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN"}],"url":"https://app.fieldinsight.com/public-api/reports/:report_id/","description":"<p>Returns fields describing the Invoice.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":report_id",""],"host":["https://app.fieldinsight.com/public-api/reports"],"query":[],"variable":[{"description":{"content":"<p>Id of the Report</p>\n","type":"text/plain"},"type":"any","value":"","key":"report_id"}]}},"response":[{"id":"16a62beb-17e3-4436-baa3-163fe75311ff","name":"Get Report details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer Ym9zY236Ym9zY28="}],"url":"https://app.fieldinsight.com/public-api/reports/222/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\":\"11\",\n  \"printable_number\":\"REP-0001\",\n  \"title\":\"Report 1\",\n  \"created_at\":\"2024-01-19T20:38:03+1100\",\n  \"updated_at\":\"2024-03-20T18:54:25+1100\",\n  \"site\":null,\n  \"project\":{\n    \"id\": 1,\n    \"number\": 1\n    \"external_id\": \"PR000001\"\n  },\n  \"workflow\":{\n    \"id\":\"1\",\n    \"name\":\"Service\"\n  },\n  \"business_area\":null,\n  \"business_division\":null,\n  \"jobs\":[\n    \n  ],\n  \"sub_total\":\"300\",\n  \"tax_amount\":\"30\",\n  \"total\":\"330\",\n  \"sections\":[\n    {\n      \"description\":\"<h3></h3>\",\n      \"allotted_budget\":\"0\",\n      \"line_items\":[\n        {\n          \"sales_price\":\"200\",\n          \"qty\":\"1\",\n          \"discount\":\"0\",\n          \"description\":\"Standard Keyboard\",\n          \"item_code\":{\n            \"id\":\"10\",\n            \"external_id\":\"ITM0000001\",\n            \"name\":\"ITM0000001\"\n          },\n          \"location\":{\n            \"id\":\"1\",\n            \"external_id\":\"\",\n            \"type\":\"warehouse\",\n            \"name\":\"Warehouse\"\n          },\n          \"job\":null\n        },\n        {\n          \"sales_price\":\"100\",\n          \"qty\":\"1\",\n          \"discount\":\"0\",\n          \"description\":\"\",\n          \"item_code\":{\n            \"id\":\"1\",\n            \"external_id\":\"\",\n            \"name\":\"Electrical Labour\"\n          },\n          \"location\":null,\n          \"job\":null\n        }\n      ]\n    }\n  ],\n  \"recipient\":{\n    \"id\": 10,\n    \"type\": \"site\",\n    \"name\": \"John Smith\"\n  },\n  \"status\":\"draft\",\n  \"date\":\"2024-01-19\",\n}"}],"_postman_id":"5abe1dd9-508f-41ae-8098-a5fd57202553"},{"name":"Get Report list","id":"de31a377-62b6-43d3-b5f4-b67e2b8b83cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN"}],"url":"https://app.fieldinsight.com/public-api/reports/?update_from=2024-01-01T00:00:00&update_to=2024-01-01T23:59:59&external_id=000001&job_visit=111","description":"<p>Returns fields describing the Invoice.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.fieldinsight.com/public-api/reports"],"query":[{"description":{"content":"<p>Only include documents that were updated last time on or after this time in UTC timezone. </p>\n","type":"text/plain"},"key":"update_from","value":"2024-01-01T00:00:00"},{"description":{"content":"<p>Only include documents that were updated last time before this time in UTC timezone.</p>\n","type":"text/plain"},"key":"update_to","value":"2024-01-01T23:59:59"},{"description":{"content":"<p>Only include documents with this exiternal_id.</p>\n","type":"text/plain"},"key":"external_id","value":"000001"},{"description":{"content":"<p>Only include documents that are associated with the specified job visit.</p>\n","type":"text/plain"},"key":"job_visit","value":"111"}],"variable":[]}},"response":[{"id":"9d9d6f8d-492c-41fc-8e88-27b2b32f1abe","name":"Get Reports","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer Ym9zY236Ym9zY28="}],"url":"https://app.fieldinsight.com/public-api/reports/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\":\"11\",\n    \"printable_number\":\"REP-0001\",\n    \"title\":\"Report 1\",\n    \"created_at\":\"2024-01-19T20:38:03+1100\",\n    \"updated_at\":\"2024-03-20T18:54:25+1100\",\n    \"site\":null,\n    \"project\":{\n      \"id\": 1,\n      \"number\": 1,\n      \"external_id\": \"PR000001\"\n    },\n    \"workflow\":{\n      \"id\":\"1\",\n      \"name\":\"Service\"\n    },\n    \"business_area\":null,\n    \"business_division\":null,\n    \"jobs\":[\n      \n    ],\n    \"sub_total\":\"300\",\n    \"tax_amount\":\"30\",\n    \"total\":\"330\",\n    \"sections\":[\n      {\n        \"description\":\"<h3></h3>\",\n        \"allotted_budget\":\"0\",\n        \"line_items\":[\n          {\n            \"sales_price\":\"200\",\n            \"qty\":\"1\",\n            \"discount\":\"0\",\n            \"description\":\"Standard Keyboard\",\n            \"item_code\":{\n              \"id\":\"10\",\n              \"external_id\":\"ITM0000001\",\n              \"name\":\"ITM0000001\"\n            },\n            \"location\":{\n              \"id\":\"1\",\n              \"external_id\":\"\",\n              \"type\":\"warehouse\",\n              \"name\":\"Warehouse\"\n            },\n            \"job\":null\n          },\n          {\n            \"sales_price\":\"100\",\n            \"qty\":\"1\",\n            \"discount\":\"0\",\n            \"description\":\"\",\n            \"item_code\":{\n              \"id\":\"1\",\n              \"external_id\":\"\",\n              \"name\":\"Electrical Labour\"\n            },\n            \"location\":null,\n            \"job\":null\n          }\n        ]\n      }\n    ],\n    \"recipient\":{\n      \"id\": 10,\n      \"type\": \"site\",\n      \"name\": \"John Smith\"\n    },\n    \"status\":\"draft\",\n    \"date\":\"2024-01-19\",\n  }\n]"}],"_postman_id":"de31a377-62b6-43d3-b5f4-b67e2b8b83cd"},{"name":"Get Report PDF","id":"3546d5c7-b26f-4704-9efe-db47b606cfb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://app.fieldinsight.com/public-api/reports/:report_id/pdf/","description":"<p>This endpoint generates a PDF document. It returns a response with status 302 and a url of the generated file in the Location header.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}},"urlObject":{"path":[":report_id","pdf",""],"host":["https://app.fieldinsight.com/public-api/reports"],"query":[],"variable":[{"type":"any","value":"","key":"report_id"}]}},"response":[{"id":"871224f2-4eb0-44c6-885a-e6388aeb8ec7","name":"Get Report PDF","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer Ym9zY236Ym9zY28="}],"url":"https://app.fieldinsight.com/public-api/reports/222/pdf/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"3546d5c7-b26f-4704-9efe-db47b606cfb2"}],"id":"8a6ebb4f-0104-4f76-9f07-75b883eb8ddd","_postman_id":"8a6ebb4f-0104-4f76-9f07-75b883eb8ddd","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"3af1a496-925d-4ca7-862a-600a6af0fdff","id":"3af1a496-925d-4ca7-862a-600a6af0fdff","name":"FieldInsight Public API","type":"collection"}}}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"headerPrefix","value":"Bearer"},{"key":"useBrowser","value":"<use-browser>"},{"key":"state","value":"<state>"},{"key":"redirect_uri","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"clientSecret","value":"CLIENT_SECRET"},{"key":"clientId","value":"CLIENT_ID"},{"key":"accessTokenUrl","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"authUrl","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"tokenName","value":"<token-name>"}]}},"event":[{"listen":"prerequest","script":{"id":"5c0a07be-75c9-458f-91d7-8532afe0342a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"00f6c23a-57d3-48fe-9902-215ed4d36125","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseurl","value":"https://app.fieldinsight.com/"},{"key":"client_id","value":"CLIENT_ID"},{"key":"client_secret","value":"CLIENT_SECRET"},{"key":"redirect_url","value":"https://my-fieldinsight-integration.com/oauth-callback/"},{"key":"auth_url","value":"https://app.fieldinsight.com/oauth/authorize/"},{"key":"token_url","value":"https://app.fieldinsight.com/oauth/token/"},{"key":"public_api_url","value":"https://app.fieldinsight.com/public-api/"},{"key":"token_prefix","value":"Bearer"}]}