{"info":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>What does your API do?</p>\n<h1 id=\"overview\">Overview</h1>\n<p>Things that the developers should know about</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>What is the preferred way of using the API?</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>What errors and status codes can a user expect?</p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>Is there a limit to the number of requests an user can send?</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"29015624","collectionId":"890ab911-0703-436b-9483-fd9190044b77","publishedId":"2sA3JDhkaH","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-05-01T16:24:15.000Z"},"item":[{"name":"Authenticated Routes","item":[{"name":"appsettings","item":[{"name":"api/appsettings","id":"c149d864-4337-4d9e-9de6-73f1e18d60bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"jyair@logicbarn.com\",\n    \"password\": \"12345\"\n}"},"url":"http://dashboard.test/login","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"protocol":"http","path":["login"],"host":["dashboard","test"],"query":[],"variable":[]}},"response":[{"id":"4264b7b0-aab8-4c71-a0ec-18c7d3024705","name":"api/appsettings","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"jyair@logicbarn.com\",\n    \"password\": \"12345\"\n}"},"url":"http://dashboard.test/login"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.25.1"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.0.30"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 09 Aug 2023 08:26:46 GMT"},{"key":"phpdebugbar-id","value":"Xbcd8265c09a5fc8d19ed03b69d884d18"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6InExM25HZEZLbEsxcWJMV01BZ3VJZVE9PSIsInZhbHVlIjoidy9zcUNjS0dHR1NEVGpNbExaZGVIVVFFMGl3UGV5N1FmTnVXK0FGRVZjRjhPK0l0dFBYUzFsZG55UkFWV1hrWjJ4eEFYNitTMkhtNUNDZXJBR2RZUGtWLzIxa0NTRFFRUGNTSnM0Ly9LTXVhQWk1RTNZNzA0ckMzNXBDOUkxTDQiLCJtYWMiOiI3Y2FmN2I2MWY5MzFmZDA1MmY0ODBlYTRjYjM5MmE3ZjliOGM2NGYyNWZmYWUzMTY4ZWE1YTY0YzdkNGM3YzZmIiwidGFnIjoiIn0%3D; expires=Wed, 09-Aug-2023 10:26:46 GMT; Max-Age=7200; path=/; samesite=lax"},{"key":"Set-Cookie","value":"laravel_session=eyJpdiI6ImhGaDBRTFk2UjF0TXJZR1RkZ21ac2c9PSIsInZhbHVlIjoibGJkZzZ3NkhXcXJCb1hrWENMZDE3c0w5YVJYdGp4VDZmTXB5Tmh3V0xxWE5ia1ZhMGE4MVlMcnBCejBFV1hNam1xMGlpbzgxNHh5S0ljWllRSWNITGoxZVFMb1JxaWJEb3ZRdXlhOWIyZVVrV0lnOCs5cVFwNVVEa2RsZjBocmMiLCJtYWMiOiIyNDhkM2I4NjVlZTBkZmJmMmRhYzhjYjQ0NTQ0Yzc1MWEyOWYwNTgxMTUwN2FjZmFlODljNWE1ZTc0ZTRkMzM3IiwidGFnIjoiIn0%3D; expires=Wed, 09-Aug-2023 10:26:46 GMT; Max-Age=7200; path=/; httponly; samesite=lax"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n        <title>Laravel</title>\n        <link rel=\"stylesheet\" href=\"/css/app.css?id=f6d91faa13ee4a605101324fc6f7aad0\">\n\n    \n    </head>\n    <body class=\"antialiased\">\n        <div class=\"min-h-screen bg-gray-900 flex flex-col justify-center py-12 sm:px-6 lg:px-8\">\n            <div class=\"sm:mx-auto sm:w-full sm:max-w-md\">\n                <img class=\"mx-auto w-1/2 mb-8\" src=\"/images/levels-logo.svg\" alt=\"Workflow\">\n        \n            </div>\n            <div class=\"sm:mx-auto sm:w-full sm:max-w-md\">\n                <div class=\"bg-white p-6 shadow sm:rounded-lg sm:px-10\">\n                    <form class=\"space-y-6\" action=\"http://dashboard.test/login\" method=\"POST\">\n                        <input type=\"hidden\" name=\"_token\" value=\"XJPkIuN0ARQHMQyuajJp763jL4QLtMyRILj29qTd\">\n                        <div>\n                            <label for=\"email\" class=\"block text-sm font-medium text-gray-700\">\n                            Email address\n                        </label>\n                            <div class=\"mt-1\">\n                                <input dusk=\"email-field\" id=\"email\" name=\"email\" type=\"email\" autocomplete=\"email\" required class=\"form-input\" value=\"\" >\n                        \n                            </div>\n                        </div>\n                        <div>\n                            <label for=\"password\" class=\"block text-sm font-medium text-gray-700\">\n                            Password\n                        </label>\n                            <div class=\"mt-1\">\n                                <input dusk=\"password-field\" id=\"password\" name=\"password\" type=\"password\" autocomplete=\"current-password\" required class=\"form-input\" >\n                        \n                            </div>\n                        </div>\n                        <div class=\"flex items-center justify-between\">\n                            <div class=\"flex items-center\">\n                                <input id=\"remember_me\" name=\"remember_me\" type=\"checkbox\" class=\"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded\">\n                                <label for=\"remember_me\" class=\"ml-2 block text-sm text-gray-900\">\n                                Remember me\n                            </label>\n                            </div>\n                            <div class=\"text-sm\">\n                                <a href=\"http://dashboard.test/forgot-password\" class=\"font-medium text-indigo-600 hover:text-indigo-500\">\n                                Forgot your password?\n                            </a>\n                            </div>\n                        </div>\n                        <div>\n                            <button type=\"submit\" class=\"w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-900 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500\">\n                            Sign in\n                        </button>\n                        </div>\n                    </form>\n                </div>\n                <div class=\"text-center text-white mt-3 text-sm\">Server - Michaels-MacBook-Pro.local</div>\n            </div>\n        </div>\n    </body>\n</html>"}],"_postman_id":"c149d864-4337-4d9e-9de6-73f1e18d60bf"},{"name":"api/appsettings/hash","id":"dc8aa220-1394-4b4f-88ca-52ead06e75c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"jyair@logicbarn.com\",\n    \"password\": \"12345\"\n}"},"url":"{{base_url}}/oauth/authorize","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["oauth","authorize"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc8aa220-1394-4b4f-88ca-52ead06e75c5"}],"id":"8d5467f1-89b0-41b2-8ab1-48f6f6e6453e","event":[{"listen":"prerequest","script":{"id":"f3dfa56a-ebfc-4809-b826-1f6385eb7b83","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c1a13fcd-6402-4c41-ac50-fc5cd879deae","type":"text/javascript","exec":[""]}}],"_postman_id":"8d5467f1-89b0-41b2-8ab1-48f6f6e6453e","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"company","item":[{"name":"company","item":[{"name":"api/company/company","id":"ddebd03b-0d6f-4537-be76-b0c90fb58213","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"{{base_url}}/api/company/company","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","company"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ddebd03b-0d6f-4537-be76-b0c90fb58213"},{"name":"api/company/company/{company}","id":"22193331-f08a-4bd4-b9f4-95a527b22ad6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"full_name","value":"","description":"<p>OPTIONAL: The full name of the company (e.g., Gold Crest Surveyors).</p>\n","type":"text"},{"key":"short_name","value":"","description":"<p>OPTIONAL: The short name of the company (e.g., Gold Crest).</p>\n","type":"text"},{"key":"address_building","value":"","description":"<p>OPTIONAL: The name of the building the company is in.</p>\n","type":"text"},{"key":"address_line1","value":"","description":"<p>OPTIONAL: Address line 1 (e.g., street, PO Box, or company name).</p>\n","type":"text"},{"key":"address_line2","value":"","description":"<p>OPTIONAL: Address line 2 (e.g., apartment, suite, unit, or building).</p>\n","type":"text"},{"key":"address_city","value":"","description":"<p>OPTIONAL: City, district, suburb, town, or village.</p>\n","type":"text"},{"key":"address_county","value":"","description":"<p>OPTIONAL: County or state.</p>\n","type":"text"},{"key":"country_id","value":"","description":"<p>OPTIONAL: Country, links to the Country API.</p>\n","type":"text"},{"key":"address_postcode","value":"","description":"<p>OPTIONAL: ZIP or postal code.</p>\n","type":"text"},{"key":"logo","value":"","description":"<p>OPTIONAL: The logo of the company.</p>\n","type":"text"},{"key":"main_phone","value":"","description":"<p>OPTIONAL: The main contact number for the company.</p>\n","type":"text"},{"key":"main_email","value":"","description":"<p>OPTIONAL: The main email address for the company.</p>\n","type":"text"},{"key":"contact_name","value":"","description":"<p>OPTIONAL: The full name of the main contact for the company.</p>\n","type":"text"},{"key":"contact_phone","value":"","description":"<p>OPTIONAL: The telephone number for the main contact for the company.</p>\n","type":"text"},{"key":"contact_mobile","value":"","description":"<p>OPTIONAL: The mobile number for the main contact for the company.</p>\n","type":"text"},{"key":"contact_email","value":"","description":"<p>OPTIONAL: The emailed address for the main contact for the company.</p>\n","type":"text"},{"key":"website","value":"","description":"<p>OPTIONAL: The company's website url.</p>\n","type":"text"},{"key":"rics_num_membership","value":"","description":"<p>OPTIONAL: The company's RICS membership number.</p>\n","type":"text"},{"key":"rics_num_hb","value":"","description":"<p>OPTIONAL: The company's RICS Building Survey (Level 3) licence number.</p>\n","type":"text"},{"key":"rics_num_bs","value":"","description":"<p>OPTIONAL: The company's RICS Homebuyer Report (Level 2) licence number.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/company/{company}","description":"<h1 id=\"updating-a-company\">Updating a Company</h1>\n<p>Updates the specified company by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","company","{company}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"22193331-f08a-4bd4-b9f4-95a527b22ad6"}],"id":"31e571ca-5d5b-4469-9b84-5fbd81a8ac20","_postman_id":"31e571ca-5d5b-4469-9b84-5fbd81a8ac20","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"customer","item":[{"name":"api/company/customer","id":"ce13fc0b-6fac-43ee-8c15-3d8e98b28ce4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/api/company/customer","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","customer"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce13fc0b-6fac-43ee-8c15-3d8e98b28ce4"},{"name":"api/company/customer","id":"aa7d2892-c30f-40d3-81e0-164678de3319","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"contact_first_name","value":"","type":"text","description":"<p>REQUIRED: The customer's first name.</p>\n"},{"key":"contact_last_name","value":"","type":"text","description":"<p>REQUIRED: The customer's last name.</p>\n"},{"key":"contact_number","value":"","type":"text","description":"<p>REQUIRED: The customer's contact number.</p>\n"},{"key":"contact_number_alt","value":"","type":"text","description":"<p>NULLABLE: The customer's alternative contact number.</p>\n"},{"key":"contact_email","value":"","type":"text","description":"<p>REQUIRED: The customer's email address.</p>\n"},{"key":"address_building","value":"","type":"text","description":"<p>NULLABLE: The building name of the customer's address (if applicable).</p>\n"},{"key":"address_line1","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"address_line2","value":"","type":"text","description":"<p>NULLABLE: Address line 2 (e.g., apartment, suite, unit, or building).</p>\n"},{"key":"address_city","value":"","type":"text","description":"<p>REQUIRED: City, district, suburb, town, or village.</p>\n"},{"key":"address_county","value":"","type":"text","description":"<p>REQUIRED: County or state.</p>\n"},{"key":"address_country","value":"","type":"text","description":"<p>REQUIRED: Country, links to the Country API.</p>\n"},{"key":"address_postcode","value":"","type":"text","description":"<p>REQUIRED: ZIP or postal code.</p>\n"}]},"url":"{{base_url}}/api/company/customer","description":"<h1 id=\"creating-a-new-customer-as-a-company\">Creating a new customer as a Company</h1>\n<p>Creates a new customer by setting the values of the parameters passed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","customer"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa7d2892-c30f-40d3-81e0-164678de3319"},{"name":"api/company/customer/{customer}","id":"ede95419-18cf-4556-bf7c-a876740978e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/api/company/customer/{customer}","description":"<h1 id=\"updating-a-company\">Updating a Company</h1>\n<p>Updates the specified company by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","customer","{customer}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ede95419-18cf-4556-bf7c-a876740978e6"},{"name":"api/company/customer/{customer}","id":"2c4e99b5-5b2b-4569-9f4a-64f1af2a23de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"contact_first_name","value":"","type":"text","description":"<p>REQUIRED: The customer's first name.</p>\n"},{"key":"contact_last_name","value":"","type":"text","description":"<p>REQUIRED: The customer's last name.</p>\n"},{"key":"contact_number","value":"","type":"text","description":"<p>REQUIRED: The customer's contact number.</p>\n"},{"key":"contact_number_alt","value":"","type":"text","description":"<p>NULLABLE: The customer's alternative contact number.</p>\n"},{"key":"contact_email","value":"","type":"text","description":"<p>REQUIRED: The customer's email address.</p>\n"},{"key":"address_building","value":"","type":"text","description":"<p>NULLABLE: The building name of the customer's address (if applicable).</p>\n"},{"key":"address_line1","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"address_line2","value":"","type":"text","description":"<p>NULLABLE: Address line 2 (e.g., apartment, suite, unit, or building).</p>\n"},{"key":"address_city","value":"","type":"text","description":"<p>REQUIRED: City, district, suburb, town, or village.</p>\n"},{"key":"address_county","value":"","type":"text","description":"<p>REQUIRED: County or state.</p>\n"},{"key":"address_country","value":"","type":"text","description":"<p>REQUIRED: Country, links to the Country API.</p>\n"},{"key":"address_postcode","value":"","type":"text","description":"<p>REQUIRED: ZIP or postal code.</p>\n"},{"key":"_method","value":"","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/customer/{customer}","description":"<h1 id=\"updating-a-customer-as-a-company\">Updating a customer as a Company</h1>\n<p>Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","customer","{customer}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c4e99b5-5b2b-4569-9f4a-64f1af2a23de"},{"name":"api/company/customer/{customer}","id":"d6a9a699-3a65-4129-8196-53925a3f6de9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/api/company/customer/{customer}","description":"<h1 id=\"deleting-a-customer-as-a-company\">Deleting a customer as a Company</h1>\n<p>Deletes the specified customer from the Company records.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","customer","{customer}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6a9a699-3a65-4129-8196-53925a3f6de9"}],"id":"fcd6f0da-1201-4c87-9309-8295904b7c0e","_postman_id":"fcd6f0da-1201-4c87-9309-8295904b7c0e","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"lead","item":[{"name":"api/company/lead","id":"305caf04-3575-4b99-a304-0e9959eef994","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/lead","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","lead"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"305caf04-3575-4b99-a304-0e9959eef994"},{"name":"api/company/lead","id":"dd5f0758-1457-458f-b15a-42c1068b365b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"device_id","value":"","description":"<p>NULLABLE: Uses the 'filled' validation rule so is not required unless it is filled out. This is the device UUID in the database.</p>\n","type":"text"},{"key":"customer_first_name","value":"","description":"<p>REQUIRED: The customer's first name.</p>\n","type":"text"},{"key":"customer_last_name","value":"","description":"<p>REQUIRED: The customer's last name.</p>\n","type":"text"},{"key":"customer_phone","value":"","description":"<p>REQUIRED: The customer's contact number.</p>\n","type":"text"},{"key":"customer_email","value":"","description":"<p>REQUIRED: The customer's email address.</p>\n","type":"text"},{"key":"address_building","value":"","description":"<p>FILLED: The building name for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_line1","value":"","description":"<p>FILLED: The first line of address for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_line2","value":"","description":"<p>FILLED: The second line of address for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_city","value":"","description":"<p>FILLED: The city for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_county","value":"","description":"<p>FILLED: The county for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_country_id","value":"","description":"<p>FILLED: The country for the property the customer's enquiring about. Links to the Countries API using the 'id' field.</p>\n","type":"text"},{"key":"address_postcode","value":"","description":"<p>FILLED: The lead's postcode.</p>\n","type":"text"},{"key":"survey_type","value":"","description":"<p>FILLED: The type of survey required for the customer.</p>\n","type":"text"},{"key":"week_commencing","value":"","description":"<p>REQUIRED: The earliest date available to survey the property.</p>\n","type":"text"},{"key":"tenure","value":"","description":"<p>FILLED: The tenure of the property the customer's enquiring about.</p>\n","type":"text"},{"key":"leasehold_years","value":"","description":"<p>REQUIRED: The number of years remaining on the lease (if applicable).</p>\n","type":"text"},{"key":"contact_via","value":"","description":"<p>FILLED: How the customer has been contacted by admin staff (e.g., called, emailed, texted).</p>\n","type":"text"},{"key":"comments","value":"","description":"<p>FILLED: Notes from admin staff (for admin use only).</p>\n","type":"text"},{"key":"access_details","value":"","description":"<p>FILLED: Access information for the property the customer's enquiring about (e.g, vendor or estate agent).</p>\n","type":"text"},{"key":"property_value","value":"","description":"<p>FILLED: The value of the property the customer's enquiring about.</p>\n","type":"text"},{"key":"fee_quoted","value":"","description":"<p>FILLED: Must be a number. The fee quoted to the customer.</p>\n","type":"text"},{"key":"is_wanting_hard_copy","value":"","description":"<p>FILLED: A boolean to show whether the customer has requested a Hard Copy of their report or not.</p>\n","type":"text"},{"key":"valuation_quote","value":"","description":"<p>FILLED: The fee for a valuation if requested.</p>\n","type":"text"},{"key":"repair_costs_quote","value":"","description":"<p>FILLED: The fee to add repair costs if requested.</p>\n","type":"text"},{"key":"is_repair_costs","value":"","description":"<p>FILLED: A boolean to show whether the customer has requested repair costs or not.</p>\n","type":"text"},{"key":"total_quote","value":"","description":"<p>REQUIRED: The total sum of all fees related to the survey.</p>\n","type":"text"},{"key":"discount","value":"","description":"<p>FILLED: Depending on the discount type, this will be the percentage of a discount or the exact figure discounted from the fee quoted.</p>\n","type":"text"},{"key":"discount_type","value":"","description":"<p>FILLED: A boolean to show whether the discount is a percentage or exact value.</p>\n","type":"text"},{"key":"sales_advisor","value":"","description":"<p>FILLED: The name of the Sales Advisor.</p>\n","type":"text"},{"key":"sales_advisor_email","value":"","description":"<p>FILLED: The email address of the Sales Advisor.</p>\n","type":"text"},{"key":"source","value":"","description":"<p>REQUIRED: The source used by the customer to find our services (e.g., comparison website, referral, poster).</p>\n","type":"text"},{"key":"callback_at","value":"","description":"<p>FILLED: A date field to show when a customer has requested a callback, if required.</p>\n","type":"text"},{"key":"is_property_size_checked","value":"","description":"<p>REQUIRED: A boolean to show whether the admin have checked the property size.</p>\n","type":"text"},{"key":"is_urgent","value":"","description":"<p>FILLED: A boolean to show whether a callback is urgent or not.</p>\n","type":"text"},{"key":"is_valuation","value":"","description":"<p>NULLABLE: A boolean to show whether the Survey requires a Valuation or not.</p>\n","type":"text"},{"key":"valuation_purpose","value":"","description":"<p>NULLABLE: The purpose of the Valuation if applicable.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/lead","description":"<h1 id=\"creating-a-new-lead-as-a-company\">Creating a new lead as a Company</h1>\n<p>Creates a new lead by setting the values of the parameters passed. Any fields that use the 'FILLED' validation are not required unless the field has been filled out.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","lead"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd5f0758-1457-458f-b15a-42c1068b365b"},{"name":"api/company/lead/{lead}","id":"394951b5-a1d7-45ab-8354-9aecb41033fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/lead/{lead}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","lead","{lead}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"394951b5-a1d7-45ab-8354-9aecb41033fd"},{"name":"api/company/lead/{lead}","id":"cdd3a5c2-6df2-43fd-8ca9-9e1da3c9407f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"customer_first_name","value":"","description":"<p>OPTIONAL: The customer's first name.</p>\n","type":"text"},{"key":"customer_last_name","value":"","description":"<p>OPTIONAL: The customer's last name.</p>\n","type":"text"},{"key":"customer_phone","value":"","description":"<p>OPTIONAL: The customer's contact number.</p>\n","type":"text"},{"key":"customer_email","value":"","description":"<p>OPTIONAL: The customer's email address.</p>\n","type":"text"},{"key":"address_building","value":"","description":"<p>OPTIONAL: The building name for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_line1","value":"","description":"<p>OPTIONAL: The first line of address for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_line2","value":"","description":"<p>OPTIONAL: The second line of address for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_city","value":"","description":"<p>OPTIONAL: The city for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_county","value":"","description":"<p>OPTIONAL: The county for the property the customer's enquiring about.</p>\n","type":"text"},{"key":"address_country_id","value":"","description":"<p>OPTIONAL: The country for the property the customer's enquiring about. Links to the Countries API using the 'id' field.</p>\n","type":"text"},{"key":"week_commencing","value":"","description":"<p>REQUIRED: The earliest date available to survey the property.</p>\n","type":"text"},{"key":"address_postcode","value":"","description":"<p>OPTIONAL: The lead's postcode.</p>\n","type":"text"},{"key":"survey_type","value":"","description":"<p>OPTIONAL: The type of survey required for the customer.</p>\n","type":"text"},{"key":"tenure","value":"","description":"<p>OPTIONAL: The tenure of the property the customer's enquiring about.</p>\n","type":"text"},{"key":"leasehold_years","value":"","description":"<p>REQUIRED: The number of years remaining on the lease (if applicable).</p>\n","type":"text"},{"key":"contact_via","value":"","description":"<p>OPTIONAL: How the customer has been contacted by admin staff (e.g., called, emailed, texted).</p>\n","type":"text"},{"key":"comments","value":"","description":"<p>OPTIONAL: Notes from admin staff (for admin use only).</p>\n","type":"text"},{"key":"access_details","value":"","description":"<p>OPTIONAL: Access information for the property the customer's enquiring about (e.g, vendor or estate agent).</p>\n","type":"text"},{"key":"property_value","value":"","description":"<p>OPTIONAL: The value of the property the customer's enquiring about.</p>\n","type":"text"},{"key":"fee_quoted","value":"","description":"<p>REQUIRED: The source used by the customer to find our services (e.g., comparison website, referral, poster).</p>\n","type":"text"},{"key":"is_wanting_hard_copy","value":"","description":"<p>OPTIONAL: A boolean to show whether the customer has requested a Hard Copy of their report or not.</p>\n","type":"text"},{"key":"valuation_quote","value":"","description":"<p>OPTIONAL: The fee for a valuation if requested.</p>\n","type":"text"},{"key":"repair_costs_quote","value":"","description":"<p>OPTIONAL: The fee to add repair costs if requested.</p>\n","type":"text"},{"key":"is_repair_costs","value":"","description":"<p>OPTIONAL: A boolean to show whether the customer has requested repair costs or not.</p>\n","type":"text"},{"key":"total_quote","value":"","description":"<p>REQUIRED: The total sum of all fees related to the survey.</p>\n","type":"text"},{"key":"discount","value":"","description":"<p>OPTIONAL: Depending on the discount type, this will be the percentage of a discount or the exact figure discounted from the fee quoted.</p>\n","type":"text"},{"key":"discount_type","value":"","description":"<p>OPTIONAL: A boolean to show whether the discount is a percentage or exact value.</p>\n","type":"text"},{"key":"sales_advisor","value":"","description":"<p>OPTIONAL: The name of the Sales Advisor.</p>\n","type":"text"},{"key":"sales_advisor_email","value":"","description":"<p>OPTIONAL: The email address of the Sales Advisor.</p>\n","type":"text"},{"key":"source","value":"","description":"<p>REQUIRED: The source used by the customer to find our services (e.g., comparison website, referral, poster).</p>\n","type":"text"},{"key":"callback_at","value":"","description":"<p>OPTIONAL: A date field to show when a customer has requested a callback, if required.</p>\n","type":"text"},{"key":"is_property_size_checked","value":"","description":"<p>REQUIRED: A boolean to show whether the admin have checked the property size.</p>\n","type":"text"},{"key":"is_urgent","value":"","description":"<p>OPTIONAL: A boolean to show whether a callback is urgent or not.</p>\n","type":"text"},{"key":"is_valuation","value":"","description":"<p>NULLABLE: A boolean to show whether the Survey requires a Valuation or not.</p>\n","type":"text"},{"key":"valuation_purpose","value":"","description":"<p>NULLABLE: The purpose of the Valuation if applicable.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/lead/{lead}","description":"<h1 id=\"updating-a-lead-as-a-company\">Updating a lead as a Company</h1>\n<p>Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","lead","{lead}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cdd3a5c2-6df2-43fd-8ca9-9e1da3c9407f"},{"name":"api/company/lead/{lead}","id":"cb52369a-06bf-4ad0-875b-9dc7ae5c1334","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/api/company/lead/{lead}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","lead","{lead}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb52369a-06bf-4ad0-875b-9dc7ae5c1334"}],"id":"0ccf2419-7ff6-43d9-9fe3-61568a87d1e3","_postman_id":"0ccf2419-7ff6-43d9-9fe3-61568a87d1e3","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"survey","item":[{"name":"api/company/survey","id":"23540828-050d-4f3f-92f6-db2ad223c021","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/survey","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"23540828-050d-4f3f-92f6-db2ad223c021"},{"name":"api/company/survey","id":"27a36feb-98ec-425d-8755-2f30d312b8f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"survey_type_id","value":"","type":"text","description":"<p>REQUIRED: The type of the survey (e.g., Building Survey, HomeBuyer Report). ID links to 'survey_types' table.</p>\n"},{"key":"survey_status_id","value":"","type":"text","description":"<p>REQUIRED: The status of the survey (e.g., Active, Completed, Cancelled). ID links to  'survey_statuses' table.</p>\n"},{"key":"assigned_surveyor_id","value":"","description":"<p>OPTIONAL: The surveyor assigned to the survey. ID links to 'user_surveyors' table.</p>\n","type":"text"},{"key":"overseen_by_user_id","value":"","description":"<p>OPTIONAL: The user who has over the survey report. ID links to the 'users' table.</p>\n","type":"text"},{"key":"company_customer_id","value":"","type":"text","description":"<p>REQUIRED: The customer that survey is for. ID links to 'company_customers' table.</p>\n"},{"key":"source","value":"","description":"<p>REQUIRED: The source of where the customer heard about the company.</p>\n","type":"text"},{"key":"survey_address_building","value":"","type":"text","description":"<p>FILLED: The name of the building the survey is in.</p>\n"},{"key":"survey_address_line1","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_line2","value":"","type":"text","description":"<p>FILLED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_city","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_county","value":"","type":"text","description":"<p>REQUIRED: County or state.</p>\n"},{"key":"survey_address_country","value":"","type":"text","description":"<p>REQUIRED: Country. ID links to 'countries' table.</p>\n"},{"key":"survey_address_postcode","value":"","type":"text","description":"<p>REQUIRED: ZIP or postal code.</p>\n"},{"key":"is_valuation","value":"","type":"text","description":"<p>REQUIRED: Checkbox for whether a valuation is required (only for Building Surveys).</p>\n"},{"key":"valuation_purpose","value":"","type":"text","description":"<p>FILLED: The purpose of the Valuation.</p>\n"},{"key":"other_users_of_the_report","value":"","description":"<p>OPTIONAL: When selecting 'Valuation' as a Survey Type, this is can be selected if another person(s) requires access to the report.</p>\n","type":"text"},{"key":"property_tenure","value":"","type":"text","description":"<p>REQUIRED: The tenure of the property (e.g., Freehold/Leasehold).</p>\n"},{"key":"property_construction","value":"","type":"text","description":"<p>REQUIRED: The type of construction for the property.</p>\n"},{"key":"other_construction_type","value":"","description":"<p>OPTIONAL: If the property construction type is not on the standard list, this field can be filled out with a different value.</p>\n","type":"text"},{"key":"property_purchase_price","value":"","type":"text","description":"<p>REQUIRED: The purchase price of the property.</p>\n"},{"key":"is_property_size_checked","value":"","type":"text","description":"<p>REQUIRED: Checkbox for whether the size of the property has been checked.</p>\n"},{"key":"leasehold_years","value":"","type":"text","description":"<p>FILLED: The number of years remaining in the lease (if applicable).</p>\n"},{"key":"instruction_taken_on_date","value":"","description":"<p>OPTIONAL: The date the instruction was taken on.</p>\n","type":"text"},{"key":"fee_quoted","value":"","type":"text","description":"<p>REQUIRED: The fee quoted for the survey.</p>\n"},{"key":"repair_costs_quote","value":"","description":"<p>OPTIONAL: The fee for adding repair costs to the report.</p>\n","type":"text"},{"key":"is_repair_costs","value":"","description":"<p>OPTIONAL: A boolean to show whether repair costs should be included or not.</p>\n","type":"text"},{"key":"discount","value":"","description":"<p>OPTIONAL: The numeric value for the discount to be applied to the fee quoted.</p>\n","type":"text"},{"key":"discount_type","value":"","description":"<p>OPTIONAL: A boolean to show whether the discount is a percentage or fixed value.</p>\n","type":"text"},{"key":"valuation_quote","value":"","description":"<p>OPTIONAL: The fee for adding a valuation to the report.</p>\n","type":"text"},{"key":"total_quote","value":"","description":"<p>OPTIONAL: The total quote after calculat all quote fields.</p>\n","type":"text"},{"key":"quoted_at","value":"","type":"text","description":"<p>REQUIRED: The date/time the survey was created.</p>\n"},{"key":"fee_taken","value":"","type":"text","description":"<p>FILLED: The amount by the client for the fee.</p>\n"},{"key":"agreed_at","value":"","type":"text","description":"<p>FILLED: The date the payment was made by the client.</p>\n"},{"key":"terms_sent_at","value":"","type":"text","description":"<p>FILLED: The date the terms and conditions were sent to the client.</p>\n"},{"key":"terms_accepted_at","value":"","type":"text","description":"<p>FILLED: The date the terms and conditions were accepted by the client.</p>\n"},{"key":"admin_notes","value":"","type":"text","description":"<p>FILLED: Administration notes relating to the survey.</p>\n"},{"key":"surveyor_notes","value":"","description":"<p>OPTIONAL: Additional information for the surveyor's reference.</p>\n","type":"text"},{"key":"survey_access_details","value":"","type":"text","description":"<p>FILLED: The details for access to the property.</p>\n"},{"key":"vendor_email","value":"","description":"<p>OPTIONAL: The vendor's email address.</p>\n","type":"text"},{"key":"vendor_number","value":"","description":"<p>OPTIONAL: The vendor's contact number.</p>\n","type":"text"},{"key":"amount_refunded","value":"","type":"text","description":"<p>FILLED: The amount refunded to the client.</p>\n"},{"key":"refunded_at","value":"","type":"text","description":"<p>FILLED: The date/time the client was refunded.</p>\n"},{"key":"original_survey_date","value":"","type":"text","description":"<p>FILLED: The original date of a Valuation (only applicable for Desktop Valuations).</p>\n"},{"key":"visit_booked_at","value":"","type":"text","description":"<p>FILLED: The date/time of the inspection for the survey.</p>\n"},{"key":"visit_completed_at","value":"","type":"text","description":"<p>FILLED: The date/time the inspection was completed for the survey.</p>\n"},{"key":"report_due_at","value":"","type":"text","description":"<p>FILLED: The date the report is due.</p>\n"},{"key":"is_quality_checked","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the quality checks have been completed.</p>\n"},{"key":"is_report_sent","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the report has been sent.</p>\n"},{"key":"report_sent_at","value":"","type":"text","description":"<p>FILLED: The date/time the report was sent.</p>\n"},{"key":"full_set_site_notes","value":"","description":"<p>OPTIONAL: Shows whether the full set of site notes is available.</p>\n","type":"text"},{"key":"valuation_checked_against_rationale","value":"","description":"<p>OPTIONAL: Shows whether valuation has been given rationale.</p>\n","type":"text"},{"key":"appropriate_comparables","value":"","description":"<p>OPTIONAL: Shows whether comparables are available for a valuation.</p>\n","type":"text"},{"key":"reasoning_or_methodology_included","value":"","description":"<p>OPTIONAL: Shows whether reasoning or methodology is available for a valuation.</p>\n","type":"text"},{"key":"contract_compliant","value":"","description":"<p>OPTIONAL: Shows whether the customer has accepted our terms and conditions.</p>\n","type":"text"},{"key":"all_appropriate_documents_saved","value":"","description":"<p>OPTIONAL: Shows whether any relevant documents are available for the survey/valuation.</p>\n","type":"text"},{"key":"signed_copy_on_file","value":"","description":"<p>OPTIONAL: Shows whether the customer's acceptance of our terms are available.</p>\n","type":"text"},{"key":"is_report_sent","value":"","description":"<p>OPTIONAL: Boolean to show whether the report has been sent.</p>\n","type":"text"},{"key":"report_sent_at","value":"","description":"<p>OPTIONAL: Date field to show when the report has been sent.</p>\n","type":"text"},{"key":"is_wanting_hard_copy","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client wants a hard copy of their report.</p>\n"},{"key":"is_client_callback","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client wants a call after the inspection (for brief verbal feedback).</p>\n"},{"key":"is_client_contacted","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client has been contact to follow up post-report.</p>\n"},{"key":"is_review_email_sent","value":"","type":"text","description":"<p>FILLED: Checkbox for whether a Trustpilot review email has been sent to the client.</p>\n"},{"key":"is_invoiced","value":"","type":"text","description":"<p>FILLED: Boolean for whether the invoice has been sent to the client.</p>\n"},{"key":"created_by_user_id","value":"","type":"text","description":"<p>REQUIRED: The user who created the survey. ID links to 'users' table.</p>\n"},{"key":"instruction_taken_by_user_id","value":"","description":"<p>OPTIONAL: The user who's converted the survey. Links to the id field in 'users' table.</p>\n","type":"text"},{"key":"lead_id","value":"","type":"text","description":"<p>FILLED: The lead if the survey was converted from an exisiting lead. ID links to 'leads' table.</p>\n"},{"key":"updated_at","value":"","type":"text","description":"<p>FILLED: The date/time the survey was last updated.</p>\n"},{"key":"device_id","value":"","type":"text","description":"<p>SOMETIMES: UUID from the device for the component.</p>\n"},{"key":"sfy_job_id","value":"","type":"text","description":"<p>FILLED: Links to a lead if provided by Surveyor For You client (usually Estate Agents). ID does not link to a table at the moment.</p>\n"}]},"url":"{{base_url}}/api/company/survey","description":"<h1 id=\"creating-a-new-survey-as-a-company\">Creating a new survey as a Company</h1>\n<p>Creates a new user by setting the values of the parameters passed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"27a36feb-98ec-425d-8755-2f30d312b8f3"},{"name":"api/company/survey/{survey}","id":"72c9f673-0559-4247-9441-5612ffc0cd8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/survey/08b59810-ec88-41e0-9c1c-1f83cee90e50","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey","08b59810-ec88-41e0-9c1c-1f83cee90e50"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"72c9f673-0559-4247-9441-5612ffc0cd8e"},{"name":"api/company/survey/{survey}/getinspection","id":"4d7b7943-74ea-48d7-881c-9d9efebccb05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/survey/{survey}/getinspection","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey","{survey}","getinspection"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d7b7943-74ea-48d7-881c-9d9efebccb05"},{"name":"api/company/survey/{survey}","id":"de9fa837-d4ab-4fd6-a71f-db55574feb86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"survey_type_id","value":"","type":"text","description":"<p>REQUIRED: The type of the survey (e.g., Building Survey, HomeBuyer Report). ID links to 'survey_types' table.</p>\n"},{"key":"survey_status_id","value":"","type":"text","description":"<p>REQUIRED: The status of the survey (e.g., Active, Completed, Cancelled). ID links to  'survey_statuses' table.</p>\n"},{"key":"assigned_surveyor_id","value":"","type":"text","description":"<p>OPTIONAL: The surveyor assigned to the survey. ID links to 'user_surveyors' table.</p>\n"},{"key":"overseen_by_user_id","value":"","type":"text","description":"<p>OPTIONAL: The user who has over the survey report. ID links to the 'users' table.</p>\n"},{"key":"company_customer_id","value":"","type":"text","description":"<p>REQUIRED: The customer that survey is for. ID links to 'company_customers' table.</p>\n"},{"key":"source","value":"","type":"text","description":"<p>REQUIRED: The source of where the customer heard about the company.</p>\n"},{"key":"survey_address_building","value":"","type":"text","description":"<p>FILLED: The name of the building the survey is in.</p>\n"},{"key":"survey_address_line1","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_line2","value":"","type":"text","description":"<p>FILLED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_city","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_county","value":"","type":"text","description":"<p>REQUIRED: County or state.</p>\n"},{"key":"survey_address_country","value":"","type":"text","description":"<p>REQUIRED: Country. ID links to 'countries' table.</p>\n"},{"key":"survey_address_postcode","value":"","type":"text","description":"<p>REQUIRED: ZIP or postal code.</p>\n"},{"key":"is_valuation","value":"","type":"text","description":"<p>REQUIRED: Checkbox for whether a valuation is required (only for Building Surveys).</p>\n"},{"key":"valuation_purpose","value":"","type":"text","description":"<p>FILLED: The purpose of the Valuation.</p>\n"},{"key":"other_users_of_the_report","value":"","type":"text","description":"<p>OPTIONAL: When selecting 'Valuation' as a Survey Type, this is can be selected if another person(s) requires access to the report.</p>\n"},{"key":"property_tenure","value":"","type":"text","description":"<p>REQUIRED: The tenure of the property (e.g., Freehold/Leasehold).</p>\n"},{"key":"property_construction","value":"","type":"text","description":"<p>REQUIRED: The type of construction for the property.</p>\n"},{"key":"other_construction_type","value":"","type":"text","description":"<p>OPTIONAL: If the property construction type is not on the standard list, this field can be filled out with a different value.</p>\n"},{"key":"property_purchase_price","value":"","type":"text","description":"<p>REQUIRED: The purchase price of the property.</p>\n"},{"key":"is_property_size_checked","value":"","type":"text","description":"<p>REQUIRED: Checkbox for whether the size of the property has been checked.</p>\n"},{"key":"leasehold_years","value":"","type":"text","description":"<p>FILLED: The number of years remaining in the lease (if applicable).</p>\n"},{"key":"instruction_taken_on_date","value":"","type":"text","description":"<p>OPTIONAL: The date the instruction was taken on.</p>\n"},{"key":"fee_quoted","value":"","type":"text","description":"<p>REQUIRED: The fee quoted for the survey.</p>\n"},{"key":"repair_costs_quote","value":"","type":"text","description":"<p>OPTIONAL: The fee for adding repair costs to the report.</p>\n"},{"key":"is_repair_costs","value":"","type":"text","description":"<p>OPTIONAL: A boolean to show whether repair costs should be included or not.</p>\n"},{"key":"discount","value":"","type":"text","description":"<p>OPTIONAL: The numeric value for the discount to be applied to the fee quoted.</p>\n"},{"key":"discount_type","value":"","type":"text","description":"<p>OPTIONAL: A boolean to show whether the discount is a percentage or fixed value.</p>\n"},{"key":"valuation_quote","value":"","type":"text","description":"<p>OPTIONAL: The fee for adding a valuation to the report.</p>\n"},{"key":"total_quote","value":"","type":"text","description":"<p>OPTIONAL: The total quote after calculat all quote fields.</p>\n"},{"key":"quoted_at","value":"","type":"text","description":"<p>REQUIRED: The date/time the survey was created.</p>\n"},{"key":"fee_taken","value":"","type":"text","description":"<p>FILLED: The amount by the client for the fee.</p>\n"},{"key":"agreed_at","value":"","type":"text","description":"<p>FILLED: The date the payment was made by the client.</p>\n"},{"key":"terms_sent_at","value":"","type":"text","description":"<p>FILLED: The date the terms and conditions were sent to the client.</p>\n"},{"key":"terms_accepted_at","value":"","type":"text","description":"<p>FILLED: The date the terms and conditions were accepted by the client.</p>\n"},{"key":"admin_notes","value":"","type":"text","description":"<p>FILLED: Administration notes relating to the survey.</p>\n"},{"key":"surveyor_notes","value":"","type":"text","description":"<p>OPTIONAL: Additional information for the surveyor's reference.</p>\n"},{"key":"survey_access_details","value":"","type":"text","description":"<p>FILLED: The details for access to the property.</p>\n"},{"key":"vendor_email","value":"","type":"text","description":"<p>OPTIONAL: The vendor's email address.</p>\n"},{"key":"vendor_number","value":"","type":"text","description":"<p>OPTIONAL: The vendor's contact number.</p>\n"},{"key":"amount_refunded","value":"","type":"text","description":"<p>FILLED: The amount refunded to the client.</p>\n"},{"key":"refunded_at","value":"","type":"text","description":"<p>FILLED: The date/time the client was refunded.</p>\n"},{"key":"original_survey_date","value":"","type":"text","description":"<p>FILLED: The original date of a Valuation (only applicable for Desktop Valuations).</p>\n"},{"key":"visit_booked_at","value":"","type":"text","description":"<p>FILLED: The date/time of the inspection for the survey.</p>\n"},{"key":"visit_completed_at","value":"","type":"text","description":"<p>FILLED: The date/time the inspection was completed for the survey.</p>\n"},{"key":"report_due_at","value":"","type":"text","description":"<p>FILLED: The date the report is due.</p>\n"},{"key":"is_quality_checked","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the quality checks have been completed.</p>\n"},{"key":"is_report_sent","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the report has been sent.</p>\n"},{"key":"report_sent_at","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the report has been sent.</p>\n"},{"key":"full_set_site_notes","value":"","type":"text","description":"<p>OPTIONAL: Shows whether the full set of site notes is available.</p>\n"},{"key":"valuation_checked_against_rationale","value":"","type":"text","description":"<p>OPTIONAL: Shows whether valuation has been given rationale.</p>\n"},{"key":"appropriate_comparables","value":"","type":"text","description":"<p>OPTIONAL: Shows whether comparables are available for a valuation.</p>\n"},{"key":"reasoning_or_methodology_included","value":"","type":"text","description":"<p>OPTIONAL: Shows whether reasoning or methodology is available for a valuation.</p>\n"},{"key":"contract_compliant","value":"","type":"text","description":"<p>OPTIONAL: Shows whether the customer has accepted our terms and conditions.</p>\n"},{"key":"all_appropriate_documents_saved","value":"","type":"text","description":"<p>OPTIONAL: Shows whether any relevant documents are available for the survey/valuation.</p>\n"},{"key":"signed_copy_on_file","value":"","type":"text","description":"<p>OPTIONAL: Shows whether the customer's acceptance of our terms are available.</p>\n"},{"key":"is_report_sent","value":"","type":"text","description":"<p>OPTIONAL: Boolean to show whether the report has been sent.</p>\n"},{"key":"report_sent_at","value":"","type":"text","description":"<p>OPTIONAL: Date field to show when the report has been sent.</p>\n"},{"key":"is_wanting_hard_copy","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client wants a hard copy of their report.</p>\n"},{"key":"is_client_callback","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client wants a call after the inspection (for brief verbal feedback).</p>\n"},{"key":"is_client_contacted","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client has been contact to follow up post-report.</p>\n"},{"key":"is_review_email_sent","value":"","type":"text","description":"<p>FILLED: Checkbox for whether a Trustpilot review email has been sent to the client.</p>\n"},{"key":"is_invoiced","value":"","type":"text","description":"<p>FILLED: Boolean for whether the invoice has been sent to the client.</p>\n"},{"key":"created_by_user_id","value":"","type":"text","description":"<p>REQUIRED: The user who created the survey. ID links to 'users' table.</p>\n"},{"key":"instruction_taken_by_user_id","value":"","type":"text","description":"<p>OPTIONAL: The user who's converted the survey. Links to the id field in 'users' table.</p>\n"},{"key":"lead_id","value":"","type":"text","description":"<p>FILLED: The lead if the survey was converted from an exisiting lead. ID links to 'leads' table.</p>\n"},{"key":"updated_at","value":"","type":"text","description":"<p>FILLED: The date/time the survey was last updated.</p>\n"},{"key":"device_id","value":"","type":"text","description":"<p>SOMETIMES: UUID from the device for the component.</p>\n"},{"key":"sfy_job_id","value":"","type":"text","description":"<p>FILLED: Links to a lead if provided by Surveyor For You client (usually Estate Agents). ID does not link to a table at the moment.</p>\n"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/survey/{survey}","description":"<h1 id=\"updating-a-survey-as-a-company\">Updating a survey as a Company</h1>\n<p>Updates the specified survey by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey","{survey}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"de9fa837-d4ab-4fd6-a71f-db55574feb86"},{"name":"api/company/survey/{survey}","id":"7cdef874-ede7-4813-8d2b-6177be80a989","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>REQUIRED: The user's full name.</p>\n","type":"text"},{"key":"email","value":"","description":"<p>REQUIRED: The user's email address.</p>\n","type":"text"},{"key":"address_building","value":"","description":"<p>REQUIRED: The user's building name.</p>\n","type":"text"},{"key":"address_line1","value":"","description":"<p>REQUIRED: The user's first line of address.</p>\n","type":"text"},{"key":"address_line2","value":"","description":"<p>REQUIRED: The user's second line of address.</p>\n","type":"text"},{"key":"address_city","value":"","description":"<p>REQUIRED: The user's city.</p>\n","type":"text"},{"key":"address_county","value":"","description":"<p>REQUIRED: The user's county.</p>\n","type":"text"},{"key":"country_id","value":"","description":"<p>REQUIRED: The user's country. Links to the Countries API using the 'id' field.</p>\n","type":"text"},{"key":"address_postcode","value":"","description":"<p>REQUIRED: The user's postcode.</p>\n","type":"text"},{"key":"profile_picture","description":"<p>REQUIRED: The user's profile picture. Must be an image.</p>\n","type":"file","value":null},{"key":"company_id","value":"","description":"<p>REQUIRED: The user's associated company. Links to the Company API using the 'id' field.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/survey/{survey}","description":"<h1 id=\"updating-a-user-as-a-company\">Updating a user as a Company</h1>\n<p>Updates the specified user by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n<p><strong>All fields except 'company_id' use the 'filled' validation. If the field is empty, it will throw an error.</strong></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey","{survey}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7cdef874-ede7-4813-8d2b-6177be80a989"},{"name":"api/company/survey/{survey}/attachment","id":"df5ebb12-af9e-40d9-bbb9-811051db0ba1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"type","value":"image/png","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"id","description":"<p>attachment_type_here</p>\n","type":"text","value":"Screenshot 2023-08-10 at 17.32.38"},{"key":"storage_path","description":"<p>your_file_contents_as_base64_here</p>\n","type":"file","src":"/Users/michaelmarvellous/Downloads/test.png"},{"key":"type","description":"<p>your_file_contents_as_base64_here</p>\n","type":"text","value":"image"},{"key":"survey_id","type":"text","value":"08b59810-ec88-41e0-9c1c-1f83cee90e50"},{"key":"company_id","value":"d457ed20-bdcb-443e-8304-4a4d73d6bc0c","type":"text"},{"key":"updated_at","value":"2023-08-11 23:49:25","type":"text","disabled":true},{"key":"created_at","value":"2023-08-11 23:49:25","type":"text","disabled":true},{"key":"","value":"","type":"text","disabled":true},{"key":"","value":"","type":"text","disabled":true}]},"url":"{{base_url}}/api/company/survey/08b59810-ec88-41e0-9c1c-1f83cee90e50/attachment","description":"<h1 id=\"uploading-a-survey-attachment-as-a-company\">Uploading a Survey Attachment as a Company</h1>\n<p>Sends an attachment via the API, this can only accept files.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey","08b59810-ec88-41e0-9c1c-1f83cee90e50","attachment"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"df5ebb12-af9e-40d9-bbb9-811051db0ba1"},{"name":"api/company/survey/{survey_id}/attachment/{attachment_id}","id":"87fe4b60-51f6-4222-8977-82310371cacf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/survey/{survey}/attachment/{attachment}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey","{survey}","attachment","{attachment}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"87fe4b60-51f6-4222-8977-82310371cacf"},{"name":"api/company/survey/{survey}/attachment/{attachment}","id":"6e534fcd-b222-40a6-a142-acfd4e47d17b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/api/company/survey/{survey}/attachment/{attachment}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey","{survey}","attachment","{attachment}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e534fcd-b222-40a6-a142-acfd4e47d17b"},{"name":"api/company/survey/{survey_id}/deletecontainer/{device_id}","id":"1f4c2d5a-7ee6-41fd-8a1a-318e8f1c732c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/api/company/survey/{survey_id}/deletecontainer/{device_id}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey","{survey_id}","deletecontainer","{device_id}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f4c2d5a-7ee6-41fd-8a1a-318e8f1c732c"},{"name":"/api/company/survey/{survey}/updateinspection","id":"b6e3b449-874a-4c51-997a-9cffaf3a8801","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n  {\n    \"name\": \"Inspection\",\n    \"template_id\": \"f2fe507c-63bb-4d1a-b524-b4decf53d702\",\n    \"id\": \"443a815c-07c2-4511-95d9-c2ba5c1c0e4d\",\n    \"container_type\": \"form\",\n    \"sequence\": 2,\n    \"containers\": [\n      {\n        \"name\": \"External\",\n        \"template_id\": \"f2fe507c-63bb-4d1a-b524-b4decf53d702\",\n        \"parent_id\": \"443a815c-07c2-4511-95d9-c2ba5c1c0e4d\",\n        \"id\": \"a7857674-fe62-4279-90db-3ec4439dd1f8\",\n        \"sequence\": 0,\n        \"template_classification_id\": \"456f1c0b-1a93-4a30-96c4-df1cee6e355c\",\n        \"device_id\": \"34A42FC1-DA03-42E8-B993-BCA6816EAE5C\",\n        \"container_type\": \"region\",\n        \"classification\": {\n          \"parent_id\": \"456f1c0b-1a93-4a30-96c4-df1cee6e355c\",\n          \"template_classification_id\": \"\",\n          \"sequence\": 0,\n          \"classification\": {\n            \"sequence\": 0,\n            \"containers\": [\n              {\n                \"containers\": [\n                  {\n                    \"name\": \"Main walls\",\n                    \"id\": \"bdc5f1bf-dfc5-4f6c-a02b-7e2214e7f508\",\n                    \"template_id\": \"f2fe507c-63bb-4d1a-b524-b4decf53d702\",\n                    \"container_type\": \"feature\",\n                    \"classification\": {\n                      \"id\": \"8ff76958-5624-47b4-98cd-9f24cf848385\",\n                      \"classification_type\": \"observation\",\n                      \"sequence\": 0,\n                      \"template_classification_id\": \"\",\n                      \"name\": \"Observation\",\n                      \"classification\": {\n                        \"parent_id\": \"8ff76958-5624-47b4-98cd-9f24cf848385\",\n                        \"components\": [\n                          {\n                            \"template_classification_id\": \"a65153ed-c99c-4ac7-851b-cbb5fe71bb02\",\n                            \"attachments\": [\n                              {\n                                \"file\": \"682E87D4-1D4B-4B5D-8741-70E6DA2FFC2C\",\n                                \"type\": \"png\"\n                              },\n                              {\n                                \"type\": \"png\",\n                                \"file\": \"E3E650BF-6013-4890-879D-3F87EC0B5ABB\"\n                              }\n                            ],\n                            \"sequence\": 3,\n                            \"template_container_id\": \"bdc5f1bf-dfc5-4f6c-a02b-7e2214e7f508\",\n                            \"options\": [],\n                            \"device_id\": \"A4BAAA4F-3058-4A13-9A73-21EFE04259C1\",\n                            \"id\": \"4e8ae814-ec66-41f9-934f-5023944a0391\",\n                            \"component_type\": \"image_input\",\n                            \"name\": \"Images\"\n                          }\n                        ],\n                        \"template_classification_id\": \"\",\n                        \"classification_type\": \"condition\",\n                        \"sequence\": 0,\n                        \"device_id\": \"762B5BE3-9647-4CA6-8A27-16F6EC84CC15\",\n                        \"name\": \"Condition\",\n                        \"id\": \"a65153ed-c99c-4ac7-851b-cbb5fe71bb02\"\n                      },\n                      \"device_id\": \"574C2C99-D644-4F10-8A27-E686A3B686D1\"\n                    },\n                    \"template_classification_id\": \"\",\n                    \"parent_id\": \"7820b5cb-927c-4198-9604-a863e3dc54ec\",\n                    \"reference_code\": \"D4\",\n                    \"sequence\": 4,\n                    \"device_id\": \"FCBBF2D1-9BE0-4E6D-B605-8495209C7648\"\n                  }\n                ],\n                \"container_type\": \"feature_group\",\n                \"device_id\": \"79B5936E-034C-4CAF-A6BE-E5FE108AB687\",\n                \"parent_id\": \"a7857674-fe62-4279-90db-3ec4439dd1f8\",\n                \"template_id\": \"f2fe507c-63bb-4d1a-b524-b4decf53d702\",\n                \"id\": \"7820b5cb-927c-4198-9604-a863e3dc54ec\",\n                \"sequence\": 0,\n                \"template_classification_id\": \"\",\n                \"name\": \"External Features\"\n              }\n            ],\n            \"id\": \"cce46458-4690-4f00-a9c6-b0f2aea9a862\",\n            \"name\": \"Tedy\",\n            \"parent_id\": \"8924417f-508f-4374-9bbe-61d0eda3a3ae\",\n            \"classification_type\": \"area\",\n            \"template_classification_id\": \"\",\n            \"device_id\": \"624C610D-CE20-4018-A4EC-89D645A7D816\"\n          },\n          \"classification_type\": \"division\",\n          \"id\": \"8924417f-508f-4374-9bbe-61d0eda3a3ae\",\n          \"device_id\": \"47816E2C-8C4D-41F9-94A5-9A0FC08BB43F\",\n          \"name\": \"External Elevations\"\n        }\n      }\n    ],\n    \"template_classification_id\": \"\",\n    \"device_id\": \"51DE5290-F774-4D93-9106-47EDDAC3D597\"\n  }\n]","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/company/survey/{survey}/updateinspection","description":"<h1 id=\"uploading-a-inspection-information-as-a-company\">Uploading a Inspection information as a Company</h1>\n<p>Only accepts JSON files sent through the API, this is decoding on the web side.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","survey","{survey}","updateinspection"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6e3b449-874a-4c51-997a-9cffaf3a8801"}],"id":"6f524076-bccd-41b0-b36b-1fe826e122bf","_postman_id":"6f524076-bccd-41b0-b36b-1fe826e122bf","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"task","item":[{"name":"taskNote","item":[{"name":"api/company/task/{task}/taskNote","id":"ecafa177-65d6-4a72-883a-8532550b3192","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/task/{task}/taskNote","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task","{task}","taskNote"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ecafa177-65d6-4a72-883a-8532550b3192"},{"name":"api/company/task/{task}/taskNote","id":"be22d0e0-969c-4675-9998-15dccbd3b86e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"contents","value":"","description":"<p>REQUIRED: The contents of the Task Note.</p>\n","type":"text"},{"key":"created_by_user_id","value":"","description":"<p>REQUIRED: The user who created the task. Links to the User API using the 'id' field.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/task/{task}/taskNote","description":"<h1 id=\"creating-a-task-note-as-a-company\">Creating a Task Note as a Company</h1>\n<p>Creates a new Task Note by setting the values of the parameters passed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task","{task}","taskNote"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"be22d0e0-969c-4675-9998-15dccbd3b86e"},{"name":"api/company/task/{task}/taskNote/{taskNote}","id":"fa6c9c40-31d8-4ff1-a08a-b2138e936587","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/task/{task}/taskNote/{taskNote}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task","{task}","taskNote","{taskNote}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa6c9c40-31d8-4ff1-a08a-b2138e936587"},{"name":"api/company/task/{task}/taskNote/{taskNote}","id":"6a8ceb29-0e61-4375-b97a-d0c75b54fe4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"contents","value":"","description":"<p>OPTIONAL: The contents of the Task Note.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/task/{task}/taskNote/{taskNote}","description":"<h1 id=\"updating-a-task-note-as-a-company\">Updating a Task Note as a Company</h1>\n<p>Updates the Task Note by setting the values of the parameters passed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task","{task}","taskNote","{taskNote}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a8ceb29-0e61-4375-b97a-d0c75b54fe4f"},{"name":"api/company/task/{task}/taskNote/{taskNote}","id":"6aac147c-b81e-42c6-a353-ea85e552439b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/api/company/task/{task}/taskNote/{taskNote}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task","{task}","taskNote","{taskNote}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6aac147c-b81e-42c6-a353-ea85e552439b"}],"id":"44254247-2692-4c95-bd24-20a4bf00741b","_postman_id":"44254247-2692-4c95-bd24-20a4bf00741b","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"api/company/task","id":"e225e9d3-21e2-43be-a621-2e617bc733de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/task","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e225e9d3-21e2-43be-a621-2e617bc733de"},{"name":"api/company/task","id":"a24935bb-06d0-49a2-a8d2-9f8686bf0b93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"device_id","value":"","description":"<p>NULLABLE: Uses the 'filled' validation rule so is not required unless it is filled out. This is the device UUID in the database.</p>\n","type":"text"},{"key":"name","value":"","description":"<p>REQUIRED: The name of the task.</p>\n","type":"text"},{"key":"task_status_id","value":"","description":"<p>REQUIRED: The status of a task (e.g., active, completed, cancelled). Links to the TaskStatus API.</p>\n","type":"text"},{"key":"task_type_id","value":"","description":"<p>REQUIRED: The type of task (e.g, survey, call back, follow up).</p>\n","type":"text"},{"key":"due_at","value":"","description":"<p>REQUIRED: The date the task is due to be completed.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/task","description":"<h1 id=\"creating-a-new-task-as-a-company\">Creating a new task as a Company</h1>\n<p>Creates a new lead by setting the values of the parameters passed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a24935bb-06d0-49a2-a8d2-9f8686bf0b93"},{"name":"api/company/task/{task}","id":"7ba86874-beb2-46b5-8d60-56b65427ce86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/task/{task}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task","{task}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ba86874-beb2-46b5-8d60-56b65427ce86"},{"name":"api/company/task/{task}","id":"c51c3b0b-69ca-44fd-a4b1-9b1417f887e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>OPTIONAL: The name of the task.</p>\n","type":"text"},{"key":"task_status_id","value":"","description":"<p>OPTIONAL: The status of a task (e.g., active, completed, cancelled). Links to the TaskStatus API.</p>\n","type":"text"},{"key":"task_type_id","value":"","description":"<p>OPTIONAL: The type of task (e.g, survey, call back, follow up).</p>\n","type":"text"},{"key":"due_at","value":"","description":"<p>OPTIONAL: The date the task is due to be completed.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/task/{task}","description":"<h1 id=\"updating-a-task-as-a-company\">Updating a task as a Company</h1>\n<p>Updates the specified task by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task","{task}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c51c3b0b-69ca-44fd-a4b1-9b1417f887e0"},{"name":"api/company/task/{task}","id":"56b6985c-404d-40ce-aa91-0bb83b58acaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/api/company/task/{task}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","task","{task}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"56b6985c-404d-40ce-aa91-0bb83b58acaf"}],"id":"8b7821ac-72ff-407e-8c25-754195f98688","_postman_id":"8b7821ac-72ff-407e-8c25-754195f98688","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"user","item":[{"name":"api/company/user","id":"25a4da8c-fc9e-43fe-9567-96032b7da15f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/user","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","user"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25a4da8c-fc9e-43fe-9567-96032b7da15f"},{"name":"api/company/user","id":"076d2ec8-7f59-4e55-9018-c0352acacc38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>REQUIRED: The user's full name.</p>\n","type":"text"},{"key":"email","value":"","description":"<p>REQUIRED: The user's email address.</p>\n","type":"text"},{"key":"contact_number","value":"","description":"<p>NULLABLE: The user's main contact number.</p>\n","type":"text"},{"key":"contact_number_alt","value":"","description":"<p>NULLABLE: The user's alternative contact number.</p>\n","type":"text"},{"key":"password","value":"","description":"<p>REQUIRED|CONFIRMED: The user's password to their account.</p>\n","type":"text"},{"key":"address_building","value":"","description":"<p>REQUIRED: The user's building name.</p>\n","type":"text"},{"key":"address_line1","value":"","description":"<p>REQUIRED: The user's first line of address.</p>\n","type":"text"},{"key":"address_line2","value":"","description":"<p>REQUIRED: The user's second line of address.</p>\n","type":"text"},{"key":"address_city","value":"","description":"<p>REQUIRED: The user's city.</p>\n","type":"text"},{"key":"address_county","value":"","description":"<p>REQUIRED: The user's county.</p>\n","type":"text"},{"key":"country_id","value":"","description":"<p>REQUIRED: The user's country. Links to the Countries API using the 'id' field.</p>\n","type":"text"},{"key":"address_postcode","value":"","description":"<p>REQUIRED: The user's postcode.</p>\n","type":"text"},{"key":"profile_picture","description":"<p>REQUIRED: The user's profile picture. Must be an image.</p>\n","type":"file","value":null}]},"url":"{{base_url}}/api/company/user","description":"<h1 id=\"creating-a-new-user-as-a-company\">Creating a new user as a Company</h1>\n<p>Creates a new user by setting the values of the parameters passed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","user"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"076d2ec8-7f59-4e55-9018-c0352acacc38"},{"name":"api/company/user/{user}","id":"421e5c40-e133-4876-ae5f-aad4c9c5f4d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/company/user/{user}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","user","{user}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"421e5c40-e133-4876-ae5f-aad4c9c5f4d9"},{"name":"api/company/user/{user}","id":"b73ef92e-8e1d-4864-8374-423c705d15b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>OPTIONAL: The user's full name.</p>\n","type":"text"},{"key":"email","value":"","description":"<p>OPTIONAL: The user's email address.</p>\n","type":"text"},{"key":"contact_number","value":"","description":"<p>NULLABLE: The user's main contact number.</p>\n","type":"text"},{"key":"contact_number_alt","value":"","description":"<p>NULLABLE: The user's alternative contact number.</p>\n","type":"text"},{"key":"password","value":"","description":"<p>SOMETIMES|CONFIRMED: The user's password to their account.</p>\n","type":"text"},{"key":"address_building","value":"","description":"<p>OPTIONAL: The user's building name.</p>\n","type":"text"},{"key":"address_line1","value":"","description":"<p>OPTIONAL: The user's first line of address.</p>\n","type":"text"},{"key":"address_line2","value":"","description":"<p>OPTIONAL: The user's second line of address.</p>\n","type":"text"},{"key":"address_city","value":"","description":"<p>OPTIONAL: The user's city.</p>\n","type":"text"},{"key":"address_county","value":"","description":"<p>OPTIONAL: The user's county.</p>\n","type":"text"},{"key":"country_id","value":"","description":"<p>OPTIONAL: The user's country. Links to the Countries API using the 'id' field.</p>\n","type":"text"},{"key":"address_postcode","value":"","description":"<p>OPTIONAL: The user's postcode.</p>\n","type":"text"},{"key":"alternate_postcode","value":"","description":"<p>OPTIONAL: The alternate postcode for the surveyor's map pointer.</p>\n","type":"text"},{"key":"is_alternate_postcode","value":"","description":"<p>OPTIONAL: A boolean to set the alternate postcode as the main coordinates for the surveyor's map pointer.</p>\n","type":"text"},{"key":"profile_picture","description":"<p>OPTIONAL: The user's profile picture. Must be an image.</p>\n","type":"file","value":null},{"key":"address_geolocation","value":"","description":"<p>NULLABLE: The user's address geocoded into coordinates. Does not need to be filled out as it will do this automatically.</p>\n","type":"text"},{"key":"latitude","value":"","description":"<p>NULLABLE: The latitude to the user's address. Does not need to be filled out as it is taken from the 'address_geolocation' field.</p>\n","type":"text"},{"key":"longitude","value":"","description":"<p>NULLABLE: The longitude to the user's address. Does not need to be filled out as it is taken from the 'address_geolocation' field.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/user/{user}","description":"<h1 id=\"updating-a-user-as-a-company\">Updating a user as a Company</h1>\n<p>Updates the specified user by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","user","{user}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b73ef92e-8e1d-4864-8374-423c705d15b4"},{"name":"api/company/user/{user}","id":"d94b697b-16e5-4952-9dd4-01fcad3498c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>REQUIRED: The user's full name.</p>\n","type":"text"},{"key":"email","value":"","description":"<p>REQUIRED: The user's email address.</p>\n","type":"text"},{"key":"address_building","value":"","description":"<p>REQUIRED: The user's building name.</p>\n","type":"text"},{"key":"address_line1","value":"","description":"<p>REQUIRED: The user's first line of address.</p>\n","type":"text"},{"key":"address_line2","value":"","description":"<p>REQUIRED: The user's second line of address.</p>\n","type":"text"},{"key":"address_city","value":"","description":"<p>REQUIRED: The user's city.</p>\n","type":"text"},{"key":"address_county","value":"","description":"<p>REQUIRED: The user's county.</p>\n","type":"text"},{"key":"country_id","value":"","description":"<p>REQUIRED: The user's country. Links to the Countries API using the 'id' field.</p>\n","type":"text"},{"key":"address_postcode","value":"","description":"<p>REQUIRED: The user's postcode.</p>\n","type":"text"},{"key":"profile_picture","description":"<p>REQUIRED: The user's profile picture. Must be an image.</p>\n","type":"file","value":null},{"key":"company_id","value":"","description":"<p>REQUIRED: The user's associated company. Links to the Company API using the 'id' field.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/company/user/{user}","description":"<h1 id=\"updating-a-user-as-a-company\">Updating a user as a Company</h1>\n<p>Updates the specified user by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n<p><strong>All fields except 'company_id' use the 'filled' validation. If the field is empty, it will throw an error.</strong></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","company","user","{user}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d94b697b-16e5-4952-9dd4-01fcad3498c5"}],"id":"e3086634-c5af-4949-b25b-e5d9767e405d","_postman_id":"e3086634-c5af-4949-b25b-e5d9767e405d","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}}],"id":"257612ab-a7fb-413e-af20-39e841bce358","event":[{"listen":"prerequest","script":{"id":"cc19c941-9333-41cb-b5e1-a72d31481b32","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"dde10edc-88a1-43a5-8d59-276c8eec1be7","type":"text/javascript","exec":[""]}}],"_postman_id":"257612ab-a7fb-413e-af20-39e841bce358","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"staticData","item":[{"name":"api/staticData/user","id":"adde4db6-6275-443d-9a79-f583d5aa26da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/staticData/user","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","staticData","user"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"adde4db6-6275-443d-9a79-f583d5aa26da"}],"id":"dd9d8972-9e19-4500-a54e-7515a48dcd99","_postman_id":"dd9d8972-9e19-4500-a54e-7515a48dcd99","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"user","item":[{"name":"company","item":[{"name":"api/user/company","id":"d2ce4fae-268f-4b72-a4db-a1ebc8c5b942","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/user/company","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","company"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2ce4fae-268f-4b72-a4db-a1ebc8c5b942"}],"id":"e16f76bb-6deb-4acd-83e8-e3b833da7828","_postman_id":"e16f76bb-6deb-4acd-83e8-e3b833da7828","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"customer","item":[{"name":"api/user/customer","id":"aee448be-6965-4716-af9c-f414f6680f23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"{{base_url}}/api/user/customer","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","customer"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aee448be-6965-4716-af9c-f414f6680f23"},{"name":"api/user/customer","id":"04c950b9-827a-49c3-ac3d-fc4bae9fc3a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"contact_first_name","value":"","type":"text","description":"<p>REQUIRED: The customer's first name.</p>\n"},{"key":"contact_last_name","value":"","type":"text","description":"<p>REQUIRED: The customer's last name.</p>\n"},{"key":"contact_number","value":"","type":"text","description":"<p>REQUIRED: The customer's contact number.</p>\n"},{"key":"contact_number_alt","value":"","type":"text","description":"<p>NULLABLE: The customer's alternative contact number.</p>\n"},{"key":"contact_email","value":"","type":"text","description":"<p>REQUIRED: The customer's email address.</p>\n"},{"key":"address_building","value":"","type":"text","description":"<p>NULLABLE: The building name of the customer's address (if applicable).</p>\n"},{"key":"address_line1","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"address_line2","value":"","type":"text","description":"<p>NULLABLE: Address line 2 (e.g., apartment, suite, unit, or building).</p>\n"},{"key":"address_city","value":"","type":"text","description":"<p>REQUIRED: City, district, suburb, town, or village.</p>\n"},{"key":"address_county","value":"","type":"text","description":"<p>REQUIRED: County or state.</p>\n"},{"key":"address_country","value":"","type":"text","description":"<p>REQUIRED: Country, links to the Country API.</p>\n"},{"key":"address_postcode","value":"","type":"text","description":"<p>REQUIRED: ZIP or postal code.</p>\n"}]},"url":"{{base_url}}/api/user/customer","description":"<h1 id=\"creating-a-new-customer-as-a-user\">Creating a new customer as a User</h1>\n<p>Creates a new customer by setting the values of the parameters passed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","customer"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"04c950b9-827a-49c3-ac3d-fc4bae9fc3a4"},{"name":"api/user/customer/{customer}","id":"afa9a1af-0075-465a-b3fa-03dadc074ff6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/api/user/customer/{customer}","description":"<h1 id=\"updating-a-company\">Updating a Company</h1>\n<p>Updates the specified company by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","customer","{customer}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"afa9a1af-0075-465a-b3fa-03dadc074ff6"},{"name":"api/user/customer/{customer}","id":"6df900d0-86e1-46a9-a3c8-ca3f107631cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"contact_first_name","value":"","type":"text","description":"<p>REQUIRED: The customer's first name.</p>\n"},{"key":"contact_last_name","value":"","type":"text","description":"<p>REQUIRED: The customer's last name.</p>\n"},{"key":"contact_number","value":"","type":"text","description":"<p>REQUIRED: The customer's contact number.</p>\n"},{"key":"contact_number_alt","value":"","type":"text","description":"<p>NULLABLE: The customer's alternative contact number.</p>\n"},{"key":"contact_email","value":"","type":"text","description":"<p>REQUIRED: The customer's email address.</p>\n"},{"key":"address_building","value":"","type":"text","description":"<p>NULLABLE: The building name of the customer's address (if applicable).</p>\n"},{"key":"address_line1","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"address_line2","value":"","type":"text","description":"<p>NULLABLE: Address line 2 (e.g., apartment, suite, unit, or building).</p>\n"},{"key":"address_city","value":"","type":"text","description":"<p>REQUIRED: City, district, suburb, town, or village.</p>\n"},{"key":"address_county","value":"","type":"text","description":"<p>REQUIRED: County or state.</p>\n"},{"key":"address_country","value":"","type":"text","description":"<p>REQUIRED: Country, links to the Country API.</p>\n"},{"key":"address_postcode","value":"","type":"text","description":"<p>REQUIRED: ZIP or postal code.</p>\n"},{"key":"_method","value":"","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/user/customer/{customer}","description":"<h1 id=\"updating-a-customer-as-a-user\">Updating a customer as a User</h1>\n<p>Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","customer","{customer}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6df900d0-86e1-46a9-a3c8-ca3f107631cd"},{"name":"api/user/customer/{customer}","id":"413a1f1b-502c-4750-a92b-201f05769297","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/api/user/customer/{customer}","description":"<h1 id=\"updating-a-company\">Updating a Company</h1>\n<p>Updates the specified company by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","customer","{customer}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"413a1f1b-502c-4750-a92b-201f05769297"}],"id":"e63bdeee-6125-4972-9e2c-db295b970cf5","_postman_id":"e63bdeee-6125-4972-9e2c-db295b970cf5","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"survey","item":[{"name":"api/user/survey","id":"cc856ba5-c71c-4e4e-9f22-03d1118dc775","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/user/survey","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","survey"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc856ba5-c71c-4e4e-9f22-03d1118dc775"},{"name":"api/user/survey","id":"cfee745e-90f3-4db3-9423-6bf95a918129","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"survey_type_id","value":"","type":"text","description":"<p>REQUIRED: The type of the survey (e.g., Building Survey, HomeBuyer Report). ID links to 'survey_types' table.</p>\n"},{"key":"survey_status_id","value":"","type":"text","description":"<p>REQUIRED: The status of the survey (e.g., Active, Completed, Cancelled). ID links to  'survey_statuses' table.</p>\n"},{"key":"assigned_surveyor_id","value":"","description":"<p>OPTIONAL: The surveyor assigned to the survey. ID links to 'user_surveyors' table.</p>\n","type":"text"},{"key":"overseen_by_user_id","value":"","description":"<p>OPTIONAL: The user who has over the survey report. ID links to the 'users' table.</p>\n","type":"text"},{"key":"company_customer_id","value":"","type":"text","description":"<p>REQUIRED: The customer that survey is for. ID links to 'company_customers' table.</p>\n"},{"key":"source","value":"","description":"<p>REQUIRED: The source of where the customer heard about the company.</p>\n","type":"text"},{"key":"survey_address_building","value":"","type":"text","description":"<p>FILLED: The name of the building the survey is in.</p>\n"},{"key":"survey_address_line1","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_line2","value":"","type":"text","description":"<p>FILLED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_city","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_county","value":"","type":"text","description":"<p>REQUIRED: County or state.</p>\n"},{"key":"survey_address_country","value":"","type":"text","description":"<p>REQUIRED: Country. ID links to 'countries' table.</p>\n"},{"key":"survey_address_postcode","value":"","type":"text","description":"<p>REQUIRED: ZIP or postal code.</p>\n"},{"key":"is_valuation","value":"","type":"text","description":"<p>REQUIRED: Checkbox for whether a valuation is required (only for Building Surveys).</p>\n"},{"key":"valuation_purpose","value":"","type":"text","description":"<p>FILLED: The purpose of the Valuation.</p>\n"},{"key":"other_users_of_the_report","value":"","description":"<p>OPTIONAL: When selecting 'Valuation' as a Survey Type, this is can be selected if another person(s) requires access to the report.</p>\n","type":"text"},{"key":"property_tenure","value":"","type":"text","description":"<p>REQUIRED: The tenure of the property (e.g., Freehold/Leasehold).</p>\n"},{"key":"property_construction","value":"","type":"text","description":"<p>REQUIRED: The type of construction for the property.</p>\n"},{"key":"other_construction_type","value":"","description":"<p>OPTIONAL: If the property construction type is not on the standard list, this field can be filled out with a different value.</p>\n","type":"text"},{"key":"property_purchase_price","value":"","type":"text","description":"<p>REQUIRED: The purchase price of the property.</p>\n"},{"key":"is_property_size_checked","value":"","type":"text","description":"<p>REQUIRED: Checkbox for whether the size of the property has been checked.</p>\n"},{"key":"leasehold_years","value":"","type":"text","description":"<p>FILLED: The number of years remaining in the lease (if applicable).</p>\n"},{"key":"instruction_taken_on_date","value":"","description":"<p>OPTIONAL: The date the instruction was taken on.</p>\n","type":"text"},{"key":"fee_quoted","value":"","type":"text","description":"<p>REQUIRED: The fee quoted for the survey.</p>\n"},{"key":"repair_costs_quote","value":"","description":"<p>OPTIONAL: The fee for adding repair costs to the report.</p>\n","type":"text"},{"key":"is_repair_costs","value":"","description":"<p>OPTIONAL: A boolean to show whether repair costs should be included or not.</p>\n","type":"text"},{"key":"discount","value":"","description":"<p>OPTIONAL: The numeric value for the discount to be applied to the fee quoted.</p>\n","type":"text"},{"key":"discount_type","value":"","description":"<p>OPTIONAL: A boolean to show whether the discount is a percentage or fixed value.</p>\n","type":"text"},{"key":"valuation_quote","value":"","description":"<p>OPTIONAL: The fee for adding a valuation to the report.</p>\n","type":"text"},{"key":"total_quote","value":"","description":"<p>OPTIONAL: The total quote after calculat all quote fields.</p>\n","type":"text"},{"key":"quoted_at","value":"","type":"text","description":"<p>REQUIRED: The date/time the survey was created.</p>\n"},{"key":"fee_taken","value":"","type":"text","description":"<p>FILLED: The amount by the client for the fee.</p>\n"},{"key":"agreed_at","value":"","type":"text","description":"<p>FILLED: The date the payment was made by the client.</p>\n"},{"key":"terms_sent_at","value":"","type":"text","description":"<p>FILLED: The date the terms and conditions were sent to the client.</p>\n"},{"key":"terms_accepted_at","value":"","type":"text","description":"<p>FILLED: The date the terms and conditions were accepted by the client.</p>\n"},{"key":"admin_notes","value":"","type":"text","description":"<p>FILLED: Administration notes relating to the survey.</p>\n"},{"key":"surveyor_notes","value":"","description":"<p>OPTIONAL: Additional information for the surveyor's reference.</p>\n","type":"text"},{"key":"survey_access_details","value":"","type":"text","description":"<p>FILLED: The details for access to the property.</p>\n"},{"key":"vendor_email","value":"","description":"<p>OPTIONAL: The vendor's email address.</p>\n","type":"text"},{"key":"vendor_number","value":"","description":"<p>OPTIONAL: The vendor's contact number.</p>\n","type":"text"},{"key":"amount_refunded","value":"","type":"text","description":"<p>FILLED: The amount refunded to the client.</p>\n"},{"key":"refunded_at","value":"","type":"text","description":"<p>FILLED: The date/time the client was refunded.</p>\n"},{"key":"original_survey_date","value":"","type":"text","description":"<p>FILLED: The original date of a Valuation (only applicable for Desktop Valuations).</p>\n"},{"key":"visit_booked_at","value":"","type":"text","description":"<p>FILLED: The date/time of the inspection for the survey.</p>\n"},{"key":"visit_completed_at","value":"","type":"text","description":"<p>FILLED: The date/time the inspection was completed for the survey.</p>\n"},{"key":"report_due_at","value":"","type":"text","description":"<p>FILLED: The date the report is due.</p>\n"},{"key":"is_quality_checked","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the quality checks have been completed.</p>\n"},{"key":"is_report_sent","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the report has been sent.</p>\n"},{"key":"report_sent_at","value":"","type":"text","description":"<p>FILLED: The date/time the report was sent.</p>\n"},{"key":"full_set_site_notes","value":"","description":"<p>OPTIONAL: Shows whether the full set of site notes is available.</p>\n","type":"text"},{"key":"valuation_checked_against_rationale","value":"","description":"<p>OPTIONAL: Shows whether valuation has been given rationale.</p>\n","type":"text"},{"key":"appropriate_comparables","value":"","description":"<p>OPTIONAL: Shows whether comparables are available for a valuation.</p>\n","type":"text"},{"key":"reasoning_or_methodology_included","value":"","description":"<p>OPTIONAL: Shows whether reasoning or methodology is available for a valuation.</p>\n","type":"text"},{"key":"contract_compliant","value":"","description":"<p>OPTIONAL: Shows whether the customer has accepted our terms and conditions.</p>\n","type":"text"},{"key":"all_appropriate_documents_saved","value":"","description":"<p>OPTIONAL: Shows whether any relevant documents are available for the survey/valuation.</p>\n","type":"text"},{"key":"signed_copy_on_file","value":"","description":"<p>OPTIONAL: Shows whether the customer's acceptance of our terms are available.</p>\n","type":"text"},{"key":"is_report_sent","value":"","description":"<p>OPTIONAL: Boolean to show whether the report has been sent.</p>\n","type":"text"},{"key":"report_sent_at","value":"","description":"<p>OPTIONAL: Date field to show when the report has been sent.</p>\n","type":"text"},{"key":"is_wanting_hard_copy","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client wants a hard copy of their report.</p>\n"},{"key":"is_client_callback","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client wants a call after the inspection (for brief verbal feedback).</p>\n"},{"key":"is_client_contacted","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client has been contact to follow up post-report.</p>\n"},{"key":"is_review_email_sent","value":"","type":"text","description":"<p>FILLED: Checkbox for whether a Trustpilot review email has been sent to the client.</p>\n"},{"key":"is_invoiced","value":"","type":"text","description":"<p>FILLED: Boolean for whether the invoice has been sent to the client.</p>\n"},{"key":"created_by_user_id","value":"","type":"text","description":"<p>REQUIRED: The user who created the survey. ID links to 'users' table.</p>\n"},{"key":"instruction_taken_by_user_id","value":"","description":"<p>OPTIONAL: The user who's converted the survey. Links to the id field in 'users' table.</p>\n","type":"text"},{"key":"lead_id","value":"","type":"text","description":"<p>FILLED: The lead if the survey was converted from an exisiting lead. ID links to 'leads' table.</p>\n"},{"key":"updated_at","value":"","type":"text","description":"<p>FILLED: The date/time the survey was last updated.</p>\n"},{"key":"device_id","value":"","type":"text","description":"<p>SOMETIMES: UUID from the device for the component.</p>\n"},{"key":"sfy_job_id","value":"","type":"text","description":"<p>FILLED: Links to a lead if provided by Surveyor For You client (usually Estate Agents). ID does not link to a table at the moment.</p>\n"}]},"url":"{{base_url}}/api/user/survey","description":"<h1 id=\"creating-a-new-survey-as-a-user\">Creating a new survey as a User</h1>\n<p>Creates a new user by setting the values of the parameters passed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","survey"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cfee745e-90f3-4db3-9423-6bf95a918129"},{"name":"api/user/survey/{survey}","id":"ce955e12-45d0-4c25-84f5-93b3380828e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"survey_type_id","value":"","type":"text","description":"<p>REQUIRED: The type of the survey (e.g., Building Survey, HomeBuyer Report). ID links to 'survey_types' table.</p>\n"},{"key":"survey_status_id","value":"","type":"text","description":"<p>REQUIRED: The status of the survey (e.g., Active, Completed, Cancelled). ID links to  'survey_statuses' table.</p>\n"},{"key":"assigned_surveyor_id","value":"","type":"text","description":"<p>OPTIONAL: The surveyor assigned to the survey. ID links to 'user_surveyors' table.</p>\n"},{"key":"overseen_by_user_id","value":"","type":"text","description":"<p>OPTIONAL: The user who has over the survey report. ID links to the 'users' table.</p>\n"},{"key":"company_customer_id","value":"","type":"text","description":"<p>REQUIRED: The customer that survey is for. ID links to 'company_customers' table.</p>\n"},{"key":"source","value":"","type":"text","description":"<p>REQUIRED: The source of where the customer heard about the company.</p>\n"},{"key":"survey_address_building","value":"","type":"text","description":"<p>FILLED: The name of the building the survey is in.</p>\n"},{"key":"survey_address_line1","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_line2","value":"","type":"text","description":"<p>FILLED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_city","value":"","type":"text","description":"<p>REQUIRED: Address line 1 (e.g., street, PO Box, or company name).</p>\n"},{"key":"survey_address_county","value":"","type":"text","description":"<p>REQUIRED: County or state.</p>\n"},{"key":"survey_address_country","value":"","type":"text","description":"<p>REQUIRED: Country. ID links to 'countries' table.</p>\n"},{"key":"survey_address_postcode","value":"","type":"text","description":"<p>REQUIRED: ZIP or postal code.</p>\n"},{"key":"is_valuation","value":"","type":"text","description":"<p>REQUIRED: Checkbox for whether a valuation is required (only for Building Surveys).</p>\n"},{"key":"valuation_purpose","value":"","type":"text","description":"<p>FILLED: The purpose of the Valuation.</p>\n"},{"key":"other_users_of_the_report","value":"","type":"text","description":"<p>OPTIONAL: When selecting 'Valuation' as a Survey Type, this is can be selected if another person(s) requires access to the report.</p>\n"},{"key":"property_tenure","value":"","type":"text","description":"<p>REQUIRED: The tenure of the property (e.g., Freehold/Leasehold).</p>\n"},{"key":"property_construction","value":"","type":"text","description":"<p>REQUIRED: The type of construction for the property.</p>\n"},{"key":"other_construction_type","value":"","type":"text","description":"<p>OPTIONAL: If the property construction type is not on the standard list, this field can be filled out with a different value.</p>\n"},{"key":"property_purchase_price","value":"","type":"text","description":"<p>REQUIRED: The purchase price of the property.</p>\n"},{"key":"is_property_size_checked","value":"","type":"text","description":"<p>REQUIRED: Checkbox for whether the size of the property has been checked.</p>\n"},{"key":"leasehold_years","value":"","type":"text","description":"<p>FILLED: The number of years remaining in the lease (if applicable).</p>\n"},{"key":"instruction_taken_on_date","value":"","type":"text","description":"<p>OPTIONAL: The date the instruction was taken on.</p>\n"},{"key":"fee_quoted","value":"","type":"text","description":"<p>REQUIRED: The fee quoted for the survey.</p>\n"},{"key":"repair_costs_quote","value":"","type":"text","description":"<p>OPTIONAL: The fee for adding repair costs to the report.</p>\n"},{"key":"is_repair_costs","value":"","type":"text","description":"<p>OPTIONAL: A boolean to show whether repair costs should be included or not.</p>\n"},{"key":"discount","value":"","type":"text","description":"<p>OPTIONAL: The numeric value for the discount to be applied to the fee quoted.</p>\n"},{"key":"discount_type","value":"","type":"text","description":"<p>OPTIONAL: A boolean to show whether the discount is a percentage or fixed value.</p>\n"},{"key":"valuation_quote","value":"","type":"text","description":"<p>OPTIONAL: The fee for adding a valuation to the report.</p>\n"},{"key":"total_quote","value":"","type":"text","description":"<p>OPTIONAL: The total quote after calculat all quote fields.</p>\n"},{"key":"quoted_at","value":"","type":"text","description":"<p>REQUIRED: The date/time the survey was created.</p>\n"},{"key":"fee_taken","value":"","type":"text","description":"<p>FILLED: The amount by the client for the fee.</p>\n"},{"key":"agreed_at","value":"","type":"text","description":"<p>FILLED: The date the payment was made by the client.</p>\n"},{"key":"terms_sent_at","value":"","type":"text","description":"<p>FILLED: The date the terms and conditions were sent to the client.</p>\n"},{"key":"terms_accepted_at","value":"","type":"text","description":"<p>FILLED: The date the terms and conditions were accepted by the client.</p>\n"},{"key":"admin_notes","value":"","type":"text","description":"<p>FILLED: Administration notes relating to the survey.</p>\n"},{"key":"surveyor_notes","value":"","type":"text","description":"<p>OPTIONAL: Additional information for the surveyor's reference.</p>\n"},{"key":"survey_access_details","value":"","type":"text","description":"<p>FILLED: The details for access to the property.</p>\n"},{"key":"vendor_email","value":"","type":"text","description":"<p>OPTIONAL: The vendor's email address.</p>\n"},{"key":"vendor_number","value":"","type":"text","description":"<p>OPTIONAL: The vendor's contact number.</p>\n"},{"key":"amount_refunded","value":"","type":"text","description":"<p>FILLED: The amount refunded to the client.</p>\n"},{"key":"refunded_at","value":"","type":"text","description":"<p>FILLED: The date/time the client was refunded.</p>\n"},{"key":"original_survey_date","value":"","type":"text","description":"<p>FILLED: The original date of a Valuation (only applicable for Desktop Valuations).</p>\n"},{"key":"visit_booked_at","value":"","type":"text","description":"<p>FILLED: The date/time of the inspection for the survey.</p>\n"},{"key":"visit_completed_at","value":"","type":"text","description":"<p>FILLED: The date/time the inspection was completed for the survey.</p>\n"},{"key":"report_due_at","value":"","type":"text","description":"<p>FILLED: The date the report is due.</p>\n"},{"key":"is_quality_checked","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the quality checks have been completed.</p>\n"},{"key":"is_report_sent","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the report has been sent.</p>\n"},{"key":"report_sent_at","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the report has been sent.</p>\n"},{"key":"full_set_site_notes","value":"","type":"text","description":"<p>OPTIONAL: Shows whether the full set of site notes is available.</p>\n"},{"key":"valuation_checked_against_rationale","value":"","type":"text","description":"<p>OPTIONAL: Shows whether valuation has been given rationale.</p>\n"},{"key":"appropriate_comparables","value":"","type":"text","description":"<p>OPTIONAL: Shows whether comparables are available for a valuation.</p>\n"},{"key":"reasoning_or_methodology_included","value":"","type":"text","description":"<p>OPTIONAL: Shows whether reasoning or methodology is available for a valuation.</p>\n"},{"key":"contract_compliant","value":"","type":"text","description":"<p>OPTIONAL: Shows whether the customer has accepted our terms and conditions.</p>\n"},{"key":"all_appropriate_documents_saved","value":"","type":"text","description":"<p>OPTIONAL: Shows whether any relevant documents are available for the survey/valuation.</p>\n"},{"key":"signed_copy_on_file","value":"","type":"text","description":"<p>OPTIONAL: Shows whether the customer's acceptance of our terms are available.</p>\n"},{"key":"is_report_sent","value":"","type":"text","description":"<p>OPTIONAL: Boolean to show whether the report has been sent.</p>\n"},{"key":"report_sent_at","value":"","type":"text","description":"<p>OPTIONAL: Date field to show when the report has been sent.</p>\n"},{"key":"is_wanting_hard_copy","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client wants a hard copy of their report.</p>\n"},{"key":"is_client_callback","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client wants a call after the inspection (for brief verbal feedback).</p>\n"},{"key":"is_client_contacted","value":"","type":"text","description":"<p>FILLED: Checkbox for whether the client has been contact to follow up post-report.</p>\n"},{"key":"is_review_email_sent","value":"","type":"text","description":"<p>FILLED: Checkbox for whether a Trustpilot review email has been sent to the client.</p>\n"},{"key":"is_invoiced","value":"","type":"text","description":"<p>FILLED: Boolean for whether the invoice has been sent to the client.</p>\n"},{"key":"created_by_user_id","value":"","type":"text","description":"<p>REQUIRED: The user who created the survey. ID links to 'users' table.</p>\n"},{"key":"instruction_taken_by_user_id","value":"","type":"text","description":"<p>OPTIONAL: The user who's converted the survey. Links to the id field in 'users' table.</p>\n"},{"key":"lead_id","value":"","type":"text","description":"<p>FILLED: The lead if the survey was converted from an exisiting lead. ID links to 'leads' table.</p>\n"},{"key":"updated_at","value":"","type":"text","description":"<p>FILLED: The date/time the survey was last updated.</p>\n"},{"key":"device_id","value":"","type":"text","description":"<p>SOMETIMES: UUID from the device for the component.</p>\n"},{"key":"sfy_job_id","value":"","type":"text","description":"<p>FILLED: Links to a lead if provided by Surveyor For You client (usually Estate Agents). ID does not link to a table at the moment.</p>\n"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/user/survey/{survey}","description":"<h1 id=\"updating-a-survey-as-a-user\">Updating a survey as a User</h1>\n<p>Updates the specified survey by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","survey","{survey}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce955e12-45d0-4c25-84f5-93b3380828e1"},{"name":"api/user/survey/{survey}","id":"00e2c8ba-f79b-4982-95db-9137fd0952d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/user/survey/{survey}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","survey","{survey}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"00e2c8ba-f79b-4982-95db-9137fd0952d2"},{"name":"api/user/survey/{survey}","id":"fe338d3e-8032-4698-acd5-1e28a4bbfa2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>REQUIRED: The user's full name.</p>\n","type":"text"},{"key":"email","value":"","description":"<p>REQUIRED: The user's email address.</p>\n","type":"text"},{"key":"address_building","value":"","description":"<p>REQUIRED: The user's building name.</p>\n","type":"text"},{"key":"address_line1","value":"","description":"<p>REQUIRED: The user's first line of address.</p>\n","type":"text"},{"key":"address_line2","value":"","description":"<p>REQUIRED: The user's second line of address.</p>\n","type":"text"},{"key":"address_city","value":"","description":"<p>REQUIRED: The user's city.</p>\n","type":"text"},{"key":"address_county","value":"","description":"<p>REQUIRED: The user's county.</p>\n","type":"text"},{"key":"country_id","value":"","description":"<p>REQUIRED: The user's country. Links to the Countries API using the 'id' field.</p>\n","type":"text"},{"key":"address_postcode","value":"","description":"<p>REQUIRED: The user's postcode.</p>\n","type":"text"},{"key":"profile_picture","description":"<p>REQUIRED: The user's profile picture. Must be an image.</p>\n","type":"file","value":null},{"key":"company_id","value":"","description":"<p>REQUIRED: The user's associated company. Links to the Company API using the 'id' field.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/user/survey/{survey}","description":"<h1 id=\"updating-a-user-as-a-company\">Updating a user as a Company</h1>\n<p>Updates the specified user by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n<p><strong>All fields except 'company_id' use the 'filled' validation. If the field is empty, it will throw an error.</strong></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","survey","{survey}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe338d3e-8032-4698-acd5-1e28a4bbfa2b"}],"id":"7a39de1d-82a0-424b-b555-993a562a8054","_postman_id":"7a39de1d-82a0-424b-b555-993a562a8054","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"task","item":[{"name":"taskNote","item":[{"name":"api/user/task/{task}/taskNote","id":"af10418d-5b73-473d-b4cf-4e5eef30e208","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/user/task/{task}/taskNote","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task","{task}","taskNote"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"af10418d-5b73-473d-b4cf-4e5eef30e208"},{"name":"api/user/task/{task}/taskNote","id":"4ee71cf3-bd02-44db-b5d0-5fd5813fee57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{base_url}}/api/user/task/{task}/taskNote","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task","{task}","taskNote"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ee71cf3-bd02-44db-b5d0-5fd5813fee57"},{"name":"api/user/task/{task}/taskNote/{taskNote}","id":"dc577395-2c15-40bd-8fb9-558769d4d514","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/user/task/{task}/taskNote/{taskNote}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task","{task}","taskNote","{taskNote}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc577395-2c15-40bd-8fb9-558769d4d514"},{"name":"api/user/task/{task}/taskNote/{taskNote} Copy 2","id":"8c3727c2-99b8-4fce-9543-5853b96dd2c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"{{base_url}}/api/user/task/{task}/taskNote/{taskNote}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task","{task}","taskNote","{taskNote}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c3727c2-99b8-4fce-9543-5853b96dd2c6"},{"name":"api/user/task/{task}/taskNote/{taskNote} Copy","id":"21ad6ebe-6dd2-4421-9522-f3938685c2b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/api/user/task/{task}/taskNote/{taskNote}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task","{task}","taskNote","{taskNote}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"21ad6ebe-6dd2-4421-9522-f3938685c2b8"}],"id":"fb99a6ff-3fe2-4777-8b23-849f292f60c4","_postman_id":"fb99a6ff-3fe2-4777-8b23-849f292f60c4","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"api/user/task","id":"0c731f50-93f0-4c60-9ac8-30cc77cc1493","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/user/task","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c731f50-93f0-4c60-9ac8-30cc77cc1493"},{"name":"api/user/task","id":"d704b1e7-5845-44f0-ad6e-a183ef70107b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>REQUIRED: The name of the task (e.g, Call client about queries).</p>\n","type":"text"},{"key":"task_status_id","value":"","description":"<p>REQUIRED: The status of the task (e.g., Active, Completed, or Cancelled). Links to the Task Statuses API using the id field from TaskStatusesTable.</p>\n","type":"text"},{"key":"task_type_id","value":"","description":"<p>REQUIRED: The type of task (e.g., Survey, Call Back, or Query). Links to the Task Types API using the id field from TasksTable.</p>\n","type":"text"},{"key":"due_at","value":"","description":"<p>REQUIRED: The date the task is due to be completed.</p>\n","type":"text"},{"key":"assigned_to_user_id","value":"","description":"<p>REQUIRED: The user assigned to the task. Links to the Users API using the id field from UsersTable.</p>\n","type":"text"},{"key":"assigned_to_user_at","value":"","description":"<p>REQUIRED: The date and time the task was assigned to a user.</p>\n","type":"text"},{"key":"created_by_user_id","value":"","description":"<p>REQUIRED: The user that created the task. Links to the Users API using the id field from UsersTable.</p>\n","type":"text"},{"key":"_method","value":"POST","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/user/task","description":"<h1 id=\"user-creating-their-own-task\">User creating their own Task</h1>\n<p>User creates their own new task by setting the values of the parameters passed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d704b1e7-5845-44f0-ad6e-a183ef70107b"},{"name":"api/user/task/{task}","id":"058a2622-1027-441e-8c71-e8eef1514dfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>OPTIONAL: The name of the task (e.g, Call client about queries).</p>\n","type":"text"},{"key":"task_status_id","value":"","description":"<p>OPTIONAL: The status of the task (e.g., Active, Completed, or Cancelled). Links to the Task Statuses API using the id field from TaskStatusesTable.</p>\n","type":"text"},{"key":"task_type_id","value":"","description":"<p>OPTIONAL: The type of task (e.g., Survey, Call Back, or Query). Links to the Task Types API using the id field from TasksTable.</p>\n","type":"text"},{"key":"due_at","value":"","description":"<p>OPTIONAL: The date the task is due to be completed.</p>\n","type":"text"},{"key":"assigned_to_user_id","value":"","description":"<p>OPTIONAL: The user assigned to the task. Links to the Users API using the id field from UsersTable.</p>\n","type":"text"},{"key":"assigned_to_user_at","value":"","description":"<p>OPTIONAL: The date and time the task was assigned to a user.</p>\n","type":"text"},{"key":"created_by_user_id","value":"","description":"<p>OPTIONAL: The user that created the task. Links to the Users API using the id field from UsersTable.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/user/task/{task}","description":"<h1 id=\"user-updating-their-own-tasks\">User updating their own Tasks</h1>\n<p>Updates the specified user's task by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n<p><strong>The following fields use the 'sometimes' validation. If the field is empty, it will throw an error.</strong></p>\n<ul>\n<li>name</li>\n<li>task_status_id</li>\n<li>task_type_id</li>\n<li>due_at</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task","{task}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"058a2622-1027-441e-8c71-e8eef1514dfb"},{"name":"api/user/task/{task}","id":"76f098fc-761b-40c0-b4b7-5e5013ba9254","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/user/task/{task}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task","{task}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"76f098fc-761b-40c0-b4b7-5e5013ba9254"},{"name":"api/user/task/{task}","id":"72d4da1c-5b02-4dbb-9d6f-831a15c5c59e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/api/user/task/{task}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","task","{task}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"72d4da1c-5b02-4dbb-9d6f-831a15c5c59e"}],"id":"261c9087-4d43-41cf-b09d-f026456eddce","_postman_id":"261c9087-4d43-41cf-b09d-f026456eddce","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"user","item":[{"name":"api/user/user","id":"1a648d91-70b4-4017-8084-ebd09b97b0f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/api/user/user","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","user"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a648d91-70b4-4017-8084-ebd09b97b0f4"},{"name":"api/user/user/{user}","id":"c0754b5a-eec7-47b0-9c08-aa6b873cfcc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"","description":"<p>OPTIONAL: The user's full name.</p>\n","type":"text"},{"key":"email","value":"","description":"<p>OPTIONAL: The user's email address.</p>\n","type":"text"},{"key":"contact_number","value":"","description":"<p>NULLABLE: The user's main contact number.</p>\n","type":"text"},{"key":"contact_number_alt","value":"","description":"<p>NULLABLE: The user's alternative contact number.</p>\n","type":"text"},{"key":"password","value":"","description":"<p>SOMETIMES|CONFIRMED: The user's password to their account.</p>\n","type":"text"},{"key":"address_building","value":"","description":"<p>OPTIONAL: Name of a company's building.</p>\n","type":"text"},{"key":"address_line1","value":"","description":"<p>OPTIONAL: Address line 1 (e.g., street, PO Box, or company name).</p>\n","type":"text"},{"key":"address_line2","value":"","description":"<p>OPTIONAL: Address line 2 (e.g., apartment, suite, unit, or building).</p>\n","type":"text"},{"key":"address_city","value":"","description":"<p>OPTIONAL: City, district, suburb, town, or village.</p>\n","type":"text"},{"key":"address_county","value":"","description":"<p>OPTIONAL: County or state.</p>\n","type":"text"},{"key":"country_id","value":"","description":"<p>OPTIONAL: Country, links to the Country API using the id field from CountriesTable.</p>\n","type":"text"},{"key":"address_postcode","value":"","description":"<p>OPTIONAL: ZIP or postal code.</p>\n","type":"text"},{"key":"alternate_postcode","value":"","description":"<p>OPTIONAL: The alternate postcode for the surveyor's map pointer.</p>\n","type":"text"},{"key":"is_alternate_postcode","value":"","description":"<p>OPTIONAL: A boolean to set the alternate postcode as the main coordinates for the surveyor's map pointer.</p>\n","type":"text"},{"key":"profile_picture","description":"<p>OPTIONAL: Image for the user's profile picture.</p>\n","type":"file","value":null},{"key":"address_geolocation","value":"","description":"<p>NULLABLE: The user's address geocoded into coordinates. Does not need to be filled out as it will do this automatically.</p>\n","type":"text"},{"key":"latitude","value":"","description":"<p>NULLABLE: The latitude to the user's address. Does not need to be filled out as it is taken from the 'address_geolocation' field.</p>\n","type":"text"},{"key":"longitude","value":"","description":"<p>NULLABLE: The longitude to the user's address. Does not need to be filled out as it is taken from the 'address_geolocation' field.</p>\n","type":"text"},{"key":"_method","value":"PATCH","description":"<p>This is needed or the request will fail.</p>\n","type":"text"}]},"url":"{{base_url}}/api/user/user/{user}","description":"<h1 id=\"user-updating-their-own-details\">User updating their own details.</h1>\n<p>Updates the specified user by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","user","user","{user}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c0754b5a-eec7-47b0-9c08-aa6b873cfcc1"}],"id":"1ede77fb-aa38-4cd3-b111-d6f3d589fa08","_postman_id":"1ede77fb-aa38-4cd3-b111-d6f3d589fa08","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}}],"id":"cb55c4d7-e307-4d98-bcf6-3e00fd7191a4","event":[{"listen":"prerequest","script":{"id":"ac7368d0-273f-4fe7-bd6b-327be08a9560","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"50b56ca0-61b3-40e6-8c59-e51773ceb7fb","type":"text/javascript","exec":[""]}}],"_postman_id":"cb55c4d7-e307-4d98-bcf6-3e00fd7191a4","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"Generate Auth-token","item":[{"name":"Generate Auth Token","id":"30f26573-b38e-44e5-8998-5f49519f9f0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"marvel@test.com","type":"text"},{"key":"password","value":"12345","type":"text"}]},"url":"{{base_url}}/api/login","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}},"urlObject":{"path":["api","login"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"30f26573-b38e-44e5-8998-5f49519f9f0c"}],"id":"379a340e-cfe8-4835-8337-b707438ec367","_postman_id":"379a340e-cfe8-4835-8337-b707438ec367","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}},{"name":"User Account Deletion Request","item":[{"name":"Account Deletion Request","id":"14482278-ab13-474d-a996-f051eb2e3443","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/user/AccountdeleteRequest/{user_id}","urlObject":{"path":["api","user","AccountdeleteRequest","{user_id}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"14482278-ab13-474d-a996-f051eb2e3443"}],"id":"7783fd00-5ec0-4fff-90bb-9e614f04a2d4","_postman_id":"7783fd00-5ec0-4fff-90bb-9e614f04a2d4","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}}],"id":"6e80b6aa-a143-4553-94f8-b7678c351ca6","event":[{"listen":"prerequest","script":{"id":"76252410-5e6b-41f0-9b44-7560166649fc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3d0f09d6-6def-4bbc-87a1-a29b1750afb2","type":"text/javascript","exec":[""]}}],"_postman_id":"6e80b6aa-a143-4553-94f8-b7678c351ca6","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1pFuNTdXAKBEtHM49627TudSEprqCAGjKx"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]},"isInherited":true,"source":{"_postman_id":"890ab911-0703-436b-9483-fd9190044b77","id":"890ab911-0703-436b-9483-fd9190044b77","name":"New SFY Reports API","type":"collection"}}}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"grant_type","value":"<grant_type>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"tokenType","value":"<token-type>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"clientId","value":"{{client_id}}"},{"key":"state","value":"1g3nVgFtdT7kDL5NAz3h7KXQkpsna77"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"authUrl","value":"<auth-url>"},{"key":"tokenName","value":"<token-name>"}]}},"event":[{"listen":"prerequest","script":{"id":"122397ea-773f-47da-a5f2-c98ca0467da1","type":"text/javascript","exec":["var Header = require('postman-collection').Header;","pm.request.headers.add(new Header('Accept: application/json'))"]}},{"listen":"test","script":{"id":"cae0dbac-c9b4-4af1-9f68-a7109e851404","type":"text/javascript","exec":[""]}}]}