{"info":{"_postman_id":"25d40fb8-5449-402b-82d0-a6ae74391a71","name":"Teamgate API Documentation","description":"<html><head></head><body><br>\n<img src=\"https://www.teamgate.com/wp-content/uploads/files/teamgate_logoBlue.png\" width=\"75%\">\n<br>\n\n<h1 id=\"getting-started-with-teamgate-api\">Getting Started with Teamgate API</h1>\n<p>This documentation will help you to get started with RESTful Teamgate API. Out API receives and parses CORS (Cross-Origin Resource Sharing) requests and returns results in JSON format. Every request must have application key (APP_KEY) and users AUTH_TOKEN.</p>\n<hr>\n<h1 id=\"application-key\">Application Key</h1>\n<p>Application key is a unique sequence of symbols, assigned to your app by request. You should set APP_KEY in every API request. By this key we determine whether your application has rights to send requests to our API. APP_KEY should be added to every request's header as „X-App-Key” parameter.<br><br>\n<img src=\"https://files.readme.io/a845672-external_apps.png\" alt=\"alt text\">\n<br><br></p>\n<hr>\n<h1 id=\"authorization-token\">Authorization Token</h1>\n<p>Unique authorization token is being generated to every user in Teamgate. You can find it in your profile or by using API method „authorization” (see <a href=\"http://developers.teamgate.com/\">http://developers.teamgate.com/</a>). This token is used to determine user in our system and should be set in every request's header as „X-Auth-Token” parameter.<br><br>\n<img src=\"https://files.readme.io/71dd920-example_auth_token-2.png\" alt=\"alt text\">\n<br><br>\nMy Profile -&gt; Integrations -&gt; AUTH_TOKEN</p>\n<hr>\n<h1 id=\"users-permissions\">Users Permissions</h1>\n<p>Every request should have APP_KEY as header parameter „<strong>X-App-Key</strong>” and user's AUTH_TOKEN as header parameter „<strong>X-Auth-Token</strong>”. By these parameters Teamgate API checks permissions whether user can call specified API method. Users permissions are set using roles tree in your account settings (Settings → Users Management → User Roles).</p>\n<hr>\n<h1 id=\"making-api-request\">Making API Request</h1>\n<p>Teamgate API uses simple URL rules. Every request should have APP_KEY and AUTH_TOKEN. API URL for all requests is <a href=\"https://api.teamgate.com/\">https://api.teamgate.com/</a>. Simply add to url controller, action and parameters required by action (e.g. controller: sales, action getSalesUdfList – <a href=\"https://api.teamgate.com/sales/getSalesUdfList\">https://api.teamgate.com/sales/getSalesUdfList</a>). All requests should be sent by POST, GET, PUT or DELETE methods. Also, don't forget to add APP_KEY and AUTH_TOKEN as header parameters. APP_KEY is passed with header parameter „<strong>X-App-Key</strong>“, AUTH_TOKEN is passed with header parameter „<strong>X-Auth-Token</strong>“. Result is returned in JSON format, for example {\"success\":true,\"data\":{the_data}}. Success would have true or false values.</p>\n<hr>\n<h1 id=\"querying-a-collection\">Querying a collection</h1>\n<p>A collection is read with a GET operation. Data from the query is returned in the JSON format unless specified otherwise in the individual reference. You can specify a supported data format with an ACCEPT header.</p>\n<p>A GET request that returns a large amount of data can stress the database server and cause performance degradation for all users. To minimize the load:</p>\n<ul>\n<li>Specify how the returned data are paged.</li>\n<li>Retrieve only the fields you need by using a fields clause.</li>\n<li>Filter the instances to be returned with a query clause.</li>\n</ul>\n<h2 id=\"page-data-limit-offset-count\">Page data (limit, offset, count)</h2>\n<p>When a query returns a large set of data, the results are returned in a series of pages. The client requests the next page after handling the data already received.</p>\n<p>Pagination lets you: </p>\n<ul>\n<li><p>Retrieve a limited collection of results from the server.</p>\n</li>\n<li><p>Offset a collection of results from the server.</p>\n</li>\n</ul>\n<p>To paginate, use the keywords limit and offset.</p>\n<h3 id=\"limit-specifying-the-page-size-in-the-query\">Limit: Specifying the page size in the query</h3>\n<p>You can indicate the number of instances to return in each page using the query parameter.</p>\n<p>limit has the following syntax: limit=<code>&lt;value&gt;</code></p>\n<p>The <code>value</code> is an integer and must be greater than 0.</p>\n<p>This limits the number of results in a resource collection returned from the server to a specific number of results.</p>\n<p>The count property in the response states the actual number of entities that answer the filter (including the ones that are brought by the specific page).</p>\n<p>If no limit parameter is provided, the default limit is used.</p>\n<h3 id=\"offset-specifying-where-to-start-a-page\">Offset: Specifying where to start a page</h3>\n<p>The query parameter offset sets the first position to return from the results of the query. The default is 0, which starts the page at the first result.</p>\n<p>Offset has the following syntax: offset=<code>&lt;value&gt;</code></p>\n<p>The <code>value</code> is an integer and must be greater than or equal to 0.</p>\n<p>This offsets the starting point of the collection returned from the server in the results.</p>\n<p>If no offset parameter is provided, the number 0 is used.</p>\n<h2 id=\"select-fields-fields\">Select fields (fields)</h2>\n<p>You can specify the fields to be returned from the server in the response to a GET operation on a collection.</p>\n<p>Using the fields clause is useful when GETting certain fields that are not listed by default, often for performance reasons. Some examples are: user-defined fields, comments, attachments, runs, and run steps.</p>\n<p>The fields parameter</p>\n<p>Select fields with the fields parameter. The fields parameter has the following syntax: </p>\n<p>fields=<code>&lt;field name&gt;[[,&lt;field name&gt;]]</code></p>\n<p>Example: /companies?fields=name,starred</p>\n<p>The field's ID and type are always returned regardless of the fields you select.</p>\n<p>Field names are separated by commas: ,</p>\n<p>If no fields parameter is provided, a default set of fields is returned.</p>\n<h2 id=\"sort-results-order\">Sort results (order)</h2>\n<p>Sorts the entities returned from the server during a GET operation on collections.</p>\n<p>The order_by parameter has the following syntax:</p>\n<p>order=<code>&lt;field name&gt;[[,[&lt;direction&gt;]&lt;field name&gt;]]:[&lt;direction&gt;]</code></p>\n<p>Example: /companies?order=name:asc,starred:desc</p>\n<p>Field names are separated by commas (,).</p>\n<p>If no order parameter is sent, the collection is sorted by default.</p>\n<p>Sorting is case-insensitive. This means that the values A B C D E a b c d e are sorted like this: A a B b C c D d E e .</p>\n<p>Results can be sorted by any fields of the entity.</p>\n<p>If no order parameter is sent, the collection is sorted by entity ID.</p>\n<h2 id=\"filtering\">Filtering</h2>\n<p>Filtering supports any field of groups of fields. Combinational filtering can be used.\nSupported string comparison operators: <code>=</code>, <code>like</code>. <code>=</code> operator expects exact value, for example <code>?name=Piotr%20Newman</code>, while like operator, can match substring with the help of percentage encapsulation, like this:</p>\n<ul>\n<li><code>%end of string</code>, for example: <code>?name[like]=%Newman</code></li>\n<li><code>start of string%</code>, for example <code>?name[like]=Piotr%</code></li>\n<li><code>%somewhere in string%</code>, for example <code>?name[like]=%tr P%</code></li>\n</ul>\n<p>Supported numerical operators:</p>\n<ul>\n<li><code>=</code> - equals, for example <code>?cost=20</code>, matches records with cost value equal to 20.</li>\n<li><code>gt</code> - greater than, for example <code>?cost[gt]=20</code>, matches records with greater cost than 20.</li>\n<li><code>lt</code> - less than, for example <code>?cost[lt]=100</code>, matches records with lesser than 100 cost.</li>\n<li><code>gte</code> - greater than or equal, for example <code>?cost[gte]=20</code>, matches records with greater or equal cost to 20.</li>\n<li><code>lte</code> - less than or equal, for example <code>?cost[lte]=100</code>, matches records with lesser or equal cost to 100.</li>\n</ul>\n<p>You can use logic operators in single field multiple comparisons or for whole request with the help of operator parameter. For example:</p>\n<ul>\n<li>Global logical operator - <code>?operator=or</code></li>\n<li>Per field logical operator - <code>?cost[operator]=or&amp;cost[lt]=100&amp;cost=500</code></li>\n</ul>\n<hr>\n<h1 id=\"responses\">Responses</h1>\n<p>With Teamgete API you can specify what fields you want to get from the response. This allows you to see only the relevant information. Just note that <strong>Id</strong> will always be shown. To do this just add additional information to the requested URL. If you want to see more than one field you will need to separete it with commas, as seen in example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.teamgate.com/v4/companies/{{companyId}}?fields=name,owner\n</code></pre><p>If you want to include custom fields in response just add <code>?embed=customFields</code> at the end of URL. See example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.teamgate.com/v4/leads/?embed=customFields\n</code></pre><p>This works with leads, people, companies, deals and products. Just change the leads to any other one you want.</p>\n<p>You can also use <strong>AND</strong> and <strong>OR operators</strong>. Lets say you have two conditions that has to be satisfied. Than you can use the <strong>default AND</strong> operator.</p>\n<p>See example: </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.teamgate.com/v4/leads?source=Web search&amp;industry=Hardware Testing\n</code></pre><p>But lets say you want to have at least one of the condition satisfied then you can use <strong>OR operator</strong>.</p>\n<p>See example: </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.teamgate.com/v4/leads?source=Web search&amp;industry=Hardware Testing&amp;operator=OR\n</code></pre><hr>\n<h1 id=\"api-request-limits\">API Request Limits</h1>\n<p>Request limiting of the API is primarily considered on a per-account — or more accurately described, per Application Key in your account. By default rate limit is <strong>1000 requests</strong> by Application Key <strong>per 15 minutes</strong>. If you want to increase the limit of API requests, please write to us at <a href=\"mailto:support@teamgate.com\">support@teamgate.com</a>.\n<br>\nIf you're getting '193' response code, that means you have made too many API requests in given time frame. Such limits are managed as an allowed number of operations per time window, where an operation might be read or an update.\n<br></p>\n<h2 id=\"http-headers-and-response-codes\">HTTP Headers and Response Codes</h2>\n<p>If you hit the rate limit on a given endpoint, this is the body of the HTTP 193 message that you will see:\n<br>\n<strong>JSON</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"success\": false,\n    \"error\": \"API key request limit reached: 1000\",\n    \"code\": 193\n}\n</code></pre>\n<p><strong>Rate limit headers:</strong><br>\n<strong>X-RateLimit-Limit</strong>: Maximum number of operations allowed in the current window.<br>\n<strong>X-RateLimit-Remaining</strong>: Number of operations left in the current window.<br>\n<strong>X-RateLimit-Reset</strong>: Time when rate limit window will be reset as a Unix timestamp.</p>\n<p>Also for leads, people, companies, deals and products you can see custom fields</p>\n<hr>\n<h1 id=\"web-sdk\">Web SDK</h1>\n<p><a href=\"https://github.com/teamgate/php-sdk\">https://github.com/teamgate/php-sdk</a></p>\n<hr>\n<h1 id=\"errors\">Errors</h1>\n<p>Teamgate API uses HTTP and some custom response codes to indicate the success or failure of an API request.</p>\n<p>The codes consist of 3 numbers. The first number generally denotes the type of error.</p>\n<p>19x codes means that something went wrong with authentication, 2xx codes generally indicate success, 4xx codes indicate a problem with the request that was sent, incorrect query parameter/syntax etc, 5xx codes means that something went wrong on the blog's server, and 7xx codes indicate internal application errors.</p>\n<h2 id=\"error-responses\">Error responses</h2>\n<p>Errors are returned in JSON, with a top-level error keys <code>code</code> and <code>message</code>.</p>\n<p>Each error currently has a message and an error Type.</p>\n<p>This error response format is likely to get an overhaul in the near future.</p>\n<p>Examples:\n<br>\n<strong>JSON</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"success\": false,\n    \"error\": \"API key request limit reached: 1000\",\n    \"code\": 193\n}\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n  \"success\": false,\n  \"error\": \"Url invalid\",\n  \"code\": 750\n}\n</code></pre>\n<h2 id=\"http-successerror-codes-used\">HTTP success/error codes used:</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>190</td>\n<td>APP_KEY_NOT_FOUND</td>\n</tr>\n<tr>\n<td>191</td>\n<td>APP_KEY_INVALID</td>\n</tr>\n<tr>\n<td>192</td>\n<td>APP_NOT_ACTIVE</td>\n</tr>\n<tr>\n<td>193</td>\n<td>API key request limit reached: xxxx</td>\n</tr>\n<tr>\n<td>194</td>\n<td>URL_INVALID</td>\n</tr>\n<tr>\n<td>196</td>\n<td>ACCOUNT_EXPIRED</td>\n</tr>\n<tr>\n<td>197</td>\n<td>USER_TOKEN_INVALID</td>\n</tr>\n<tr>\n<td>198</td>\n<td>USERNAME_OR_PASSWORD_INVALID</td>\n</tr>\n<tr>\n<td>199</td>\n<td>GATEWAY_ERROR</td>\n</tr>\n<tr>\n<td>200</td>\n<td>OK. Response for successful HTTP requests.</td>\n</tr>\n<tr>\n<td>201</td>\n<td>Created. The request has been fulfilled, resulting in the creation of a new resource.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad Request. The server cannot or will not process the request due to an apparent client error.</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden. The request was a valid request, but the server is refusing to respond to it. The user might be logged in but does not have the necessary permissions for the resource.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found. The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.</td>\n</tr>\n<tr>\n<td>405</td>\n<td>Method Not Allowed. A request method is not supported for the requested resource.</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error. A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.</td>\n</tr>\n<tr>\n<td>700</td>\n<td>REQUEST_TYPE</td>\n</tr>\n<tr>\n<td>701</td>\n<td>APP_KEY</td>\n</tr>\n<tr>\n<td>702</td>\n<td>API_KEY</td>\n</tr>\n<tr>\n<td>703</td>\n<td>USERNAME_OR_PASSWORD</td>\n</tr>\n<tr>\n<td>704</td>\n<td>USER_NOT_ACTIVE</td>\n</tr>\n<tr>\n<td>705</td>\n<td>APP_NOT_ACTIVE</td>\n</tr>\n<tr>\n<td>706</td>\n<td>QUERY_LIMIT</td>\n</tr>\n<tr>\n<td>707</td>\n<td>ACCESS_TOKEN</td>\n</tr>\n<tr>\n<td>708</td>\n<td>DB</td>\n</tr>\n<tr>\n<td>709</td>\n<td>NO_APP_DATA</td>\n</tr>\n<tr>\n<td>710</td>\n<td>NO_API_USERS_DATA</td>\n</tr>\n<tr>\n<td>711</td>\n<td>WRONG_DATA</td>\n</tr>\n<tr>\n<td>712</td>\n<td>NO_PERMISSIONS</td>\n</tr>\n<tr>\n<td>713</td>\n<td>NOT_SECURE_CONNECTION</td>\n</tr>\n<tr>\n<td>714</td>\n<td>WRONG_IP</td>\n</tr>\n<tr>\n<td>715</td>\n<td>NO_APP_KEY</td>\n</tr>\n<tr>\n<td>716</td>\n<td>DB_NAME_INVALID</td>\n</tr>\n<tr>\n<td>717</td>\n<td>USER_NOT_FOUND</td>\n</tr>\n<tr>\n<td>720</td>\n<td>DATA_LIMIT</td>\n</tr>\n<tr>\n<td>750</td>\n<td>ACTION_ERROR</td>\n</tr>\n<tr>\n<td>760</td>\n<td>DB_QUERY_ERROR</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Getting Started with Teamgate API","slug":"getting-started-with-teamgate-api"},{"content":"Application Key","slug":"application-key"},{"content":"Authorization Token","slug":"authorization-token"},{"content":"Users Permissions","slug":"users-permissions"},{"content":"Making API Request","slug":"making-api-request"},{"content":"Querying a collection","slug":"querying-a-collection"},{"content":"Responses","slug":"responses"},{"content":"API Request Limits","slug":"api-request-limits"},{"content":"Web SDK","slug":"web-sdk"},{"content":"Errors","slug":"errors"}],"owner":"4195728","collectionId":"25d40fb8-5449-402b-82d0-a6ae74391a71","publishedId":"RW87rW37","public":true,"customColor":{"top-bar":"1A3347","right-sidebar":"112534","highlight":"3AA2C9"},"publishDate":"2018-05-22T10:30:51.000Z"},"item":[{"name":"00. Schemes","item":[{"name":"Get users collection [for Schemes]","event":[{"listen":"prerequest","script":{"id":"d1a8bf16-99c0-4dbf-9927-63bb549288e6","exec":["//Declaring values that will be used in all other tests","//var appKey  = \"KV9mVvKqkO2G1RwFXaLqlvuyz4BN9SOInKs741mdFbh6sT9GsJuT5cFsVE4RWHX9PF5I5fj87E1nWyrE\";","//var authToken  = \"2602c33f6b4ad0114b65ab09afcfc3c33bf0fc5a\";","","//postman.setEnvironmentVariable('appKey', appKey);","//postman.setEnvironmentVariable('authToken', authToken);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"880ed4b4-f67a-4735-b0ed-12126ad34f38","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var moment = require(\"moment\");","pm.environment.set(\"tomorrow\", moment().add(1, 'day').zone(0).format(\"YYYY-MM-DDTHH:mm:ss+00:00\"));","pm.environment.set(\"tomorrow60\", moment().add(25, 'hours').zone(0).format(\"YYYY-MM-DDTHH:mm:ss+00:00\"));","","var schemaPicture = {","    \"type\": \"object\",","    \"required\" : [\"small\", \"medium\", \"large\"],","    \"properties\": {","        \"small\": { \"type\": \"string\" },","        \"medium\": { \"type\": \"string\" },","        \"large\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaUser = { ","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\", \"surname\", \"username\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" },","        \"surname\": { \"type\": [\"string\", \"null\"] },","        \"username\": { \"type\": \"string\" },","        \"picture\": schemaPicture","    },","    \"additionalProperties\": true","};","","var schemaPrice = {","    \"type\": \"object\",","    \"required\" : [\"value\", \"currency\", \"symbol\", \"rate\", \"baseValue\", \"baseCurrency\", \"baseSymbol\"],","    \"properties\": {","        \"value\": { \"type\": \"number\" },","        \"currency\": { \"type\": \"string\" },","        \"symbol\": { \"type\": \"string\" },","        \"rate\": { \"type\": \"number\" },","        \"baseValue\": { \"type\": \"number\" },","        \"baseCurrency\": { \"type\": \"string\" },","        \"baseSymbol\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaCurrencies = { ","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"iso\", \"rate\", \"fullRate\", \"name\", \"symbol\"],","        \"properties\": {","            \"iso\": {\"type\":\"string\"},","            \"rate\": {\"type\":\"string\"},","            \"fullRate\": {\"type\":\"string\"},","            \"name\": {\"type\": \"string\"},","            \"symbol\": {\"type\": \"string\"}","        },","        \"additionalProperties\": false","    }","};","","var schemaCountry = { ","    \"type\": \"object\",","    \"required\" : [\"iso\", \"name\"],","    \"properties\": {","        \"iso\": { \"type\": \"string\" },","        \"name\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaAddressValue = {","    \"type\": \"object\",","    \"properties\": {","        \"street\": { \"type\": \"string\" },","        \"city\": { \"type\": \"string\" },","        \"zip\": { \"type\": \"string\" },","        \"state\": { \"type\": \"string\" },","        \"country\": schemaCountry,","        \"latitude\": { \"type\": \"string\" },","        \"longitude\": { \"type\": \"string\" }","    },","    \"additionalProperties\": true","};","","var schemaAddress = {","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"required\" : [\"id\", \"value\", \"type\"],","        \"properties\": {","            \"id\": { \"type\": \"integer\" },","            \"value\": schemaAddressValue,","            \"type\": { \"type\": \"string\" }","        },","        \"additionalProperties\": true","    }","};","","var schemaPhones = { ","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"required\" : [\"id\", \"value\", \"type\"],","        \"properties\": {","            \"id\": { \"type\": \"integer\" },","            \"value\": { \"type\": \"string\" },","            \"type\": { \"type\": \"string\" }","        },","        \"additionalProperties\": false","    }","};","","var schemaEmails = {","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"required\" : [\"id\", \"value\", \"type\"],","        \"properties\": {","            \"id\": { \"type\": \"integer\" },","            \"value\": { \"type\": \"string\" },","            \"type\": { \"type\": \"string\" }","        },","        \"additionalProperties\": false","    }","};","","var schemaUrls = {","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"required\" : [\"id\", \"value\", \"type\"],","        \"properties\": {","            \"id\": { \"type\": \"integer\" },","            \"value\": { \"type\": \"string\" },","            \"type\": { \"type\": \"string\" }","        },","        \"additionalProperties\": false","    }","};","","var schemaSource = { ","    \"type\": \"object\",","    \"required\" : [\"id\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" },","        \"description\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaSources = { ","    \"type\": \"array\",","    \"items\":{","        \"type\": \"object\",","        \"required\" : [\"id\"],","        \"properties\": {","            \"id\": { \"type\": \"integer\" },","            \"name\": { \"type\": \"string\" },","            \"selected\": {\"type\": \"string\"},","            \"description\": { \"type\": \"string\" }","        },","        \"additionalProperties\": false","    }","};","","var schemaIndustry = { ","    \"type\": \"object\",","    \"required\" : [\"id\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" },","        \"selected\": {\"type\": \"string\"},","        \"description\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaDealStage = { ","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\", \"pipeline\", \"probability\", \"changed\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" },","        \"pipeline\": { \"type\": \"string\" },","        \"probability\": { \"type\": \"integer\" },","        \"changed\": { \"type\": [\"string\", \"null\"] },","    },","    \"additionalProperties\": false","};","","var schemaDealStatus = { ","    \"type\": \"object\",","    \"required\" : [\"name\", \"time\", \"changed\"],","    \"properties\": {","        \"name\": { \"type\": \"string\" },","        \"time\": { \"type\": \"string\" },","        \"changed\": { \"type\": [ \"string\", \"null\" ]}","    },","    \"additionalProperties\": false","};","","var schemaLanguage = { ","    \"type\": \"object\",","    \"required\" : [\"code\", \"name\"],","    \"properties\": {","        \"code\": { \"type\": \"string\" },","        \"name\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaCreated = {","    \"type\": \"object\",","    \"required\" : [\"time\", \"user\"],","    \"properties\": {","        \"time\": { \"type\": \"string\" },","        \"user\": schemaUser","    },","    \"additionalProperties\": true","};","","var schemaUpdated = {","    \"type\": \"object\",","    \"properties\": {","        \"time\": { \"type\": \"string\" },","        \"user\": schemaUser","    },","    \"additionalProperties\": true","};","","var schemaLastLogin = {","    \"type\": \"object\",","    \"properties\": {","        \"time\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaConverted = {","    \"type\": \"object\",","    \"properties\": {","        \"time\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaLeadStatus = { ","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" },","        \"time\": { \"type\": \"string\" },","        \"description\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaCustomerStatus = {","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaCustomerStatuses = {","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" }","    },","    \"additionalProperties\": true","};","","var schemaProspectStatus = { ","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" }","    },","    \"additionalProperties\": false","};","","var schemaProspectStatuses = { ","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" }","    },","    \"additionalProperties\": true","};","","var schemaPerson = { ","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" },","        \"jobTitle\": { \"type\": \"string\" },","        \"phones\": schemaPhones,","        \"emails\": schemaEmails,","        \"urls\": schemaUrls,","        \"addresses\": schemaAddress","    },","    \"additionalProperties\": true","};","","var schemaCompany = { ","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" },","        \"jobTitle\": { \"type\": \"string\" },","        \"phones\": schemaPhones,","        \"emails\": schemaEmails,","        \"urls\": schemaUrls,","        \"addreses\": schemaAddress","    },","    \"additionalProperties\": true","};","","var schemaResources = { ","    \"type\": \"array\",","    \"items\": {","        \"required\" : [\"id\", \"name\"],","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"integer\" },","            \"name\": { \"type\": \"string\" },","        }","    },","    \"additionalProperties\": true","};","","var schemaTags = { ","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" }","    },","    \"additionalProperties\": true","};","","var schemaScore = { ","    \"type\": \"object\",","    \"required\" : [\"value\", \"grade\", \"time\"],","    \"properties\": {","        \"value\": { \"type\": \"integer\" },","        \"grade\": { \"type\": \"string\" },","        \"time\": { \"type\": \"string\" }","    },","    \"additionalProperties\": true","};","","var schemaPipeline = { ","    \"type\": \"object\",","    \"required\" : [\"id\", \"name\", \"stage\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" },","        \"stage\": {","            \"type\": \"object\",","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"probability\": { \"type\": \"integer\" }","            },","            \"additionalProperties\": false","        }","    },","    \"additionalProperties\": false","};","","var schemaPipelines = { ","    \"type\": \"array\", ","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"id\", \"name\", \"stages\"],","        \"properties\": {","            \"id\": { \"type\": \"integer\" },","            \"name\": { \"type\": \"string\" },","            \"stages\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"required\": [\"id\", \"name\", \"probability\"],","                    \"properties\": {","                        \"id\": { \"type\": \"integer\" },","                        \"name\": { \"type\": \"string\" },","                        \"probability\": { \"type\": \"integer\" },","                    },","                }","            },","            \"additionalProperties\": true","        },","        \"additionalProperties\": true","    }","};","","var schemaCompanies = {","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"properties\":{","            \"id\": { \"type\": \"integer\" },","            \"name\": { \"type\": \"string\" },","            \"isDeleted\": {\"type\": \"string\"}","        },","        \"additionalProperties\": false","    }","};","var schemaPeople = {","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"properties\":{","            \"id\": { \"type\": \"integer\" },","            \"name\": { \"type\": \"string\" },","            \"isDeleted\": {\"type\": \"string\"}","        },","        \"additionalProperties\": false","    }","};","","var schemaDownload = {","    \"type\": \"object\",","    \"properties\":{","        \"url\": { \"type\": \"string\" },","        \"time\": { \"type\": \"string\" }","    },","    \"additionalProperties\": true","};","","var schemaFiles = {","    \"type\": \"object\",","    \"required\": [\"id\", \"name\", \"extension\", \"size\", \"mimeType\", \"created\", \"isDeleted\", \"download\"],","    \"properties\":{","        \"id\": { \"type\": \"integer\" },","        \"fullname\": { \"type\": \"string\" },","        \"name\": { \"type\": \"string\" },","        \"extension\": { \"type\": \"string\" },","        \"size\": { \"type\": \"integer\" },","        \"mimeType\": { \"type\": \"string\" },","        \"description\": { \"type\": \"string\" },","        \"created\": schemaCreated,","        \"isDeleted\": { \"type\": \"string\" },","        \"deals\": schemaDeals,","        \"companies\": schemaCompanies,","        \"tags\":{ \"type\": \"array\" },","        \"download\": schemaDownload,","    },","    \"additionalProperties\": true","};","","var schemaDeals = {","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"properties\":{","            \"id\": { \"type\": \"integer\" },","            \"name\": { \"type\": \"string\" },","            \"isDeleted\": { \"type\": \"string\" }","        },","        \"additionalProperties\": false","    }","};","","var schemaLeads = {","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"properties\":{","            \"id\": { \"type\": \"integer\" },","            \"name\": { \"type\": \"string\" },","            \"isDeleted\": { \"type\": \"string\" }","        },","        \"additionalProperties\": false","    }","};","","var schemaProducts = {","    \"type\": \"array\",","    \"items\": {","        \"type\": \"object\",","        \"properties\":{","            \"id\": { \"type\": \"integer\" },","            \"name\": { \"type\": \"string\" },","            \"isDeleted\": { \"type\": \"string\" }","        },","        \"additionalProperties\": false","    }","};","","var schemaItems = {","    \"type\": \"array\",","    \"items\": {","        \"type\":\"object\",","        \"required\": [\"id\", \"name\"],","        \"properties\":{","            \"id\": { \"type\": \"integer\"},","            \"name\": { \"type\": \"string\"},","            \"selected\": {\"type\": \"string\"}","        },","        \"additionalProperties\": false","    }","};","","var schemaCustomField = {","    \"type\": \"object\",","    \"required\": [\"id\", \"name\", \"module\", \"isActive\", \"isFilter\", \"isList\", \"type\"],","    \"properties\": {","        \"id\": { \"type\": \"integer\" },","        \"name\": { \"type\": \"string\" },","        \"module\": {\"type\": \"string\"},","        \"isActive\": {\"type\": \"string\"},","        \"value\": {\"type\": [ \"array\", \"integer\", \"string\"]},","        \"isFilter\": {\"type\": \"string\"},","        \"isList\": {\"type\": \"string\"},","        \"type\": {\"type\": \"string\"},","        \"items\": schemaItems","    },","    \"additionalProperties\": false","};","var schemaCustomFieldList = {","    \"type\": \"array\",","    \"items\": schemaAddressValue","};","","var schemaCost = {","    \"type\":\"object\",","    \"required\": [\"value\", \"currency\"],","    \"properties\": {","        \"value\": {\"type\": \"string\"},","        \"currency\": {\"type\": \"string\"}","    },","    \"additionalProperties\": false","};","","var schemaPrices = {","    \"type\": \"array\",","    \"items\": {","        \"type\":\"object\",","        \"required\": [\"value\", \"currency\"],","        \"properties\": {","            \"value\": {\"type\": \"string\"},","            \"currency\": {\"type\": \"string\"}","        },","        \"additionalProperties\": false","    }","};","","var schemaPermissions = {","    \"type\": \"object\",","    \"properties\":{","        \"leads\": {\"type\": \"array\"},","        \"people\": {\"type\": \"array\"},","        \"companies\": {\"type\": \"array\"},","        \"deals\": {\"type\": \"array\"},","        \"events\": {\"type\": \"array\"},","        \"settingsUsersGroups\": {\"type\": \"array\"}","    },","    \"additionalProperties\": false","};","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"username\", \"email\", \"picture\", \"role\", \"isActive\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"surname\": { \"type\": \"string\" },","                    \"picture\": schemaPicture,","                    \"username\": { \"type\": \"string\" },","                    \"email\": { \"type\": \"string\" },","                    \"language\": schemaLanguage,","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"created\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"time\": {\"type\": \"string\"}","                        }","                    },","                    \"defaultCurrency\": {\"type\": \"string\"},","                    \"currencies\": schemaCurrencies,","                    \"role\": { \"type\": \"string\" },","                    \"isActive\": { \"type\": \"string\" },","                    \"lastLogin\": schemaLastLogin","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid User Collection Schema\"] = tv4.validate(jsonData, schema);","","//SAVING TESTS INTO ENVIROMENT","pm.environment.set('picture_schema', JSON.stringify(schemaPicture));","pm.environment.set('user_schema', JSON.stringify(schemaUser));","pm.environment.set('price_schema', JSON.stringify(schemaPrice));","pm.environment.set('country_schema', JSON.stringify(schemaCountry));","pm.environment.set('address_value_schema', JSON.stringify(schemaAddressValue));","pm.environment.set('address_schema', JSON.stringify(schemaAddress));","pm.environment.set('phones_schema', JSON.stringify(schemaPhones));","pm.environment.set('emails_schema', JSON.stringify(schemaEmails));","pm.environment.set('urls_schema', JSON.stringify(schemaUrls));","pm.environment.set('industry_schema', JSON.stringify(schemaIndustry));","pm.environment.set('language_schema', JSON.stringify(schemaLanguage));","pm.environment.set('created_schema', JSON.stringify(schemaCreated));","pm.environment.set('updated_schema', JSON.stringify(schemaUpdated));","pm.environment.set('last_login_schema', JSON.stringify(schemaLastLogin));","pm.environment.set('customer_status_schema', JSON.stringify(schemaCustomerStatus));","pm.environment.set('customer_statuses_schema', JSON.stringify(schemaCustomerStatuses));","pm.environment.set('prospect_status_schema', JSON.stringify(schemaProspectStatus));","pm.environment.set('prospect_statuses_schema', JSON.stringify(schemaProspectStatuses));","pm.environment.set('person_schema', JSON.stringify(schemaPerson));","pm.environment.set('company_schema', JSON.stringify(schemaCompany));","pm.environment.set('pipeline_schema', JSON.stringify(schemaPipeline));","pm.environment.set('pipelines_schema', JSON.stringify(schemaPipelines));","pm.environment.set('source_schema', JSON.stringify(schemaSource));","pm.environment.set('sources_schema', JSON.stringify(schemaSources));","pm.environment.set('currencies_schema', JSON.stringify(schemaCurrencies));","pm.environment.set('converted_schema', JSON.stringify(schemaConverted));","pm.environment.set('deal_stage_schema', JSON.stringify(schemaDealStage));","pm.environment.set('lead_status_schema', JSON.stringify(schemaLeadStatus));","pm.environment.set('tags_schema', JSON.stringify(schemaTags));","pm.environment.set('resources_schema', JSON.stringify(schemaResources));","pm.environment.set('score_schema', JSON.stringify(schemaScore));","pm.environment.set('companies_schema', JSON.stringify(schemaCompanies));","pm.environment.set('people_schema', JSON.stringify(schemaPeople));","pm.environment.set('download_schema', JSON.stringify(schemaDownload));","pm.environment.set('files_schema', JSON.stringify(schemaFiles));","pm.environment.set('items_schema', JSON.stringify(schemaItems));","pm.environment.set('custom_field_schema', JSON.stringify(schemaCustomField));","pm.environment.set('custom_field_list_schema', JSON.stringify(schemaCustomFieldList));","pm.environment.set('deals_schema', JSON.stringify(schemaDeals));","pm.environment.set('leads_schema', JSON.stringify(schemaLeads));","pm.environment.set('products_schema', JSON.stringify(schemaProducts));","pm.environment.set('prices_schema', JSON.stringify(schemaPrices));","pm.environment.set('cost_schema', JSON.stringify(schemaCost));","pm.environment.set('permissions_schema', JSON.stringify(schemaPermissions));","pm.environment.set('deal_status_schema', JSON.stringify(schemaDealStatus));","","//ADING USERS TO THE ENVIROMENT","pm.environment.set(\"firstUserId\", jsonData.data[0].id);","pm.environment.set(\"secondUserId\", jsonData.data[1].id);","// Dirty hack for EU2","let user = jsonData.data.find(user => user.email === 'developer.s@teamgate.com');","if (!user) {","    user = jsonData.data.find(user => user.email === 'developers@teamgate.com');","}","","pm.environment.set(\"tokenUserId\", user.id);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"b74f937d-56d5-4d48-bcc0-ebdf1282a61e","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is set in Pre-requested Script and taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is set in Pre-requested Script and taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/users","description":"<p>Gets 2 users and sets them as variables. Also creates reusable schemas and sets them as variables.</p>\n<p>Returns a paginated list of either deleted users or all users.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the User. You can search by full name or by fragment of name.<br />Example for strict search: <code>?name=Jonathan</code> <br />And search by text fragment: <code>?name[like]=Jon</code></td>\n</tr>\n<tr>\n<td><strong>surname</strong> <br />String</td>\n<td>Surame of the User. You can search by full surname or by fragment of surame.<br />Example for strict search: <code>?name=Brown</code> <br />And search by text fragment: <code>?name[like]=Bro</code></td>\n</tr>\n<tr>\n<td><strong>email</strong> <br />String</td>\n<td>Email of the user.<br /><strong>Example:</strong> <code>?email=jonathan@example.com</code></td>\n</tr>\n<tr>\n<td><strong>username</strong> <br />String</td>\n<td>Username of the user.<br /><strong>Example:</strong> <code>username=jonathan@example.com</code></td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br />Boolean</td>\n<td>Indicator the product is active or not. <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> <strong>Example</strong>: <code>?isActive=yes</code></td>\n</tr>\n<tr>\n<td><strong>position</strong> <br />String</td>\n<td>Posotion of the user.<br /><strong>Example:</strong> <code>?position=CEO</code></td>\n</tr>\n<tr>\n<td><strong>lastLoginTime</strong> <br />String</td>\n<td>User last login time.<br /><strong>Example:</strong> for strict search: <code>?lastLoginTime=2016-11-22T11:53:53+02:00</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","users"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b74f937d-56d5-4d48-bcc0-ebdf1282a61e"},{"name":"Get Pipeline Collection","event":[{"listen":"test","script":{"id":"44e6a3b1-f6f5-486c-b811-b2730036684b","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Set Global Variable","pm.environment.set(\"pipelineId\", jsonData.data[0].id);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('pipelines_schema')),","    }","};","","tests[\"Valid Pipeline Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"a7c66910-10a2-457b-b832-2c41ed27cdfe","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/pipelines","description":"<p>Getting pipeline variable in order to use in other Post requests:</p>\n<p>pipelineId</p>\n<p>This variable is used in: </p>\n<ol>\n<li>Companies Create Deal</li>\n<li>Deals Create Deal</li>\n<li>Deals Update Deal</li>\n<li>Events Create First Deal</li>\n<li>Events Create Second Deal</li>\n</ol>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Pipeline. <br /> <strong>Example:</strong> <code>?name=middle\"</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <ul><li>id</li><li>name</li></ul> Example: <code>?order=createdTime:desc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","pipelines"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7c66910-10a2-457b-b832-2c41ed27cdfe"},{"name":"Get Custom Fields Collection Copy","event":[{"listen":"test","script":{"id":"2af61edd-29d5-4cf6-9aa2-9f7edc455c48","type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('custom_field_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Custom Fields Collection Schema\"] = tv4.validate(jsonData, schema);","","//Set Variables","postman.setGlobalVariable(\"firstGlobalCustomFieldId\", jsonData.data[0].id);","postman.setGlobalVariable(\"secondGlobalCustomFieldId\", jsonData.data[1].id);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"b78f64b9-6830-46fe-a3e3-951fb89dcc77","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/customFields","description":"<p>Retrieve All Custom Fields</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br /> String<br /></td>\n<td>Name of the Custom Field. You can search by full name or by fragment of name. <br />Example for strict search: <code>?name=Bussness%20Type</code> <br />And search by text fragment: <code>?name[like]=Bussness</code></td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br /> Boolean<br /></td>\n<td>Indicator the Custom Field is active or not. <br />Possible values: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code> </li></ul> <br />Example: <code>?isActive=yes</code></td>\n</tr>\n<tr>\n<td><strong>isFilter</strong> <br /> Boolean<br /></td>\n<td>Indicator the field is marked as filtered or not. <br />Possible values: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code> </li></ul> <br />Example: <code>?isFilter=true</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br /> Boolean<br /></td>\n<td>Type of the Custom Field. <br />Possible values: <ul><li> <code>text</code> - Field that you can enter yourself. </li><li> <code>single_option</code>- One option to select a value. </li><li> <code>multi_option</code>- More then one option to select a value. </li><li> <code>number</code>- Number that you can enter yourself. </li><li> <code>monetary</code>- Field that you can enter some value in currency. </li><li> <code>date</code>- Appearing data picker to set important dates. </li><li> <code>long_text</code>- Long text type field is for records of up to 6000 symbols. </li><li> <code>url</code>- URL link. </li></ul> <br />Example: <code>?type=multi_option</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","customFields"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b78f64b9-6830-46fe-a3e3-951fb89dcc77"},{"name":"Get Resources Collection","event":[{"listen":"test","script":{"id":"89486e24-e1b0-49ed-a9f7-ee3cc86d332e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('resources_schema')),","    }","};","","tests[\"Valid Resources Collection Schema\"] = tv4.validate(jsonData, schema);","","//Set Global Variables","pm.environment.set(\"firstResourceId\", jsonData.data[0].id);","pm.environment.set(\"secondResourceId\", jsonData.data[1].id);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"ace166ed-5935-42cd-9693-4c7247625110","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/resources","description":"<p>Getting resources variables in order to use in other Post requests:</p>\n<p>firstResourceId,</p>\n<p>secondResourceId</p>\n<p>These variables are used in: </p>\n<ol>\n<li>Schemes: Create Global Event Appointment</li>\n<li>Events -&gt; Events: Create Event Appointmant</li>\n<li>Events -&gt; Resources: Replace Resources</li>\n<li>Events -&gt; Resources: Add Resources</li>\n<li>Events -&gt; Resources: Detach Resources From Event</li>\n</ol>\n<p>Get a list of all resources</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer</td>\n<td>Unique key of the Resource. <strong>Example:</strong> <code>?id=1</code></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Sources. <strong>Example:</strong> <code>?name=MeetingRoom</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","resources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ace166ed-5935-42cd-9693-4c7247625110"},{"name":"Create First Product","event":[{"listen":"test","script":{"id":"08ba5f2b-f846-405a-acef-7f2de8063da1","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Product Name\"] = jsonData.data.name == \"Software for CRM\";","tests[\"Product SKU\"] = jsonData.data.sku == \"mpp1\";","tests[\"Product Description\"] = jsonData.data.description == \"This is a new software\";","tests[\"Category Name\"] = jsonData.data.category.name == \"Software\",","","tests[\"Product Cost Value\"] = jsonData.data.cost.value == 1250;","tests[\"Product Cost Currency\"] = jsonData.data.cost.currency == \"USD\";","","tests[\"Product Price Value #1\"] = jsonData.data.prices[0].value == 1600;","tests[\"Product Price Currency #1\"] = jsonData.data.prices[0].currency == \"EUR\";","","tests[\"Product Price Value #2\"] = jsonData.data.prices[1].value == 1735;","tests[\"Product Price Currency #2\"] = jsonData.data.prices[1].currency == \"USD\";","","tests[\"Product is Active YES\"] = jsonData.data.isActive == \"yes\";","tests[\"Product is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Product Created Time\"] = jsonData.data.created.time.has(\"T\");","","tests[\"Product Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Product Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Product Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","pm.environment.set(\"firstGlobalProductId\", jsonData.data.id);","pm.environment.set(\"firstUserId\", jsonData.data.created.user.id);","","tests[\"Product Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\":[\"id\", \"name\", \"sku\", \"description\", \"cost\", \"prices\", \"isActive\", \"isDeleted\", \"created\"],","            \"properties\":{","                \"id\": {\"type\": \"integer\"},","                \"name\": {\"type\": \"string\"},","                \"sku\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"category\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"integer\"},","                        \"name\": {\"type\": \"string\"}","                    }","                },","                \"cost\": JSON.parse(pm.environment.get('cost_schema')),","                \"prices\": JSON.parse(pm.environment.get('prices_schema')),","                \"isActive\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"created\": JSON.parse(pm.environment.get('created_schema'))","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Product Schema\"] = tv4.validate(jsonData, schema, false, true);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"487c68d9-caa8-47c9-8b67-9ad162d7fa98","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Software for CRM\",\n  \"sku\": \"mpp1\",\n  \"description\": \"This is a new software\",\n  \"category\": \"Software\",\n  \"isActive\": \"yes\",\n  \"cost\": {\n    \"value\": \"1250\",\n    \"currency\": \"USD\"\n  },\n  \"prices\": [\n    {\n      \"value\": \"1600\",\n      \"currency\": \"EUR\"\n    },\n    {\n      \"value\": \"1735\",\n      \"currency\": \"USD\"\n    }\n  ]\n}"},"url":"https://api.teamgate.com/v4/products","description":"<p>Add a new product</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"name\": \"My 1st Product\"</code></td>\n</tr>\n<tr>\n<td><strong>sku</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"sku\": \"m1p\"</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td><strong>Example:</strong>   <code>\"description\": \"My product description\"</code></td>\n</tr>\n<tr>\n<td><strong>category</strong> <br /> String</td>\n<td><strong>Example:</strong> <code>\"category\": \"Software\"</code></td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br />Boolean</td>\n<td><strong>Example:</strong>    <code>\"isActive\": \"yes\"</code></td>\n</tr>\n<tr>\n<td><strong>cost</strong> <br />Object</td>\n<td><strong>Example:</strong>    <code>\"cost[value]\": 750</code> <code>\"cost[currency]\": \"EUR\"</code></td>\n</tr>\n<tr>\n<td><strong>prices</strong> <br />Array</td>\n<td><strong>Example:</strong>    <code>\"cost[0][value]\": 995</code> <code>\"cost[0][currency]\": \"EUR\"</code> <code>\"cost[1][value]\": 1200</code> <code>\"cost[1][currency]\": \"USD\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"487c68d9-caa8-47c9-8b67-9ad162d7fa98"},{"name":"Create Second Product","event":[{"listen":"test","script":{"id":"8f518c1f-d416-4e4f-ae5f-214a2213d6f9","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Product Name\"] = jsonData.data.name == \"Software for CRM\";","tests[\"Product SKU\"] = jsonData.data.sku == \"mpp1\";","tests[\"Product Description\"] = jsonData.data.description == \"This is a new software\";","tests[\"Category Name\"] = jsonData.data.category.name == \"Software\",","","tests[\"Product Cost Value\"] = jsonData.data.cost.value == 1250;","tests[\"Product Cost Currency\"] = jsonData.data.cost.currency == \"USD\";","","tests[\"Product Price Value #1\"] = jsonData.data.prices[0].value == 1600;","tests[\"Product Price Currency #1\"] = jsonData.data.prices[0].currency == \"EUR\";","","tests[\"Product Price Value #2\"] = jsonData.data.prices[1].value == 1735;","tests[\"Product Price Currency #2\"] = jsonData.data.prices[1].currency == \"USD\";","","tests[\"Product is Active YES\"] = jsonData.data.isActive == \"yes\";","tests[\"Product is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Product Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Product Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Product Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Product Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Product Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","pm.environment.set(\"secondGlobalProductId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\":[\"id\", \"name\", \"sku\", \"description\", \"cost\", \"prices\", \"isActive\", \"isDeleted\", \"created\"],","            \"properties\":{","                \"id\": {\"type\": \"integer\"},","                \"name\": {\"type\": \"string\"},","                \"sku\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"category\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"integer\"},","                        \"name\": {\"type\": \"string\"}","                    }","                },","                \"cost\": JSON.parse(pm.environment.get('cost_schema')),","                \"prices\": JSON.parse(pm.environment.get('prices_schema')),","                \"isActive\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"created\": JSON.parse(pm.environment.get('created_schema'))","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Product Schema\"] = tv4.validate(jsonData, schema, false, true);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"c2621786-f3a7-42d3-bb32-3114e44ced87","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Software for CRM\",\n  \"sku\": \"mpp1\",\n  \"description\": \"This is a new software\",\n  \"category\": \"Software\",\n  \"isActive\": \"yes\",\n  \"cost\": {\n    \"value\": \"1250\",\n    \"currency\": \"USD\"\n  },\n  \"prices\": [\n    {\n      \"value\": \"1600\",\n      \"currency\": \"EUR\"\n    },\n    {\n      \"value\": \"1735\",\n      \"currency\": \"USD\"\n    }\n  ]\n}"},"url":"https://api.teamgate.com/v4/products","description":"<p>Add a new product</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"name\": \"My 1st Product\"</code></td>\n</tr>\n<tr>\n<td><strong>sku</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"sku\": \"m1p\"</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td><strong>Example:</strong>   <code>\"description\": \"My product description\"</code></td>\n</tr>\n<tr>\n<td><strong>category</strong> <br /> String</td>\n<td><strong>Example:</strong> <code>\"category\": \"Software\"</code></td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br />Boolean</td>\n<td><strong>Example:</strong>    <code>\"isActive\": \"yes\"</code></td>\n</tr>\n<tr>\n<td><strong>cost</strong> <br />Object</td>\n<td><strong>Example:</strong>    <code>\"cost[value]\": 750</code> <code>\"cost[currency]\": \"EUR\"</code></td>\n</tr>\n<tr>\n<td><strong>prices</strong> <br />Array</td>\n<td><strong>Example:</strong>    <code>\"cost[0][value]\": 995</code> <code>\"cost[0][currency]\": \"EUR\"</code> <code>\"cost[1][value]\": 1200</code> <code>\"cost[1][currency]\": \"USD\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2621786-f3a7-42d3-bb32-3114e44ced87"},{"name":"Create First Lead","event":[{"listen":"test","script":{"id":"05e7656e-5ac3-42b4-b60b-c45a5376dea1","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Value Test","tests[\"Lead Name\"] = jsonData.data.name == \"Postman API Test Lead 1\";","tests[\"Lead Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Lead Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Lead Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Lead Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Lead Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Lead Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Lead Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Lead Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Lead Source\"] = jsonData.data.source.name == \"Postman\";","//tests[\"Lead Source Descrioption\"] = jsonData.data.source.description == \"Source form API testing tool Postman\";","","tests[\"Lead Industry\"] = jsonData.data.industry.name == \"Software Testing\";","//tests[\"Lead Industry Descrioption\"] = jsonData.data.industry.description == \"Industry form API testing tool Postman\";","","tests[\"Lead Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Lead Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Lead Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Lead Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Lead Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Lead Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Lead Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Lead Updator Small Picture\"] = jsonData.data.updated.user.picture.small.has(\".jpg\");","tests[\"Lead Updator Medium Picture\"] = jsonData.data.updated.user.picture.medium.has(\".jpg\");","tests[\"Lead Updator Large Picture\"] = jsonData.data.updated.user.picture.large.has(\".jpg\");","","tests[\"Lead isDeleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Lead Status Id\"] = jsonData.data.status.id == \"1\";","tests[\"Lead Status Time\"] = jsonData.data.status.time.has(\"T\");","","tests[\"Lead Score Value\"] = jsonData.data.score.value == \"0\";","tests[\"Lead Score Grade\"] = jsonData.data.score.grade == \"cold\" || \"warm\" || \"hot\";","tests[\"Lead Score Time\"] = jsonData.data.score.time.has(\"T\");","","tests[\"Lead Company Name\"] = jsonData.data.company.name == \"ExampleCompany\";","tests[\"Lead Company jobTitle\"] = jsonData.data.company.jobTitle == \"CEO\";","","tests[\"Lead Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Lead Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Lead Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Lead Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Lead Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Lead Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Lead Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Lead Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Lead Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Lead Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Lead URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Lead URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Lead URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Lead URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Lead URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Lead URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Lead URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Lead URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Lead URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Lead URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Lead Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Lead Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Lead Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Lead Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Lead Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Lead Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Lead Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Lead Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Lead Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Lead Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Lead Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Lead Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Lead Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Lead Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Lead Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Lead Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Lead Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Lead Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","tests[\"Lead Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","","//Set New Variable","pm.environment.set(\"firstGlobalLeadId\", jsonData.data.id);","pm.environment.set(\"sourceId\", jsonData.data.source.id);","pm.environment.set(\"ownerUsername\", jsonData.data.owner.username);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                \"score\": JSON.parse(pm.environment.get('score_schema')),","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema')),","            },","            \"additionalProperties\": true","        }","    },","    \"additionalProperties\": false","};","","tests[\"Valid Event Leads Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"packages":{},"type":"text/javascript"}}],"id":"9f2557c3-2b25-434a-9c68-885d6af08476","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Lead 1\",\n  \"companyName\": \"ExampleCompany\",\n  \"jobTitle\": \"CEO\",\n  \"statusId\": \"1\",\n  \"statusDescription\": \"This is status description\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"source\": \"Postman\",\n  \"sourceDescription\": \"Source form API testing tool Postman\",\n  \"industry\": \"Software Testing\",\n  \"industryDescription\": \"Industry form API testing tool Postman\",\n  \"tags\": \"B2B\",\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ]\n}"},"url":"https://api.teamgate.com/v4/leads","description":"<p>Create a new lead and set it's id as a variable:</p>\n<p>firstLeadId</p>\n<p>Creating a global first lead.\nfirstGlobalLeadId</p>\n<p>This variable is used in: </p>\n<ol>\n<li>Events -&gt; Lead: Add Lead To Event</li>\n<li>Events -&gt; Lead: Replace Lead Events</li>\n<li>Events -&gt; Lead: Detach Lead From Event</li>\n</ol>\n<p>Delete this lead in the end</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td>Required only if a lead is an person and <code>companyName</code> and <code>companyId</code> is empty. <br /> <strong>Example:</strong>  <code>\"name\": \"John Smith\"</code></td>\n</tr>\n<tr>\n<td><strong>companyName</strong> <br />String <strong>Required</strong></td>\n<td>Required only if a lead is an comapny and <code>name</code> is empty. The field will be set only if <code>companyId</code> is empty. <br /> <strong>Example:</strong>  <code>\"name\": \"Example Comapny Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>companyId</strong> <br />integer <strong>Required</strong></td>\n<td>Required only if a lead is an comapny and <code>name</code> is empty. The field will be set only if <code>companyName</code> is empty. <br /> <strong>Example:</strong>  <code>\"companyId\": \"E1\"</code></td>\n</tr>\n<tr>\n<td><strong>jobTitle</strong> <br />String</td>\n<td>The field will be set only if is set <code>compnayName</code> or <code>companyId</code>. <br /> <strong>Example:</strong>   <code>\"jobTitle\": \"CEO\"</code></td>\n</tr>\n<tr>\n<td><strong>statusId</strong> <br />integer</td>\n<td><strong>Example:</strong>    <code>\"statusId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br />String</td>\n<td>If the stauts does not exist it will be created. <br /> <strong>Example:</strong>   <code>\"status\": \"unqualified\"</code></td>\n</tr>\n<tr>\n<td><strong>statusDescription</strong> <br />String</td>\n<td>Will be set only if will be created new status. <br /> <strong>Example:</strong>   <code>\"statusDescription\": \"status description\"</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong>    <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>    <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br /> integer</td>\n<td><strong>Example:</strong>    <code>\"industryId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br /> string</td>\n<td>If the industry does not exist it will be created. <br /> <strong>Example:</strong>    <code>\"industry\": \"Computer software\"</code></td>\n</tr>\n<tr>\n<td><strong>industryDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>    <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"email\": \"john@example.net\"</code> </li><li>  <code>\"emails\": \"{'value':'john@example.net','type':'work'}\"</code> </li><li>  <code>\"emails\": \"[{'value':'john@example.net','type':'work'},{'value':'john.brown@example.net','type':'home'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"phone\": \"+44 123 456 7890\"</code> </li><li> <code>\"phones\": \"{'value':'+44 123 456 7890','type':'mobile'}\"</code> </li><li> <code>\"phones\": \"[{'value':'+44 123 456 7890','type':'mobile'},{'value':'+44 123 456 7800','type':'fax'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"url\": \"http://example.com\"</code></li><li><code>\"urls\": \"{'value':'http://example.com','type':'website'}\"</code> </li><li> <code>\"urls\": \"[{'value':'http://example.com','type':'website'},{'value':'https://facebook.com/example','type':'facebook'}]\"</code></li></ul></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"address\": \"{'city':'Chicago','countryIso':'USA'}\"</code></li><li><code>\"addresses\": \"[{'city':'Chicago','countryIso':'USA'},{'longitude':'51.5109393','latitude':'0.030166'}]\"</code></li></ul></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li>Example for select (fieldID : valueId): <code>\"customFields\": \"{'3':'5'}\"</code></li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f2557c3-2b25-434a-9c68-885d6af08476"},{"name":"Create Second Lead","event":[{"listen":"test","script":{"id":"41a998a4-c488-41da-81e5-4b18c32d1280","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Reponse Values Test","tests[\"Lead Name\"] = jsonData.data.name == \"Postman API Test Lead 2\";","tests[\"Lead Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Lead Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Lead Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Lead Owner Id\"] = jsonData.data.owner.username == pm.environment.get(\"ownerUsername\");","tests[\"Lead Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Lead Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Lead Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Lead Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Lead Source\"] = jsonData.data.source.name == \"Postman\";","//tests[\"Lead Source Descrioption\"] = jsonData.data.source.description == \"Source form API testing tool Postman\";","","tests[\"Lead Industry\"] = jsonData.data.industry.name == \"Software Testing\";","//tests[\"Lead Industry Descrioption\"] = jsonData.data.industry.description == \"Industry form API testing tool Postman\";","","tests[\"Lead Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Lead Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Lead Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Lead Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Lead Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Lead Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Lead Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Lead Updator Small Picture\"] = jsonData.data.updated.user.picture.small.has(\".jpg\");","tests[\"Lead Updator Medium Picture\"] = jsonData.data.updated.user.picture.medium.has(\".jpg\");","tests[\"Lead Updator Large Picture\"] = jsonData.data.updated.user.picture.large.has(\".jpg\");","","tests[\"Lead is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Lead Status Name\"] = jsonData.data.status.name == \"Unqualified\";","tests[\"Lead Status Time\"] = jsonData.data.status.time.has(\"T\");","","tests[\"Lead Score Value\"] = jsonData.data.score.value == \"0\";","tests[\"Lead Score Grade\"] = jsonData.data.score.grade == \"cold\" || \"warm\" || \"hot\";","tests[\"Lead Score Time\"] = jsonData.data.score.time.has(\"T\");","","tests[\"Lead Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Lead Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Lead Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Lead Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Lead Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Lead Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Lead Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Lead Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Lead Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Lead Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Lead Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Lead Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Lead Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Lead Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Lead Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Lead Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Lead Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Lead Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Lead Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Lead Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Lead URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Lead URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Lead URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Lead URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Lead URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Lead URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Lead URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Lead URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Lead URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Lead URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Lead Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","tests[\"Lead Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Lead Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Lead Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Lead Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Lead Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Lead Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Lead Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Lead Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","","//Set Variable","pm.environment.set(\"secondGlobalLeadId\", jsonData.data.id);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                \"score\": JSON.parse(pm.environment.get('score_schema')),","                \"company\": JSON.parse(pm.environment.get('company_schema')),","                \"tags\": {\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                \"showCompany\": { \"type\": \"boolean\" },","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Event Leads Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"63236e77-aa53-4c8a-b808-d7cdfb070192","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Lead 2\",\n  \"companyName\": \"ExampleCompany\",\n  \"jobTitle\": \"CEO\",\n  \"status\": \"unqualified\",\n  \"statusDescription\": \"This is status description\",\n  \"starred\": \"yes\",\n  \"ownerUsername\": \"{{ownerUsername}}\",\n  \"source\": \"Postman\",\n  \"sourceDescription\": \"Source form API testing tool Postman\",\n  \"industry\": \"Software Testing\",\n  \"industryDescription\": \"Industry form API testing tool Postman\",\n  \"tags\": \"B2B\",\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ]\n}"},"url":"https://api.teamgate.com/v4/leads","description":"<p>Create second lead and set its id as a variable:</p>\n<p>secondGlobalLeadId</p>\n<p>This variable is used in: </p>\n<ol>\n<li>Events -&gt; Lead: Replace Lead Events</li>\n</ol>\n<p>Delete this lead in the end</p>\n","urlObject":{"protocol":"https","path":["v4","leads"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"63236e77-aa53-4c8a-b808-d7cdfb070192"},{"name":"Create First Person","event":[{"listen":"test","script":{"id":"99b193ed-9cad-46a9-bf5d-3b0213b39089","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Person Name\"] = jsonData.data.name == \"John\";","tests[\"Person Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Person Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Person Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Person Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Person Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person Starred NO\"] = jsonData.data.starred == \"no\";","tests[\"Person Source\"] = jsonData.data.source.name == \"Postman\";","//tests[\"Person Source Descrioption\"] = jsonData.data.source.description == \"Source form API testing tool Postman\";","","tests[\"Person Industry\"] = jsonData.data.industry.name == \"Software Testing\";","//tests[\"Person Industry Descrioption\"] = jsonData.data.industry.description == \"Industry form API testing tool Postman\";","","tests[\"Person Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Person Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Person Creator Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Creator Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Creator Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Person Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Person Updator Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Updator Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Updator Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Person Birthday\"] = jsonData.data.birthday == \"2000-02-03\";","tests[\"Person Personal Id Number\"] = jsonData.data.personalIdNumber == \"333256855655\";","","tests[\"Person Customer Status Id\"] = jsonData.data.customerStatus.id === 0;","tests[\"Person Customer Status Name\"] = jsonData.data.customerStatus.name == \"non_customer\";","","tests[\"Person Prospect Status Id\"] = jsonData.data.prospectStatus.id === 0;","tests[\"Person Prospect Status Name\"] = jsonData.data.prospectStatus.name == \"non_prospect\";","","tests[\"Person Gender\"] = jsonData.data.gender == \"male\";","tests[\"Person Prospect Status Name\"] = jsonData.data.tags[0] == \"B2B\";","","tests[\"Person Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Person Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Person Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Person Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Person Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Person Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Person Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Person Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Person Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Person Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Person URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Person URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Person URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Person URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Person URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Person URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Person URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Person URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Person URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Person URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Person Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Person Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Person Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Person Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Person Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Person Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Person Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Person Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Person Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Person Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Person Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","tests[\"Person Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Person Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Person Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Person Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Person Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Person Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Person Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Person Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","","pm.environment.set(\"firstGlobalPersonId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": {\"type\":\"integer\"},","                \"name\": {\"type\":\"string\"},","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": {\"type\":\"string\"},","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": true","        }","    }","};","","tests[\"Valid Event People Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"d81b7e98-46be-437b-a663-1694db6113ec","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"John\",\n  \"jobTitle\": \"CEO\",\n  \"customerStatusId\": \"0\",\n  \"prospectStatusId\": \"0\",\n  \"starred\": \"no\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser@example.com\",\n  \"source\": \"Postman\",\n  \"sourceDescription\": \"Source form API testing tool Postman\",\n  \"industry\": \"Software Testing\",\n  \"industryDescription\": \"Industry form API testing tool Postman\",\n  \"tags\": \"B2B\",\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ],\n  \"birthday\": \"2000-02-03\",\n  \"personalIdNumber\": \"333256855655\",\n  \"gender\": \"male\",\n  \"customFields\": [{\"3\":\"secondGlobalCustomFieldId\"}]\n}"},"url":"https://api.teamgate.com/v4/people","description":"<p>Create new person and set it's id as a variable:</p>\n<p>firstGlobalPersonId</p>\n<p>Creating a global first lead.\nfirstGlobalLeadId</p>\n<p>This variable is used in: </p>\n<ol>\n<li>Events -&gt; People: Add People To Event</li>\n<li>Events -&gt; People: Detach Person From Event</li>\n</ol>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"name\": \"Smith John\"</code></td>\n</tr>\n<tr>\n<td><strong>companyId</strong> <br />Integer</td>\n<td><strong>Example:</strong>   <code>\"companyId\": \"5\"</code></td>\n</tr>\n<tr>\n<td><strong>jobTitle</strong> <br />String</td>\n<td>The field will be set only if <code>companyId</code> is not empty. <br /> <strong>Example:</strong>  <code>\"jobTitle\": \"CEO\"</code></td>\n</tr>\n<tr>\n<td><strong>customerStatusId</strong> <br /> String</td>\n<td>Possible Values: <ul><li> 0 - Non Customer </li><li> 1 - Past Customer </li><li> 2 - Customer </li></ul></td>\n</tr>\n<tr>\n<td><strong>prospectStatusId</strong> <br /> Integer</td>\n<td>Possible Values: <ul><li>0 - Non Prospect  </li><li> 1 -Lost Prospect </li><li> 2 - Prospect </li></ul></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong>    <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong> <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br /> integer</td>\n<td><strong>Example:</strong> <code>\"industryId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br /> string</td>\n<td>If the industry does not exist it will be created. <br /> <strong>Example:</strong> <code>\"industry\": \"Computer software\"</code></td>\n</tr>\n<tr>\n<td><strong>industryDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>  <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"email\": \"john@example.net\"</code></li><li> <code>\"emails\": \"{'value':'john@example.net','type':'work'}\"</code></li><li>  <code>\"emails\": \"[{'value':'john@example.net','type':'work'},{'value':'john.brown@example.net','type':'home'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"phone\": \"+44 123 456 7890\"</code> </li><li> <code>\"phones\": \"{'value':'+44 123 456 7890','type':'mobile'}\"</code> </li><li> <code>\"phones\": \"[{'value':'+44 123 456 7890','type':'mobile'},{'value':'+44 123 456 7800','type':'fax'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"url\": \"http://example.com\"</code> </li><li> <code>\"urls\": \"{'value':'http://example.com','type':'website'}\"</code> </li><li> <code>\"urls\": \"[{'value':'http://example.com','type':'website'},{'value':'https://facebook.com/example','type':'facebook'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"address\": \"{'city':'Chicago','countryIso':'USA'}\"</code> </li><li><code>\"addresses\": \"[{'city':'Chicago','countryIso':'USA'},{'longitude':'51.5109393','latitude':'0.030166'}]\"</code></li></ul></td>\n</tr>\n<tr>\n<td><strong>birthday</strong> <br /> Date</td>\n<td>Person's date of birth in YYY-MM-DD format. <br /> <strong>Example:</strong> <code>\"birthday\": \"1980-02-29\"</code></td>\n</tr>\n<tr>\n<td><strong>personalNumber</strong> <br /> String</td>\n<td>Unique personal identification code. <br /> <strong>Example:</strong> <code>\"personalIdNumber\": \"38002290000\"</code></td>\n</tr>\n<tr>\n<td><strong>gender</strong> <br />string</td>\n<td>The person's gender. <strong>Possible Values:</strong><ul><li>male</li><li>female</li></ul><strong>Example</strong> <code>\"gender\": \"male\"</code></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li>Example for select (fieldID : valueId): <code>\"customFields\": \"{'3':'5'}\"</code></li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d81b7e98-46be-437b-a663-1694db6113ec"},{"name":"Create Second Person","event":[{"listen":"test","script":{"id":"3cb08a7e-ab94-4a53-b525-0ae29195227b","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Person Name\"] = jsonData.data.name == \"Postman API Test Second Person Name\";","tests[\"Person Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Person Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Person Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Person Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"secondUserId\");","tests[\"Person Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Person Source\"] = jsonData.data.source.id == \"1\";","","tests[\"Person Industry\"] = jsonData.data.industry.id == \"48\";","","tests[\"Person Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Person Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Person Creator Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Creator Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Creator Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Person Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Person Updator Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Updator Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Updator Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Person Customer Status Id\"] = jsonData.data.customerStatus.id == 1;","tests[\"Person Customer Status Name\"] = jsonData.data.customerStatus.name == \"past_customer\";","","tests[\"Person Prospect Status Id\"] = jsonData.data.prospectStatus.id == 1;","tests[\"Person Prospect Status Name\"] = jsonData.data.prospectStatus.name == \"lost_prospect\";","","tests[\"Person Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Person Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Person Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Person Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Person Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Person Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Person Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Person Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Person Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Person Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Person URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Person URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Person URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Person URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Person URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Person URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Person URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Person URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Person URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Person URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Person Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Person Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Person Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Person Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Person Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Person Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Person Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Person Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Person Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Person Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Person Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","tests[\"Person Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Person Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Person Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Person Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Person Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Person Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Person Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Person Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","","pm.environment.set(\"secondGlobalPersonId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": {\"type\":\"integer\"},","                \"name\": {\"type\":\"string\"},","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": {\"type\":\"string\"},","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": true","        }","    }","};","","tests[\"Valid Event People Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"69019a0f-a329-48de-a945-33e47ac11956","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Second Person Name\",\n  \"copanyId\": \"{{firstGlobalCompanyId}}\",\n  \"jobTitle\": \"CEO\",\n  \"customerStatusId\": \"1\",\n  \"prospectStatusId\": \"1\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser@example.com\",\n  \"sourceId\": \"1\",\n  \"industryId\": \"48\",\n  \"tags\": \"B2B\",\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ],\n  \"birthday\": \"1980-02-15\",\n  \"personalIdNumber\": \"38002280000\",\n  \"gender\": \"male\"\n}"},"url":"https://api.teamgate.com/v4/people","description":"<p>Create a new person and set it's id as a variable:</p>\n<p>secondGlobalPersonId</p>\n<p>This variable is used in: </p>\n<ol>\n<li>Events -&gt; People: Replace People To an Events</li>\n</ol>\n<p>Delete this person in the end</p>\n","urlObject":{"protocol":"https","path":["v4","people"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"69019a0f-a329-48de-a945-33e47ac11956"},{"name":"Create First Company","event":[{"listen":"test","script":{"id":"31b3f4c3-0556-4992-84f5-6164f83ce3ad","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Comapny Name\"] = jsonData.data.name == \"Postman API Test First Company Name\";","tests[\"Comapny Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Comapny Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Comapny Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Comapny Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Comapny Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Comapny Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Comapny Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Comapny Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Comapny Source\"] = jsonData.data.source.name == \"Postman\";","//tests[\"Comapny Source Descrioption\"] = jsonData.data.source.description == \"Source form API testing tool Postman\";","","tests[\"Comapny Industry\"] = jsonData.data.industry.name == \"Software Testing\";","//tests[\"Comapny Industry Descrioption\"] = jsonData.data.industry.description == \"Industry form API testing tool Postman\";","","tests[\"Comapny Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Comapny Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Comapny Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Comapny Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Comapny Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Comapny Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Comapny Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Comapny Updator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Comapny Updator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Comapny Updator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","","tests[\"Comapny is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Comapny Code\"] = jsonData.data.code == \"1234567890\";","tests[\"Comapny VAT Code\"] = jsonData.data.vatCode == \"LT1234567890\";","tests[\"Comapny Customer Status Id\"] = jsonData.data.customerStatus.id === 0;","tests[\"Comapny Customer Status Name\"] = jsonData.data.customerStatus.name == \"non_customer\";","","tests[\"Comapny Prospect Status Id\"] = jsonData.data.prospectStatus.id == 2;","tests[\"Comapny Prospect Status Name\"] = jsonData.data.prospectStatus.name == \"prospect\";","","tests[\"Comapny Person id\"] = jsonData.data.person.id == pm.environment.get(\"firstGlobalPersonId\");","","tests[\"Comapny Tags1\"] = jsonData.data.tags[0] == \"B2B\";","tests[\"Comapny Tags2\"] = jsonData.data.tags[1] == \"B2C\";","tests[\"Comapny Tags3\"] = jsonData.data.tags[2] == \"C2B\";","tests[\"Comapny Tags4\"] = jsonData.data.tags[3] == \"C2C\";","","tests[\"Comapny Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Comapny Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Comapny Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Comapny Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Comapny Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Comapny Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Comapny Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Comapny Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Comapny Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Comapny Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Comapny URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Comapny URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Comapny URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Comapny URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Comapny URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Comapny URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Comapny URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Comapny URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Comapny URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Comapny URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Comapny Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Comapny Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Comapny Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Comapny Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Comapny Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Comapny Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Comapny Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Comapny Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Comapny Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Comapny Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Comapny Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","tests[\"Comapny Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Comapny Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Comapny Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Comapny Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Comapny Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Comapny Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Comapny Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Comapny Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","","pm.environment.set(\"firstGlobalCompanyId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\", ","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"code\": { \"type\": \"string\" },","                \"vatCode\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"person\": JSON.parse(pm.environment.get('person_schema')),","                \"tags\": {\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),  ","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"095ff9f5-7866-4cef-9ffe-9bc03eb3b5f3","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test First Company Name\",\n  \"personId\": \"{{firstGlobalPersonId}}\",\n  \"jobTitle\": \"CEO\",\n  \"customerStatusId\": \"0\",\n  \"prospectStatusId\": \"2\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"source\": \"Postman\",\n  \"sourceDescription\": \"Source form API testing tool Postman\",\n  \"industry\": \"Software Testing\",\n  \"industryDescription\": \"Industry form API testing tool Postman\",\n  \"code\": \"1234567890\",\n  \"vatCode\": \"LT1234567890\",\n  \"tags\": [\"B2B\", \"B2C\", \"C2B\", \"C2C\"],\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ],\n    \"customFields\": {\n    \"3\": [\"{{firstGlobalCustomField}}\"]\n  }\n}"},"url":"https://api.teamgate.com/v4/companies","description":"<p>Create a new company and set it's id as a variable:</p>\n<p>secondGlobalCompanyId</p>\n<p>This variable is used in: </p>\n<ol>\n<li>Events -&gt; Companies: Add Companies To an Event</li>\n<li>Events -&gt; Companies: Replace Companies To an Event</li>\n<li>Events -&gt; Companies: Detach Company From Event</li>\n</ol>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br /> String <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>personId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"personId\": \"2\"</code></td>\n</tr>\n<tr>\n<td><strong>jobTitle</strong> <br /> String</td>\n<td>The field will be set only if personId is not empty. <br /> <strong>Example:</strong> <code>\"personId\": \"2\"</code></td>\n</tr>\n<tr>\n<td><strong>customerStatusId</strong> <br /> String</td>\n<td>Possible Values: <ul><li> 0 - Non Customer </li><li> 1 - Past Customer </li><li> 2 - Customer </li></ul></td>\n</tr>\n<tr>\n<td><strong>prospectStatusId</strong> <br /> Integer</td>\n<td>Possible Values: <ul><li>0 - Non Prospect  </li><li> 1 -Lost Prospect </li><li> 2 - Prospect </li></ul></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong> <code>\"ownerUsername\": \"john@example.com\" </code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> Integer</td>\n<td><strong>Example:</strong> <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> String</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> String</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong>     <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br /> Integer</td>\n<td><strong>Example:</strong> <code>\"industryId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br /> string</td>\n<td>If the industry does not exist it will be created. <br /> <strong>Example:</strong> <code>\"industry\": \"Computer software\"</code></td>\n</tr>\n<tr>\n<td><strong>industryDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>    <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"</code></td>\n</tr>\n<tr>\n<td><strong>code</strong> <br /> string<br /></td>\n<td>Unique code of the Company. <strong>Example:</strong> <code>\"code\": \"1234567890\"</code></td>\n</tr>\n<tr>\n<td><strong>vatCode</strong> <br /> string<br /></td>\n<td>VAT identification number of the Company. <strong>Example:</strong> <code>\"vatCode\": \"UK1234567890123\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li> <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"email\": \"john@example.net\"</code> </li><li>  <code>\"emails\": \"{'value':'john@example.net','type':'work'}\"</code> </li><li>  <code>\"emails\": \"[{'value':'john@example.net','type':'work'},{'value':'john.brown@example.net','type':'home'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"phone\": \"+44 123 456 7890\"</code> </li><li> <code>\"phones\": \"{'value':'+44 123 456 7890','type':'mobile'}\"</code> </li><li> <code>\"phones\": \"[{'value':'+44 123 456 7890','type':'mobile'},{'value':'+44 123 456 7800','type':'fax'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"url\": \"http://example.com\"</code> </li><li> <code>\"urls\": \"{'value':'http://example.com','type':'website'}\"</code> </li><li> <code>\"urls\": \"[{'value':'http://example.com','type':'website'},{'value':'https://facebook.com/example','type':'facebook'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"address\": \"{'city':'Chicago','countryIso':'USA'}\"</code> </li><li> <code>\"addresses\": \"[{'city':'Chicago','countryIso':'USA'},{'longitude':'51.5109393','latitude':'0.030166'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li> <code>Example for select (fieldID : valueId): \"customFields\": \"{'3':'5'}\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"095ff9f5-7866-4cef-9ffe-9bc03eb3b5f3"},{"name":"Create Second Company","event":[{"listen":"test","script":{"id":"5c174733-42fa-4e10-8054-9976d952b0e4","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Company Name\"] = jsonData.data.name == \"Postman API Test Second Company Name\";","tests[\"Company Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Company Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Company Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Company Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Company Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Company Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Company Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Company Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Company Source\"] = jsonData.data.source.name == \"From Postman\";","","tests[\"Company Industry\"] = jsonData.data.industry.name == \"Software Testing\";","","tests[\"Company Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Company Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Company Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Company Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Company Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Company Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Company Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Company Updator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Company Updator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Company Updator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Company is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Company Code\"] = jsonData.data.code == \"1234567890\";","tests[\"Company VAT Code\"] = jsonData.data.vatCode == \"LT1234567890\";","tests[\"Company Customer Status Id\"] = jsonData.data.customerStatus.id == 2;","tests[\"Company Customer Status Name\"] = jsonData.data.customerStatus.name == \"customer\";","","tests[\"Company Prospect Status Id\"] = jsonData.data.prospectStatus.id == 1;","tests[\"Company Prospect Status Name\"] = jsonData.data.prospectStatus.name == \"lost_prospect\";","","tests[\"Company Person Id\"] = jsonData.data.person.id == pm.environment.get(\"secondGlobalPersonId\");","","tests[\"Company Tags1\"] = jsonData.data.tags[0] == \"B2B\";","tests[\"Company Tags2\"] = jsonData.data.tags[1] == \"B2C\";","","tests[\"Company Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Company Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Company Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Company Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Company Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Company Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Company Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Company Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Company Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Company Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Company URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Company URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Company URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Company URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Company URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Company URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Company URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Company URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Company URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Company URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Company Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Company Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Company Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Company Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Company Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Company Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Company Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Company Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Company Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Company Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Company Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","tests[\"Company Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Company Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Company Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Company Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Company Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Company Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Company Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Company Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","","pm.environment.set(\"secondGlobalCompanyId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\", ","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"code\": { \"type\": \"string\" },","                \"vatCode\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"person\": JSON.parse(pm.environment.get('person_schema')),","                \"tags\": {\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),  ","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"fde91ce8-9868-4b3b-80f5-fe2e0c1e3048","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Second Company Name\",\n  \"personId\": \"{{secondGlobalPersonId}}\",\n  \"jobTitle\": \"CEO\",\n  \"customerStatusId\": \"2\",\n  \"prospectStatusId\": \"1\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"source\": \"From Postman\",\n  \"sourceDescription\": \"Source from API testing tool Postman\",\n  \"industry\": \"Software Testing\",\n  \"industryDescription\": \"Industry form API testing tool Postman\",\n  \"code\": \"1234567890\",\n  \"vatCode\": \"LT1234567890\",\n  \"tags\": [\"B2B\", \"B2C\"],\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ]\n}"},"url":"https://api.teamgate.com/v4/companies","description":"<p>Create second company and set it's id as a variable:</p>\n<p>secondGlobalCompanyId</p>\n<p>This variable is used in: </p>\n<ol>\n<li>Events -&gt; Companies: Replace Companies To an Event</li>\n</ol>\n<p>Delete this person in the end</p>\n","urlObject":{"protocol":"https","path":["v4","companies"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fde91ce8-9868-4b3b-80f5-fe2e0c1e3048"},{"name":"Create First Deal","event":[{"listen":"test","script":{"id":"24c9a323-4999-4e35-8fd6-9ecee663f205","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Deal Name\"] = jsonData.data.name == \"Postman API Test First Deal Name\";","tests[\"Deal Price Value\"] = jsonData.data.price.value == \"2015.00\";","tests[\"Deal Price Currency\"] = jsonData.data.price.currency == \"EUR\";","tests[\"Deal Price Symbol\"] = jsonData.data.price.symbol == \"€\";","tests[\"Deal Price Rate\"] = jsonData.data.price.rate == \"1\";","tests[\"Deal Price Base Value\"] = jsonData.data.price.baseValue == \"2015.00\";","tests[\"Deal Price Base Currency\"] = jsonData.data.price.baseCurrency == \"EUR\";","tests[\"Deal Price Base Symbol\"] = jsonData.data.price.baseSymbol == \"€\";","","tests[\"Deal Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Deal Source\"] = jsonData.data.source.name == \"Postman\";","//tests[\"Deal Source Description\"] = jsonData.data.source.description == \"Source form API testing tool Postman\";","","tests[\"Deal is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Deal Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Deal Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Deal Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Deal Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Deal Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Deal Customer Estimated Closure Date\"] = jsonData.data.estimatedClosureDate == \"2019-02-27T22:00:00+00:00\";","tests[\"Deal Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Deal Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Deal Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Deal Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Deal Stage\"] = jsonData.data.stage.id == 4;","","//tests[\"Deal Pipeline\"] = jsonData.data.pipeline.id == pm.environment.get(\"pipelineId\");","","tests[\"Deal Buyer\"] = jsonData.data.buyer.id == pm.environment.get(\"firstGlobalCompanyId\");","","tests[\"Deal Status\"] = jsonData.data.status.name == \"lost\";","tests[\"Deal Status Time\"] = jsonData.data.status.time.has(\"T\");","tests[\"Deal Status Changed Time\"] = jsonData.data.status.changed.has(\"T\");","","tests[\"Deal Tags\"] = jsonData.data.tags == \"B2B\";","","pm.environment.set(\"firstGlobalDealId\", jsonData.data.id);","pm.environment.set(\"pipelineId\", jsonData.data.pipeline.id);","pm.environment.set(\"stageId\", jsonData.data.pipeline.stage.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"price\", \"starred\", \"source\", \"isDeleted\", \"created\", \"status\", \"owner\", \"stage\", \"buyer\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"price\": JSON.parse(pm.environment.get('price_schema')),","                \"cost\": JSON.parse(pm.environment.get('price_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"estimatedClosureDate\": { \"type\": \"string\" },","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                \"buyer\": {","                    \"type\": \"object\",","                    \"required\": [\"id\", \"name\"],","                    \"properties\": {","                        \"id\": { \"type\": \"integer\" },","                        \"name\": { \"type\": \"string\" },","                        \"email\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"value\": { \"type\": \"string\" },","                                \"type\": { \"type\": \"string\" }","                            }","                        },","                        \"address\": {","                            \"type\": \"object\",","                            \"required\" : [\"value\", \"type\"],","                            \"properties\": {","                                \"value\": JSON.parse(pm.environment.get('address_value_schema')),","                                \"type\": {","                                    \"type\": \"string\",","                                },","                            },","                        },","                    }","                },","                \"allBuyers\": {","                    \"type\": \"array\",","                    \"items\": {","                        \"type\": \"object\",","                        \"required\": [\"id\", \"name\"],","                        \"properties\": {","                            \"id\": { \"type\": \"integer\" },","                            \"name\": { \"type\": \"string\" },","                            \"email\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"value\": { \"type\": \"string\" },","                                    \"type\": { \"type\": \"string\" }","                                }","                            },","                            \"address\": {","                                \"type\": \"object\",","                                \"required\" : [\"value\", \"type\"],","                                \"properties\": {","                                    \"value\": JSON.parse(pm.environment.get('address_value_schema')),","                                    \"type\": {","                                        \"type\": \"string\",","                                    },","                                },","                            },","                        }","                    }","                },","                \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                \"tags\": {\"type\": \"array\"}","            },","            \"additionalProperties\": true","        },","        \"additionalProperties\": false","     }","};","","tests[\"Valid Single Deal Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"ea8db857-05ad-476e-8221-839c6391e9df","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test First Deal Name\",\n  \"buyerId\": \"{{firstGlobalCompanyId}}\",\n  \"stageId\": \"4\",\n  \"status\" : \"lost\",\n  \"priceValue\": \"2015\",\n  \"priceCurrency\": \"EUR\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"source\": \"postman\",\n  \"sourceDescription\": \"Source form API testing tool Postman\",\n  \"tags\": \"B2B\",\n  \"estimatedClosureDate\": \"2019-02-27T22:00:00+00:00\"\n}"},"url":"https://api.teamgate.com/v4/deals","description":"<p>Create first deal and set its id as a variable:</p>\n<p>firstGlobalDealId</p>\n<p>This variable is used in: </p>\n<ol>\n<li>Events -&gt; Deals: Add Deals To an Event</li>\n<li>Events -&gt; Deals: Replace Deals To an Event</li>\n<li>Events -&gt; Deals: Detach Deal From Event</li>\n</ol>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>buyer</strong> <br />integer <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"buyer\": \"5\"</code></td>\n</tr>\n<tr>\n<td><strong>stageId</strong> <br />Integer</td>\n<td><strong>Example:</strong> <code>\"stageId\": \"5\"</code></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br /> String</td>\n<td>Possible Values: <ul><li>  <code>active</code> - the deal is open </li><li> <code>won</code> - the deal is won </li><li> <code>lost</code> - the deal is lost </li><li> <code>postponed</code> - the deal is postponed </li></ul></td>\n</tr>\n<tr>\n<td><strong>priceValue</strong> <br />Float</td>\n<td><strong>Example:</strong> <code>\"priceValue\": \"1725.50\"</code></td>\n</tr>\n<tr>\n<td><strong>priceCurrency</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"priceCurrency\": \"USD\"</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>  <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>   <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong>   <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong> <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>estimatedClosureDate</strong> <br /> Date</td>\n<td><strong>Example:</strong> <code>\"estimatedClosureDate\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li>Example for select (fieldID : valueId): <code>\"customFields\": \"{'3':'5'}\"</code></li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea8db857-05ad-476e-8221-839c6391e9df"},{"name":"Create Second Deal","event":[{"listen":"test","script":{"id":"a5d38bbf-d1f2-4d2d-af48-8656133d1fc6","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Deal Name\"] = jsonData.data.name == \"Postman API Test Second Deal Name\";","tests[\"Deal Price Value\"] = jsonData.data.price.value == \"1248.00\";","tests[\"Deal Price Currency\"] = jsonData.data.price.currency == \"EUR\";","tests[\"Deal Price Symbol\"] = jsonData.data.price.symbol == \"€\";","tests[\"Deal Price Rate\"] = jsonData.data.price.rate == \"1\";","tests[\"Deal Price Base Value\"] = jsonData.data.price.baseValue == \"1248.00\";","tests[\"Deal Price Base Currency\"] = jsonData.data.price.baseCurrency == \"EUR\";","tests[\"Deal Price Base Symbol\"] = jsonData.data.price.baseSymbol == \"€\";","","tests[\"Deal Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Deal Source ID\"] = jsonData.data.source.id == \"12\";","","tests[\"Deal is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Deal Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Deal Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"tokenUserId\");","tests[\"Deal Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Deal Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Deal Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Deal Estimated Closure Date\"] = jsonData.data.estimatedClosureDate == \"2019-02-27T22:00:00+00:00\";","tests[\"Deal Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"tokenUserId\");","tests[\"Deal Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Deal Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Deal Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Deal Stage\"] = jsonData.data.stage.id == pm.environment.get(\"stageId\");","","tests[\"Deal Pipeline\"] = jsonData.data.pipeline.id == pm.environment.get(\"pipelineId\");","","tests[\"Deal Buyer\"] = jsonData.data.buyer.id == pm.environment.get(\"secondGlobalCompanyId\");","","tests[\"Deal Status\"] = jsonData.data.status.name == \"lost\";","tests[\"Deal Status Time\"] = jsonData.data.status.time.has(\"T\");","tests[\"Deal Status Changed Time\"] = jsonData.data.status.changed.has(\"T\");","","tests[\"Deal Tags\"] = jsonData.data.tags == \"B2C\";","","pm.environment.set(\"secondGlobalDealId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"price\", \"starred\", \"source\", \"isDeleted\", \"created\", \"status\", \"owner\", \"stage\", \"buyer\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"price\": JSON.parse(pm.environment.get('price_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"estimatedClosureDate\": { \"type\": \"string\" },","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                \"buyer\": {","                    \"type\": \"object\",","                    \"required\": [\"id\", \"name\"],","                    \"properties\": {","                        \"id\": { \"type\": \"integer\" },","                        \"name\": { \"type\": \"string\" },","                        \"email\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"value\": { \"type\": \"string\" },","                                \"type\": { \"type\": \"string\" }","                            }","                        },","                        \"address\": {","                            \"type\": \"object\",","                            \"required\" : [\"value\", \"type\"],","                            \"properties\": JSON.parse(pm.environment.get('address_value_schema')),","                        }","                    }","                },","                \"allBuyers\": {","                    \"type\": \"array\",","                    \"items\": {","                        \"type\": \"object\",","                        \"required\": [\"id\", \"name\"],","                        \"properties\": {","                            \"id\": { \"type\": \"integer\" },","                            \"name\": { \"type\": \"string\" },","                            \"email\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"value\": { \"type\": \"string\" },","                                    \"type\": { \"type\": \"string\" }","                                }","                            },","                            \"address\": {","                                \"type\": \"object\",","                                \"required\" : [\"value\", \"type\"],","                                \"properties\": JSON.parse(pm.environment.get('address_value_schema')),","                            }","                        }","                    }","                },","                \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                \"tags\": {\"type\": \"array\"}","            },","            \"additionalProperties\": true","        },","        \"additionalProperties\": false","     }","};","","tests[\"Valid Single Deal Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"fd55e1bf-d2be-442a-bc78-7cde2a57b04b","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Second Deal Name\",\n  \"buyerId\": \"{{secondGlobalCompanyId}}\",\n  \"stageId\": \"{{stageId}}\",\n  \"status\" : \"lost\",\n  \"priceValue\": \"1248\",\n  \"priceCurrency\": \"EUR\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"sourceId\": \"12\",\n  \"tags\": \"B2C\",\n  \"estimatedClosureDate\": \"2019-02-28T00:00:00+02:00\"\n}"},"url":"https://api.teamgate.com/v4/deals","description":"<p>Create second deal and set its id as a variable:</p>\n<p>secondGlobalDealId</p>\n<p>This variable is used in: </p>\n<ol>\n<li>Events -&gt; Deals: Replace Deals To an Event</li>\n</ol>\n<p>Delete this deal in the end</p>\n","urlObject":{"protocol":"https","path":["v4","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fd55e1bf-d2be-442a-bc78-7cde2a57b04b"},{"name":"Upload First Global File","event":[{"listen":"test","script":{"id":"ed922eae-c262-44a9-bba3-aa60622fe02f","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","tests[\"File Full Name\"] = jsonData.data.fullName == \"commercialOffer.txt\";","tests[\"File Name\"] = jsonData.data.name == \"commercialOffer\";","tests[\"File Extension\"] = jsonData.data.extension == \"txt\";","tests[\"File Size\"] = jsonData.data.size == \"8\";","tests[\"File Mime Type\"] = jsonData.data.mimeType == \"text/plain\";","tests[\"File Description\"] = jsonData.data.description == \"my 1st upload\";","","tests[\"File Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"File Creator Id\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"File Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"File Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"File Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","var size = jsonData.data.tags.length;","var flag1 = false;","var flag2 = false;","var flag3 = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data.tags[i] == \"offers\") flag1 = true;","    if (jsonData.data.tags[i] == \"testing\") flag2 = true;","    if (jsonData.data.tags[i] == \"B2B\") flag3 = true;","}","","tests[\"File Tags1\"] = flag1 === true; ","tests[\"File Tags2\"] = flag2 === true; ","tests[\"File Tags3\"] = flag3 === true; ","","tests[\"File Download Time\"] = jsonData.data.download.time.has(\"T\");","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": JSON.parse(pm.environment.get('files_schema')),","    }","};","","tests[\"Valid File Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}","","//GETTING VARIABLES","pm.environment.set(\"firstGlobalFileId\", jsonData.data.id);",""],"type":"text/javascript"}}],"id":"4367dbe1-bace-4ad6-b320-45e8872bb0fb","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"commercialOffer.txt\",\n\t\"type\": \"text/plain\",\n\t\"size\": \"8\",\n\t\"description\": \"my 1st upload\",\n\t\"content\": \"dGVhbWdhdGU=\",\n\t\"tags\": [\"offers\", \"testing\", \"B2B\"]\n}"},"url":"https://api.teamgate.com/v4/files","description":"<p>This file is used for other tests that need to attach files to comments, companies, leads etc. make sure that you delete this file at the end of all tests:</p>\n<p>firstGlobalFileId</p>\n<p>This variable is used in: \n02. Companies\n04. Deals\n05. Events\n10. Leads\n12. People</p>\n<p>Create a new file</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td><strong>Example:</strong> <code>\"name\": \"myFile.txt\"</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br />String</td>\n<td><strong>Possible values:</strong>  <ul><li> <code>text/plain</code> - .txt </li><li> <code>application/pdf</code> - .pdf </li><li> <code>application/vnd.ms-excel</code> - .xls </li><li> <code>video/mp4</code>  - .mp4 </li><li> and etc. </li></ul>  <strong>Example:</strong>   \"type\": \"text/plain\"</td>\n</tr>\n<tr>\n<td><strong>size</strong> <br />Integer</td>\n<td>File size in bytes  <strong>Example:</strong>   <code>\"size\": \"457\"</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td><strong>Example:</strong>    <code>\"description\": \"It is my 1st uploaded file\"</code></td>\n</tr>\n<tr>\n<td><strong>content</strong> <br />String</td>\n<td>Insert here your decoded file in <code>base64</code> format. <br /> <strong>Example:</strong>  <code>\"content\": \"dGVhbWdhdGU=\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li> <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4367dbe1-bace-4ad6-b320-45e8872bb0fb"},{"name":"Upload Global Second File","event":[{"listen":"test","script":{"id":"82a875cb-8826-46f7-91e2-ec39786637b8","exec":["let responseJSON;","tests[\"Status code is 200\"] = responseCode.code === 200;","","if (responseCode.code !== 200) {","    try {","        responseJSON = JSON.parse(responseBody.message);","        console.log(responseJSON);","    }","    catch(e) {","        console.log(e);","    }","    return;","}","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","tests[\"File Full Name\"] = jsonData.data.fullName == \"commercialOffer2.txt\";","tests[\"File Name\"] = jsonData.data.name == \"commercialOffer2\";","tests[\"File Extension\"] = jsonData.data.extension == \"txt\";","tests[\"File Size\"] = jsonData.data.size == \"8\";","tests[\"File Mime Type\"] = jsonData.data.mimeType == \"text/plain\";","tests[\"File Description\"] = jsonData.data.description == \"my 2nd upload\";","","tests[\"File Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"File Creator Id\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"File Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"File Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"File Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","tests[\"File Download Time\"] = jsonData.data.download.time.has(\"T\");","","var size = jsonData.data.tags.length;","var flag1 = false;","var flag2 = false;","var flag3 = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data.tags[i] == \"offering\") flag1 = true;","    if (jsonData.data.tags[i] == \"test\") flag2 = true;","    if (jsonData.data.tags[i] == \"B2C\") flag3 = true;","}","","tests[\"File Tags1\"] = flag1 === true; ","tests[\"File Tags2\"] = flag2 === true; ","tests[\"File Tags3\"] = flag3 === true;","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": JSON.parse(pm.environment.get('files_schema')),","    }","};","","tests[\"Valid File Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}","","//GETTING VARIABLES","pm.environment.set(\"secondGlobalFileId\", jsonData.data.id);"],"type":"text/javascript"}}],"id":"81d37921-b499-481a-9f2a-92aca47b196b","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"commercialOffer2.txt\",\n\t\"type\": \"text/plain\",\n\t\"size\": \"8\",\n\t\"description\": \"my 2nd upload\",\n\t\"content\": \"dGVhbWdhdGU=\",\n\t\"tags\": [\"offering\", \"test\", \"B2C\"]\n}"},"url":"https://api.teamgate.com/v4/files","description":"<p>This file is used for other tests that need to get attach files to comments, companies, leads etc. make sure that you delete this file at the end of all tests</p>\n<p>secondGlobalFileId</p>\n<p>This variable is used in: \n02. Companies\n04. Deals\n05. Events\n10. Leads\n12. People</p>\n","urlObject":{"protocol":"https","path":["v4","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"81d37921-b499-481a-9f2a-92aca47b196b"},{"name":"Create Global Event Appointment","event":[{"listen":"test","script":{"id":"4307ce9a-f130-45d4-bf88-96620059743c","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","//tests[\"Appointment canEdit\"] = jsonData.data.canEdit == \"yes\";","//tests[\"Appointment canView\"] = jsonData.data.canView == \"yes\";","tests[\"Appointment Type\"] = jsonData.data.type == \"appointment\";","tests[\"Appointment Name\"] = jsonData.data.name == \"Postman API Test Meeting\";","tests[\"Appointment Descrioption\"] = jsonData.data.description == \"Description for Appointment form API testing tool Postman\";","tests[\"Appointment START\"] = jsonData.data.start == \"2016-12-05T09:45:00+00:00\";","tests[\"Appointment END\"] = jsonData.data.end == \"2016-12-05T12:45:00+00:00\";","tests[\"Appointment is AllDay NO\"] = jsonData.data.allDay == \"no\";","tests[\"Appointment Place\"] = jsonData.data.place == \"Postman area\";","tests[\"Appointment is Secret NO\"] = jsonData.data.isSecret == \"no\";","","tests[\"Appointment Owner\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Appointment Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Appointment Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Appointment Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Appointment Crated Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Appointment Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Appointment Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Appointment Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Appointment Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Appointment Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Appointment Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Appointment Updator Small Picture\"] = jsonData.data.updated.user.picture.small.has(\".jpg\");","tests[\"Appointment Updator Medium Picture\"] = jsonData.data.updated.user.picture.medium.has(\".jpg\");","tests[\"Appointment Updator Large Picture\"] = jsonData.data.updated.user.picture.large.has(\".jpg\");","","tests[\"Appointment Attendees1\"] = jsonData.data.attendees[0].id == pm.environment.get(\"firstUserId\");","tests[\"Appointment Attendees2\"] = jsonData.data.attendees[1].id == pm.environment.get(\"secondUserId\");","tests[\"Appointment Resources\"] = jsonData.data.resources[0].id == pm.environment.get(\"secondResourceId\");","","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"type\", \"created\", \"updated\"],","            \"properties\": {","                \"id\": {\"type\": \"integer\"},","                \"canEdit\": {\"type\": \"string\"},","                \"canView\": {\"type\": \"string\"},","                \"type\": {\"type\": \"string\"},","                \"name\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"start\": {\"type\": \"string\"},","                \"end\": {\"type\": \"string\"},","                \"allDay\": {\"type\": \"string\"},","                \"place\": {\"type\": \"string\"},","                \"isSecret\": {\"type\": \"string\"},","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                \"people\": JSON.parse(pm.environment.get('people_schema')),","                \"companies\": JSON.parse(pm.environment.get('companies_schema')),","                \"leads\": JSON.parse(pm.environment.get('leads_schema')),","                \"attendees\": {","                    \"type\": \"array\",","                    \"items\": JSON.parse(pm.environment.get('user_schema'))","                },","                \"resources\":  JSON.parse(pm.environment.get('resources_schema'))","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Event Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}","","//SETTING VARIABLES","pm.environment.set(\"globalEventId\", jsonData.data.id);","pm.environment.set(\"globalMeetingId\", jsonData.data.id);"],"type":"text/javascript"}}],"id":"82531a71-a53a-4fa7-941f-c6f9f19d339c","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Meeting\",\n  \"type\": \"appointment\",\n  \"place\": \"Postman area\",\n  \"isSecret\": \"0\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"description\": \"Description for Appointment form API testing tool Postman\",\n  \"start\": \"2016-12-05T09:45:00+00:00\",\n  \"end\": \"2016-12-05T12:45:00+00:00\",\n  \"allDay\": \"no\",\n  \"attendees\": [\"{{firstUserId}}\", \"{{secondUserId}}\"],\n  \"leads\": [\"{{firstGlobalLeadId}}\", \"{{secondGlobalLeadId}}\"],\n  \"people\":[\"{{firstGlobalPersonId}}\",\"{{secondGlobalPersonId}}\"],\n  \"companies\":[\"{{firstGlobalCompanyId}}\",\"{{secondGlobalCompanyId}}\"],\n  \"deals\": [\"{{firstGlobalDealId}}\", \"{{secondGlobalDealId}}\"],\n  \"resources\": \"{{secondResourceId}}\"\n}"},"url":"https://api.teamgate.com/v4/events","description":"<p>Creating a global event to create a global comment. Delete this at the end.</p>\n<p>globalEventId</p>\n<p>This variable is used in: \n01. Comments: Create Comment\n2. Deals: Add Event\n3. Leads: Add Lead Event</p>\n<p>Create event: appointment</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong>  <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br /> String</td>\n<td>Default <code>type</code> value is <code>task</code>. Possible Values: <ul><li> <code>task</code> - event as task </li><li> <code>call</code> - event as call </li><li> <code>appointment</code> - event as appointment </li><li> <code>note</code> - event as note </li><li> custom type name or Id - event custom type </li></ul></td>\n</tr>\n<tr>\n<td><strong>place</strong> <br /> String</td>\n<td>This attribute is used only for the appointments. <br /> <strong>Example:</strong>  <code>\"place\": \"London\"</code></td>\n</tr>\n<tr>\n<td><strong>isSecret</strong> <br /> Boolean</td>\n<td>This attribute is used only for the appointments. Indicator the appointment is private or not. <br /> Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>resources</strong> <br /> Integer</td>\n<td><strong>Example:</strong>  <ul><li>   <code>\"resources\": \"1\"</code> </li><li>  <code>\"resources\": \"['1','2']\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br /> string</td>\n<td><strong>Example:</strong>      <code>\"description\": \"Very important appointment with partner\"</code></td>\n</tr>\n<tr>\n<td><strong>start</strong> <br /> Date</td>\n<td><strong>Example:</strong> <code>\"start\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>end</strong> <br /> Date</td>\n<td><strong>Example:</strong> <code>\"end\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>allDay</strong> <br /> Boolean</td>\n<td>Indicate whether the event lasts all day. This attribute is used only for the appointments.<br /> Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>attendees</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"attendees[0]\": \"1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"82531a71-a53a-4fa7-941f-c6f9f19d339c"},{"name":"Create Global Comment","event":[{"listen":"test","script":{"id":"017cfd3e-7cbb-430b-b6b8-540f86ef8aa3","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Testing Response Values","tests[\"Comment Value\"] = jsonData.data.value == \"Postman API Test Comment\";","tests[\"Comment crated Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Comment Owner Id\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Comment Owner Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Comment Owner Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Comment Owner Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","//Getting variable","pm.environment.set(\"commentId\", jsonData.data.id);","","//Testing Schema","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"value\", \"created\"],","            \"properties\": {","                \"type\": \"object\",","                \"id\": { \"type\": \"integer\" }, ","                \"value\": { \"type\": \"string\" },","                \"created\": JSON.parse(pm.environment.get('created_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Comment Schema\"] = tv4.validate(jsonData, schema, false, true);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"a79fc1bc-f44d-4e8c-9650-d4bfcc7fe47b","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": \"Postman API Test Comment\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/comments","description":"<p>In order to create a comment first need to create 'Global Event Appointment'</p>\n<p>This comment will be used later in other test:</p>\n<p>Used in:</p>\n<ol>\n<li>Comments Get Comment</li>\n<li>Comments Update Comment</li>\n<li>Comments Delete Comment</li>\n</ol>\n<p>New created variable:</p>\n<ol>\n<li>commentId</li>\n</ol>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"value\": \"My first comment\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","comments"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a79fc1bc-f44d-4e8c-9650-d4bfcc7fe47b"},{"name":"Add Lead Event","event":[{"listen":"test","script":{"id":"050bbd2e-84ad-46bf-8f35-aa6fc79bdf7e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Leads\"] = jsonData.count = 1;","tests[\"Lead Name\"] = jsonData.data[0].name == \"Postman API Test Lead 1\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                    \"score\": JSON.parse(pm.environment.get('score_schema')),","                    \"tags\": { \"type\": \"array\" },","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                    \"showCompany\": { \"type\": \"boolean\" },","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event Leads Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"a5ac3900-84a4-44a6-a915-5d37fb97d8c0","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"id\":\"{{firstGlobalLeadId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/leads","description":"<p>Used for other endpoints:\n10. Leads: Get Lead Events</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id <br /> Integer</td>\n<td>Add lead id <br /> <strong>Example:</strong> <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","leads"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5ac3900-84a4-44a6-a915-5d37fb97d8c0"},{"name":"Add Event","event":[{"listen":"test","script":{"id":"fa651873-53fb-450a-a0e6-836edcaccf8f","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Value Test","","var size = jsonData.count;","var flag = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data[i].id == pm.environment.get(\"secondGlobalDealId\")) flag = true;","}","tests[\"Event Deal ID\"] = flag === true; ","","//Schema Test","var schema = {"," \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\",\"owner\", \"starred\", \"source\", \"created\", \"isDeleted\", \"status\", \"stage\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"price\": JSON.parse(pm.environment.get('price_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\":  JSON.parse(pm.environment.get('source_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"estimatedClosureDate\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                    \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                    \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                    \"tags\": {\"type\": \"array\"}","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": true","    }","};","","console.log(JSON.stringify(jsonData), JSON.stringify(schema));","tests[\"Valid Event Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"aa5a6621-4020-4800-9b69-2c52730d03df","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{secondGlobalDealId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/deals","description":"<p>Used for other endpoints:\n04. Deals: Get Deal Events</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Deal id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa5a6621-4020-4800-9b69-2c52730d03df"}],"id":"6e4b84ee-052d-45ef-a0ef-b2bc82c9de07","description":"<p>This folder is used for testing purposes</p>\n","_postman_id":"6e4b84ee-052d-45ef-a0ef-b2bc82c9de07"},{"name":"01. Comments","item":[{"name":"Get Comment","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Testing comment schema","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"value\", \"created\"],","            \"properties\": {","                \"type\": \"object\",","                \"id\": { \"type\": \"integer\" }, ","                \"value\": { \"type\": \"string\" },","                \"created\": JSON.parse(pm.environment.get('created_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Comment Schema\"] = tv4.validate(jsonData, schema, false, true);","    ","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"24dab6f8-a19c-4d7b-8d2e-37158a20eee5","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/comments/{{commentId}}","description":"<p>Retrieve a Single Comment</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Comment. <br /> <strong>Example:</strong> <code>?id=2</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","comments","{{commentId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"de5e5092-4303-4b60-9a04-4442c7a45664","name":"Get Comment","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/comments/{{commentId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Apr 2018 07:08:32 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9998","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1524640500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":643,\"value\":\"Postman API Test Comment\",\"created\":{\"time\":\"2018-04-25T10:04:39+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}}}}"}],"_postman_id":"24dab6f8-a19c-4d7b-8d2e-37158a20eee5"},{"name":"Update Comment","event":[{"listen":"test","script":{"id":"04c141d0-bae2-46d4-bece-f13edce4f94a","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Value test","tests[\"Comment Value\"] = jsonData.data.value == \"Postman API Test Company Name Updated\";","tests[\"Comment Crated Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Comment Owner Id\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Comment Owner Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Comment Owner Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Comment Owner Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","//Schema test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"value\", \"created\"],","            \"properties\": {","                \"type\": \"object\",","                \"id\": { \"type\": \"integer\" }, ","                \"value\": { \"type\": \"string\" },","                \"created\": JSON.parse(pm.environment.get('created_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Comment Schema\"] = tv4.validate(jsonData, schema, false, true);","    ","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"09003f78-d3a2-4ee1-8a8d-a7c616f7af35","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": \"Postman API Test Company Name Updated\"\n}"},"url":"https://api.teamgate.com/v4/comments/{{commentId}}","description":"<p>Update a comment</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br />String <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"value\": \"This is comment\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","comments","{{commentId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"b7cfe5ef-fb44-4b53-b09e-d08afca979df","name":"Update Comment","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": \"Postman API Test Company Name\"\n}"},"url":"{{url}}/comments/{{commentId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Apr 2018 07:11:25 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9996","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1524640500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":643,\"value\":\"Postman API Test Company Name\",\"created\":{\"time\":\"2018-04-25T10:04:39+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}}}}"}],"_postman_id":"09003f78-d3a2-4ee1-8a8d-a7c616f7af35"},{"name":"Delete Comment","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Value test","tests[\"Was Deleted Duccessfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"fa1600ec-bc31-47b9-89db-389c10eb39a2","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/comments/{{commentId}}","description":"<p>Delete a comment</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribut</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Comment. <br /> <strong>Example:</strong> <code>?id=2</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","comments","{{commentId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa1600ec-bc31-47b9-89db-389c10eb39a2"}],"id":"7f2c9f90-d9a5-4a1a-b664-8c5ef4d27042","description":"<h2 id=\"properties\">Properties</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <em>read only</em></td>\n<td>Unique key of the Comment.</td>\n</tr>\n<tr>\n<td><strong>value</strong> <br /> String</td>\n<td>Value of the Comment.</td>\n</tr>\n<tr>\n<td><strong>created</strong> <br /> Object <em>read only</em></td>\n<td>User, date and time Commnet was created. Information is read only, because automatically generated by the server. Read more information about <code>Created</code> object <a href=\"./#7d49fe80-3c31-48d7-addb-aec4afc7a9aa\">here</a>.</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"474acc70-ad76-4696-98de-de508af8c082","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ff073cee-dafd-44a6-a260-375f61a7c873","type":"text/javascript","exec":[""]}}],"_postman_id":"7f2c9f90-d9a5-4a1a-b664-8c5ef4d27042"},{"name":"02. Custom Fields","item":[{"name":"Get Custom Fields Collection","event":[{"listen":"test","script":{"id":"7cc35624-1446-45f2-86ed-bd2c04470b60","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('custom_field_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Custom Fields Collection Schema\"] = tv4.validate(jsonData, schema);","","//Set Variables","var size = jsonData.data.length;","","for(var i = 0; i < size; i++) {","    if (jsonData.data[i].module == \"leads\") {","        if (jsonData.data[i].type == \"text\") {","            pm.environment.set(\"CFLeadsTextId\", jsonData.data[i].id);","        } ","        else if (jsonData.data[i].type == \"single_option\") {","            pm.environment.set(\"CFLeadsSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFLeadsSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFLeadsSelectValue2Id\", jsonData.data[i].items[1].id);","        } ","        else if (jsonData.data[i].type == \"multi_option\") {","            pm.environment.set(\"CFLeadsMultiSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFLeadsMultiSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFLeadsMultiSelectValue2Id\", jsonData.data[i].items[1].id);","        }","    } else if (jsonData.data[i].module == \"people\") {","        if (jsonData.data[i].type == \"text\") {","            pm.environment.set(\"CFPeopleTextId\", jsonData.data[i].id);","        } ","        else if (jsonData.data[i].type == \"single_option\") {","            pm.environment.set(\"CFPeopleSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFPeopleSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFPeopleSelectValue2Id\", jsonData.data[i].items[1].id);","        } ","        else if (jsonData.data[i].type == \"multi_option\") {","            pm.environment.set(\"CFPeopleMultiSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFPeopleMultiSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFPeopleMultiSelectValue2Id\", jsonData.data[i].items[1].id);","        }","    } else if (jsonData.data[i].module == \"companies\") {","        if (jsonData.data[i].type == \"text\") {","            pm.environment.set(\"CFCompaniesTextId\", jsonData.data[i].id);","        } ","        else if (jsonData.data[i].type == \"single_option\") {","            pm.environment.set(\"CFCompaniesSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFCompaniesSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFCompaniesSelectValue2Id\", jsonData.data[i].items[1].id);","        } ","        else if (jsonData.data[i].type == \"multi_option\") {","            pm.environment.set(\"CFCompaniesMultiSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFCompaniesMultiSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFCompaniesMultiSelectValue2Id\", jsonData.data[i].items[1].id);","        }","    } else if (jsonData.data[i].module == \"deals\") {","        if (jsonData.data[i].type == \"text\") {","            pm.environment.set(\"CFDealsTextId\", jsonData.data[i].id);","        } ","        else if (jsonData.data[i].type == \"single_option\") {","            pm.environment.set(\"CFDealsSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFDealsSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFDealsSelectValue2Id\", jsonData.data[i].items[1].id);","        } ","        else if (jsonData.data[i].type == \"multi_option\") {","            pm.environment.set(\"CFDealsMultiSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFDealsMultiSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFDealsMultiSelectValue2Id\", jsonData.data[i].items[1].id);","        }","    } else if (jsonData.data[i].module == \"products\") {","        if (jsonData.data[i].type == \"text\") {","            pm.environment.set(\"CFProductsTextId\", jsonData.data[i].id);","        } ","        else if (jsonData.data[i].type == \"single_option\") {","            pm.environment.set(\"CFProductsSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFProductsSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFProductSelectValue2Id\", jsonData.data[i].items[1].id);","        } ","        else if (jsonData.data[i].type == \"multi_option\") {","            pm.environment.set(\"CFProductsMultiSelectId\", jsonData.data[i].id);","            pm.environment.set(\"CFProductsMultiSelectValue1Id\", jsonData.data[i].items[0].id);","            pm.environment.set(\"CFProductsMultiSelectValue2Id\", jsonData.data[i].items[1].id);","        }","    }","}","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"d1ebf1aa-aed5-41df-a8b0-eb36c8221c0d","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/customFields?limit=50","description":"<p>Retrieve All Custom Fields</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br /> String<br /></td>\n<td>Name of the Custom Field. You can search by full name or by fragment of name. <br />Example for strict search: <code>?name=Bussness%20Type</code> <br />And search by text fragment: <code>?name[like]=Bussness</code></td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br /> Boolean<br /></td>\n<td>Indicator the Custom Field is active or not. <br />Possible values: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code> </li></ul> <br />Example: <code>?isActive=yes</code></td>\n</tr>\n<tr>\n<td><strong>isFilter</strong> <br /> Boolean<br /></td>\n<td>Indicator the field is marked as filtered or not. <br />Possible values: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code> </li></ul> <br />Example: <code>?isFilter=true</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br /> Boolean<br /></td>\n<td>Type of the Custom Field. <br />Possible values: <ul><li> <code>text</code> - Field that you can enter yourself. </li><li> <code>single_option</code>- One option to select a value. </li><li> <code>multi_option</code>- More then one option to select a value. </li><li> <code>number</code>- Number that you can enter yourself. </li><li> <code>monetary</code>- Field that you can enter some value in currency. </li><li> <code>date</code>- Appearing data picker to set important dates. </li><li> <code>long_text</code>- Long text type field is for records of up to 6000 symbols. </li><li> <code>url</code>- URL link. </li></ul> <br />Example: <code>?type=multi_option</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","customFields"],"host":["api","teamgate","com"],"query":[{"key":"limit","value":"50"}],"variable":[]}},"response":[],"_postman_id":"d1ebf1aa-aed5-41df-a8b0-eb36c8221c0d"},{"name":"Get Custom Field","event":[{"listen":"test","script":{"id":"c13945f2-a109-46b6-bbc4-908cf29de108","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('custom_field_schema'))","    }","};","","tests[\"Valid Custom Field Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"490c567e-5155-4dbe-81f1-3198225edbb2","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/customFields/{{CFPeopleSelectId}}","description":"<p>Required Variables in URL:</p>\n<ol>\n<li>firstCustomFieldId</li>\n</ol>\n","urlObject":{"protocol":"https","path":["v4","customFields","{{CFPeopleSelectId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"814b1899-db6e-4781-8fbc-ad529ef429fd","name":"Get Custom Field","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/customFields/{{firstCustomFieldId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:06:12 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9959","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":1,\"name\":\"Banko s\\u0105skaita\",\"module\":\"companies\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"text\"}}"}],"_postman_id":"490c567e-5155-4dbe-81f1-3198225edbb2"}],"id":"4a68703e-4ec2-4e60-a941-9142d32d92d5","description":"<h2 id=\"properties\">Properties</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Iteger <em>read only</em></td>\n<td>Unique key of the Custom Field.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td>Name of the Custom Field.</td>\n</tr>\n<tr>\n<td><strong>module</strong> <br /> String</td>\n<td>Assigned module for Custom Field. This field must have one of the following values: <ul><li> leads </li><li> people </li><li> companies </li><li> deals </li></ul></td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br /> Boolean</td>\n<td>Indicator the field is active or not.</td>\n</tr>\n<tr>\n<td><strong>isFilter</strong> <br /> Boolean</td>\n<td>Indicator the field is marked as filtered or not.</td>\n</tr>\n<tr>\n<td><strong>isList</strong> <br /> Boolean</td>\n<td>Indicator the field is shown in the list or not.</td>\n</tr>\n<tr>\n<td><strong>type</strong> <br /> String</td>\n<td>Value type assigned for field.</td>\n</tr>\n<tr>\n<td><strong>items</strong> <br /> Array</td>\n<td>...</td>\n</tr>\n<tr>\n<td><strong>value</strong> <br /> Mixed</td>\n<td>...</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"4a68703e-4ec2-4e60-a941-9142d32d92d5"},{"name":"03. Companies","item":[{"name":"Tagging","item":[{"name":"Attach Company Tags","event":[{"listen":"test","script":{"id":"89dbecf4-7384-45aa-b547-63cb675ef7bb","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Resonse Value Test","tests[\"Comapny Tag Count\"] = jsonData.count > \"0\";","","var size = jsonData.data.length;","var flag = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data[i].name == \"B2B\") flag = true;","}","","tests[\"Comapny Tags\"] = flag === true; ","","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Tag Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9d2d8a73-e5e4-4a52-bda2-cf8ce8cde189","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": \"B2B\"\n}"},"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/tags","description":"<p>Attache new tags to company</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li> <code>\"tags\": \"B2B\"</code></li><li> <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"c00ceef4-1b64-485b-91a3-6b45b8642c59","name":"Attach Company Tags","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"B2B","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:04:39 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9970","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"9d2d8a73-e5e4-4a52-bda2-cf8ce8cde189"},{"name":"Update Company Tags","event":[{"listen":"test","script":{"id":"8b92514e-aa5c-48e8-97ad-de06d054035a","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Value Test","tests[\"Comapny Tag Count\"] = jsonData.count == \"2\";","tests[\"Comapny Tag name1\"] = jsonData.data[0].name == \"B2B\";","tests[\"Comapny Tag name2\"] = jsonData.data[1].name == \"B2C\";","","//Sets a new variable","pm.environment.set(\"lastTagId\", jsonData.data[0].id);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Tag Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"4c6cb2d2-5b34-4821-8452-5ea9a523f060","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": [\"B2B\", \"B2C\"]\n}"},"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/tags","description":"<p>Rewrite all company tags</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li> <code>\"tags\": \"B2B\"</code></li><li> <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"c673d065-2ab3-4ee4-8516-4c3c961f47f5","name":"Update Company Tags","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"B2B","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"},{"key":"value[1]","value":"B2C","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:04:46 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9969","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"4c6cb2d2-5b34-4821-8452-5ea9a523f060"},{"name":"List company tags","event":[{"listen":"test","script":{"id":"48ac5c9a-aaca-4448-8789-577c8a3cc570","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Tag Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"73e27c88-2429-447b-a22e-b9623123e75a","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/tags","description":"<p>Gets all company tags</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"tags\" is used the same parameters as with resource \"Tags\".</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"d0af1358-77d0-4ec1-bb4a-710e6ad96490","name":"Get Company Tags","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:04:55 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9968","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"73e27c88-2429-447b-a22e-b9623123e75a"},{"name":"Detach single tag","event":[{"listen":"test","script":{"id":"26f62fee-261b-42e5-ac83-ed5159be3383","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Body is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.success).to.eql(true);","});","","pm.test('Schema is valid', function() {","    var schema = {","        \"type\": \"object\",","        \"required\": [\"success\"],","        \"properties\": {","            \"success\": { \"type\": \"boolean\" },","            \"count\": { \"type\": \"integer\" },","            \"data\": { ","                \"type\": \"array\", ","                \"items\": JSON.parse(pm.environment.get('tags_schema'))","            },","            \"error\": { \"type\": \"string\" },","            \"code\": { \"type\": \"integer\" },","            \"additionalProperties\": false","        }","    };","    var jsonData = pm.response.json();","    pm.expect(tv4.validate(jsonData, schema)).to.be.true;","});"],"type":"text/javascript"}}],"id":"55c5f713-df0d-462a-9e97-79707a1355fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/tags/{{lastTagId}}","description":"<p>Detach single tag from a company</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> integer <em>required</em><br /></td>\n<td>Unique key of the Tag of Company. <br />Example <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","tags","{{lastTagId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"55c5f713-df0d-462a-9e97-79707a1355fe"},{"name":"Untag company","event":[{"listen":"test","script":{"id":"7856ecff-7f9f-45cf-91e0-c9a4297494ad","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Response Value Test","tests[\"Comapny Tag Count\"] = jsonData.count == \"0\";","tests[\"Was Detached Successfully\"] = jsonData.success;","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Tag Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"4627d944-f529-4cb2-a183-b14938e91bfa","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/tags","description":"<p>Detach all company tags</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4627d944-f529-4cb2-a183-b14938e91bfa"}],"id":"35cf6ebd-e548-4f0d-a5ab-369afc1653a8","_postman_id":"35cf6ebd-e548-4f0d-a5ab-369afc1653a8","description":""},{"name":"Files","item":[{"name":"Attach Company Files","event":[{"listen":"test","script":{"id":"086ad759-cdc8-49d1-a240-182870f3f3c8","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Response Value Test","tests[\"File Attached\"] = jsonData.count > 0;","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"f001a0a2-c5fa-4a6b-b67c-f174f5b55331","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": \"{{firstGlobalFileId}}\"\n}"},"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/files","description":"<p>Attach a file to a company</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> array <br /></td>\n<td><strong>Example:</strong> <code>\"value\": \"[1, 3, 7, 8, 12]\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"ea5ba336-dff9-49bf-9fcc-4e5316729879","name":"Attach Company Files","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:05:15 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9965","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"companies\":[{\"id\":4245,\"name\":\"Postman API Test Company Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=f72807c8832aea771897e5c67023f483ec5aa841\",\"time\":\"2018-05-08T12:05:38+03:00\"}}]}"}],"_postman_id":"f001a0a2-c5fa-4a6b-b67c-f174f5b55331"},{"name":"Update Company Files","event":[{"listen":"test","script":{"id":"7cce72bc-490a-4dd8-af3c-4276dd46472f","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Response Value Test","tests[\"File Attached\"] = jsonData.count > 1;","","//Set File Id Variable","postman.setGlobalVariable(\"lastFileId\", jsonData.data[0].id);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"4570a291-6cb5-477d-9ebf-165afcda9981","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": [\"{{secondGlobalFileId}}\", \"{{firstGlobalFileId}}\"]\n}\n"},"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/files","description":"<p>Rewrite company files</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> array <br /></td>\n<td><strong>Example:</strong> <code>\"value\": \"[1, 3, 7, 8, 12]\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"a091684c-fbf9-4565-b65d-4311463c1ba9","name":"Update Company Files","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"{{secondGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"},{"key":"value[1]","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:05:25 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9964","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"companies\":[{\"id\":4245,\"name\":\"Postman API Test Company Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=1c29f788a3cb7b5ad9422e05960269f02a3ad9be\",\"time\":\"2018-05-08T12:05:48+03:00\"}},{\"id\":1557,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-05-08T11:01:24+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"companies\":[{\"id\":4245,\"name\":\"Postman API Test Company Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1557&hash=6c2aaa1fe70805fe1100230f54be13e654478b23\",\"time\":\"2018-05-08T12:05:48+03:00\"}}]}"}],"_postman_id":"4570a291-6cb5-477d-9ebf-165afcda9981"},{"name":"Get Company Files","event":[{"listen":"test","script":{"id":"721dfca1-d23d-4352-9b47-03ec0f28216d","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"dc87f068-e585-4952-a7bb-650976604a25","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/files","description":"<p>Get all company files</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"Files\" is used the same parameters as with resource \"Files\".</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"74ad3f65-d745-4305-9959-9bf6c853d93d","name":"Get Company Files","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:05:35 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9963","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"companies\":[{\"id\":4245,\"name\":\"Postman API Test Company Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=0a949879a5671bd87ffa9bab0edef0c0f9f0a230\",\"time\":\"2018-05-08T12:05:58+03:00\"}},{\"id\":1557,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-05-08T11:01:24+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"companies\":[{\"id\":4245,\"name\":\"Postman API Test Company Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1557&hash=4b154a6367e9f17c646a62f314c913ca0fb70ac1\",\"time\":\"2018-05-08T12:05:58+03:00\"}}]}"}],"_postman_id":"dc87f068-e585-4952-a7bb-650976604a25"},{"name":"Detach Company File","event":[{"listen":"test","script":{"id":"e6a543e2-b4fc-4dce-9986-1b654743ca81","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Detached Duccessfully\"] = jsonData.success;","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"6d76a094-eda7-4c82-998d-46e76d853749","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/files/{{secondGlobalFileId}}","description":"<p>Detach single file from company</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> integer <em>required</em><br /></td>\n<td>Unique key of the File of Company. <br />Example <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","files","{{secondGlobalFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6d76a094-eda7-4c82-998d-46e76d853749"},{"name":"Detach Company Files","event":[{"listen":"test","script":{"id":"8211b250-4992-4b7e-b3a0-d52d49202aa4","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Detached Successfully\"] = jsonData.success;","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Tag Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"e9baea56-11c7-4803-9556-979114bca1c8","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/files","description":"<p>Detach all company files</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9baea56-11c7-4803-9556-979114bca1c8"}],"id":"547023ca-0548-4e98-a5c1-4e2cb4653881","_postman_id":"547023ca-0548-4e98-a5c1-4e2cb4653881","description":""},{"name":"Create a Company","event":[{"listen":"test","script":{"id":"61b176a7-89db-4240-88ff-bd6401ca8caf","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Values check\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.name).to.eql(\"Postman API Test Company Name\");","    pm.expect(jsonData.data.picture.small).to.include(\"https://\");","    pm.expect(jsonData.data.picture.medium).to.include(\"https://\");","    pm.expect(jsonData.data.picture.large).to.include(\"https://\");","    pm.expect(jsonData.data.owner.picture.small).to.include(\".jpg\");","    pm.expect(jsonData.data.owner.picture.medium).to.include(\".jpg\");","    pm.expect(jsonData.data.owner.picture.large).to.include(\".jpg\");","});","","","var jsonData = JSON.parse(responseBody);","","tests[\"Company Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","","tests[\"Company Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Company Source\"] = jsonData.data.source.id == \"5\";","","tests[\"Company Industry\"] = jsonData.data.industry.id == \"62\";","","tests[\"Company Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Company Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Company Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Company Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Comapny Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Company Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Company Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Company Updator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Company Updator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Company Updator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Company is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Company Code\"] = jsonData.data.code == \"1234567890\";","tests[\"Company VAT Code\"] = jsonData.data.vatCode == \"LT1234567890\";","tests[\"Company Customer Status Id\"] = jsonData.data.customerStatus.id == 1;","tests[\"Company Customer Status Name\"] = jsonData.data.customerStatus.name == \"past_customer\";","","tests[\"Company Prospect Status Id\"] = jsonData.data.prospectStatus.id == 1;","tests[\"Company Prospect Status Name\"] = jsonData.data.prospectStatus.name == \"lost_prospect\";","","tests[\"Comapny Person id\"] = jsonData.data.person.id == pm.environment.get(\"firstGlobalPersonId\");","","tests[\"Company Tags1\"] = jsonData.data.tags[0] == \"B2B\";","tests[\"Company Tags2\"] = jsonData.data.tags[1] == \"B2C\";","","tests[\"Company Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Company Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Company Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Company Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Company Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Company Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Company Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Company Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Company Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Company Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Company URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Company URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Company URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Company URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Company URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Company URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Company URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Company URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Company URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Company URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Company Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Company Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Company Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Company Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Company Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Company Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Company Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Company Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Company Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Company Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Company Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","tests[\"Company Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Company Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Company Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Company Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Company Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Company Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Company Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Company Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","","//Setting company id variable","pm.environment.set(\"firstCompanyId\", jsonData.data.id);","","pm.test('Schema is valid', function() {","    var schema = {","        \"type\": \"object\",","        \"required\": [\"success\"],","        \"properties\": {","            \"success\": { \"type\": \"boolean\" },","            \"data\": {","                \"type\": \"object\", ","                \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"code\": { \"type\": \"string\" },","                    \"vatCode\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"person\": JSON.parse(pm.environment.get('person_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),  ","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                    \"customFields\": { ","                        \"type\": \"array\", ","                        \"properties\": {","                            \"id\": {\"type\": \"integer\"},","                            \"value\": {\"type\": \"array\"}","                        }","                    }","                },","                ","                \"additionalProperties\": false","            },","            \"additionalProperties\": false","        }","    };","    var jsonData = pm.response.json();","    pm.expect(tv4.validate(jsonData, schema)).to.be.true;","    try { console.log(tv4.error.message);} ","    catch (e) {}","});"],"type":"text/javascript"}}],"id":"2b3a0450-e365-4f89-b02c-e817d997f627","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Company Name\",\n  \"personId\": \"{{firstGlobalPersonId}}\",\n  \"jobTitle\": \"CTO\",\n  \"customerStatusId\": \"1\",\n  \"prospectStatusId\": \"1\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"sourceId\": \"5\",\n  \"industryId\": \"62\",\n  \"code\": \"1234567890\",\n  \"vatCode\": \"LT1234567890\",\n  \"tags\": [\"B2B\", \"B2C\"],\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ],\n  \"customFields\": {\n    \"3\": [\"2\"],\n    \"11\": \"7\"\n    \n  }\n}"},"url":"https://api.teamgate.com/v4/companies/?embed=customFields","description":"<p>Create a new company</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br /> String <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>personId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"personId\": \"2\"</code></td>\n</tr>\n<tr>\n<td><strong>jobTitle</strong> <br /> String</td>\n<td>The field will be set only if personId is not empty. <br /> <strong>Example:</strong> <code>\"personId\": \"2\"</code></td>\n</tr>\n<tr>\n<td><strong>customerStatusId</strong> <br /> String</td>\n<td>Possible Values: <ul><li> 0 - Non Customer </li><li> 1 - Past Customer </li><li> 2 - Customer </li></ul></td>\n</tr>\n<tr>\n<td><strong>prospectStatusId</strong> <br /> Integer</td>\n<td>Possible Values: <ul><li>0 - Non Prospect  </li><li> 1 -Lost Prospect </li><li> 2 - Prospect </li></ul></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong> <code>\"ownerUsername\": \"john@example.com\" </code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> Integer</td>\n<td><strong>Example:</strong> <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> String</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> String</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong>     <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br /> Integer</td>\n<td><strong>Example:</strong> <code>\"industryId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br /> string</td>\n<td>If the industry does not exist it will be created. <br /> <strong>Example:</strong> <code>\"industry\": \"Computer software\"</code></td>\n</tr>\n<tr>\n<td><strong>industryDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>    <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"</code></td>\n</tr>\n<tr>\n<td><strong>code</strong> <br /> string<br /></td>\n<td>Unique code of the Company. <strong>Example:</strong> <code>\"code\": \"1234567890\"</code></td>\n</tr>\n<tr>\n<td><strong>vatCode</strong> <br /> string<br /></td>\n<td>VAT identification number of the Company. <strong>Example:</strong> <code>\"vatCode\": \"UK1234567890123\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li> <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"email\": \"john@example.net\"</code> </li><li>  <code>\"emails\": \"{'value':'john@example.net','type':'work'}\"</code> </li><li>  <code>\"emails\": \"[{'value':'john@example.net','type':'work'},{'value':'john.brown@example.net','type':'home'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"phone\": \"+44 123 456 7890\"</code> </li><li> <code>\"phones\": \"{'value':'+44 123 456 7890','type':'mobile'}\"</code> </li><li> <code>\"phones\": \"[{'value':'+44 123 456 7890','type':'mobile'},{'value':'+44 123 456 7800','type':'fax'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"url\": \"http://example.com\"</code> </li><li> <code>\"urls\": \"{'value':'http://example.com','type':'website'}\"</code> </li><li> <code>\"urls\": \"[{'value':'http://example.com','type':'website'},{'value':'https://facebook.com/example','type':'facebook'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"address\": \"{'city':'Chicago','countryIso':'USA'}\"</code> </li><li> <code>\"addresses\": \"[{'city':'Chicago','countryIso':'USA'},{'longitude':'51.5109393','latitude':'0.030166'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>customFields</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li> <code>Example for select (fieldID : valueId): \"customFields\": \"{'3':'5'}\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies",""],"host":["api","teamgate","com"],"query":[{"key":"embed","value":"customFields"}],"variable":[]}},"response":[{"id":"b7b7d288-3b26-4158-a9fd-b32a51821161","name":"Create Company","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Company Name\",\n  \"personId\": \"{{firstGlobalPersonId}}\",\n  \"jobTitle\": \"CTO\",\n  \"customerStatusId\": \"1\",\n  \"prospectStatusId\": \"1\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"sourceId\": \"111\",\n  \"source\": \"Postman\",\n  \"sourceDescription\": \"Source form API testing tool Postman\",\n  \"industryId\": \"113\",\n  \"industry\": \"Software Testing\",\n  \"industryDescription\": \"Industry form API testing tool Postman\",\n  \"code\": \"1234567890\",\n  \"vatCode\": \"LT1234567890\",\n  \"tags\": [\"B2B\", \"B2C\"],\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ],\n  \"customFields\": {\n  \t\"19\": [\"49\", \"51\"],\n  \t\"21\": \"75\"\n  \t\n  }\n}"},"url":{"raw":"https://api.teamgate.com/v4/companies/?embed=customFields","protocol":"https","host":["api","teamgate","com"],"path":["v4","companies",""],"query":[{"key":"embed","value":"customFields"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 12:27:46 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9778","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532435400","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9945,\"name\":\"Postman API Test Company Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-24T12:28:14+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-24T12:27:47+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"code\":\"1234567890\",\"vatCode\":\"LT1234567890\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"person\":{\"id\":9943,\"name\":\"John\",\"jobTitle\":\"CTO\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"}},\"tags\":[\"B2B\",\"B2C\"],\"emails\":[{\"id\":52715,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":52717,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":52719,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":52721,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":52723,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":52613,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":52615,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":52617,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":52619,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":52621,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":52687,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":52689,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":52691,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":52693,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":52695,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10647,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}],\"customFields\":[{\"id\":19,\"value\":[49,51]},{\"id\":21,\"value\":75}]}}"}],"_postman_id":"2b3a0450-e365-4f89-b02c-e817d997f627"},{"name":"Get a list of Companies","event":[{"listen":"test","script":{"id":"56d11e97-a8b3-441e-9de5-7f95c729351e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Testing schema","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"code\": { \"type\": \"string\" },","                    \"vatCode\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"person\": JSON.parse(pm.environment.get('person_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": true","    }","};","","console.log(JSON.stringify(jsonData), JSON.stringify(schema));","tests[\"Valid Companies Collection Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message);} ","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"cd8d915d-8ba3-4fbc-9932-7e6a3c4dcc08","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/companies","description":"<p>Gets a list of all companies</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>ids</strong> <br />String</td>\n<td>Returns a collection of companies by specific ids.<br />Example: <code>?ids[in]=1,2,3,4,5</code></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Company. You can search by full name or by fragment of name. Maximum length is 255 characters.<br />Example for strict search: <code>?name=Example%20Ltd</code> <br />And search by text fragment: <code>?name[like]=Example</code></td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>convertedTime</strong> <br />DateTime</td>\n<td>Date and time of the convertion from lead in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>createdUserId</strong> <br />Integer</td>\n<td>Unique identifier of the user who created the company. <br />Example: <code>?createdUserId=6</code></td>\n</tr>\n<tr>\n<td><strong>updatedUserId</strong> <br />Integer</td>\n<td>Unique identifier of the user who updated the company. <br />Example: <code>?createdUserId=6</code></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br />Integer</td>\n<td>Unique identifier of the user who is company owner. <br />Example: <code>?ownerId=6</code></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong> <br />Boolean</td>\n<td>Indicator the company is deleted or not. In responses deleted values are not displayed <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> Example: <code>?deleted=no</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br />Boolean</td>\n<td>Indicator the company is starred or not. <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> Example: <code>?starred=yes</code></td>\n</tr>\n<tr>\n<td><strong>customerStatus</strong> <br />Integer</td>\n<td>Customer status of the company. <br />Example:  <code>?customerStatus=1</code></td>\n</tr>\n<tr>\n<td><strong>prospectStatus</strong> <br />Integer</td>\n<td>Prospect status of the company. <br />Example:  <code>?prospectStatus=2</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br />String</td>\n<td>Source of the company. <br />Example:  <code>?source=google.com</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br />Intiger</td>\n<td>Unique identifier of the source. <br />Example:  <code>?sourceId=123</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br />String</td>\n<td>Industry of the company. <br />Example:  <code>?industry=Banking</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br />Intiger</td>\n<td>Unique identifier of the industry. <br />Example:  <code>?industryId=234</code></td>\n</tr>\n<tr>\n<td><strong>updatedTime</strong> <br />DateTime</td>\n<td>Date and time of the update in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code></td>\n</tr>\n<tr>\n<td><strong>phone</strong> <br />String</td>\n<td>Phone number of the company. The minimum number of characters for the search is 3. The search is performed by the last characters.<br /> Example: <code>?phone=556664</code></td>\n</tr>\n<tr>\n<td><strong>email</strong> <br />String</td>\n<td>Email address of the company. The minimum number of characters for the search is 3.<br /> Example: <code>?email=@gmail.com</code></td>\n</tr>\n<tr>\n<td><strong>code</strong> <br />String</td>\n<td>Unique code of the Company.<br /> Example: <code>?code=1234567890</code></td>\n</tr>\n<tr>\n<td><strong>vatCode</strong> <br />String</td>\n<td>VAT identification number of the Company.<br /> Example: <code>?vatCode=UK1234567890123</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <ul><li> name </li><li> createdTime </li><li> updatedTime </li><li> convertedTime </li></ul> Example: <code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies"],"host":["api","teamgate","com"],"query":[{"disabled":true,"key":"limit","value":""},{"disabled":true,"key":"fields","value":"created"}],"variable":[]}},"response":[],"_postman_id":"cd8d915d-8ba3-4fbc-9932-7e6a3c4dcc08"},{"name":"Get details of a Company","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\", ","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"code\": { \"type\": \"string\" },","                \"vatCode\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"person\": JSON.parse(pm.environment.get('person_schema')),","                \"tags\": {\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),  ","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message);} ","catch (e) {}"]}}],"id":"480a8a97-aae6-4a18-b545-a69037b88ed1","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}","description":"<p>Get single company by its id</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>Required</strong></td>\n<td>Unique key of the Company. <br /> <strong>Example:</strong> <code>?id=2</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"30e441f2-4db1-4444-a09c-c93d494b2985","name":"Get Single Company","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 12:28:18 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9777","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532435400","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9945,\"name\":\"Postman API Test Company Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-24T12:28:14+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-24T12:27:47+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"code\":\"1234567890\",\"vatCode\":\"LT1234567890\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"person\":{\"id\":9943,\"name\":\"John\",\"jobTitle\":\"CTO\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"}},\"tags\":[\"B2B\",\"B2C\"],\"emails\":[{\"id\":52715,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":52717,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":52719,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":52721,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":52723,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":52613,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":52615,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":52617,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":52619,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":52621,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":52687,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":52689,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":52691,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":52693,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":52695,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10647,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"480a8a97-aae6-4a18-b545-a69037b88ed1"},{"name":"Get merge history of a Company","event":[{"listen":"test","script":{"id":"a2c5c2a2-39da-4a53-ad28-7bd6d020eb1c","exec":["/*tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"merged\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"merged\": JSON.parse(pm.environment.get('created_schema'))","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message);} ","catch (e) {}*/"],"type":"text/javascript"}}],"id":"33f522f9-7271-4ece-9327-b373f6d6bc2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/merge","description":"<p>Returns merge history of a specific company.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>Required</strong></td>\n<td>Unique key of the Company. <br /> <strong>Example:</strong> <code>?id=2</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}","merge"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"54974ac5-c108-4523-9c71-28aef6d8d5c7","name":"Get Single Company","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 12:28:18 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9777","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532435400","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9945,\"name\":\"Postman API Test Company Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-24T12:28:14+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-24T12:27:47+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"code\":\"1234567890\",\"vatCode\":\"LT1234567890\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"person\":{\"id\":9943,\"name\":\"John\",\"jobTitle\":\"CTO\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"}},\"tags\":[\"B2B\",\"B2C\"],\"emails\":[{\"id\":52715,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":52717,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":52719,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":52721,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":52723,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":52613,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":52615,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":52617,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":52619,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":52621,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":52687,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":52689,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":52691,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":52693,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":52695,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10647,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"33f522f9-7271-4ece-9327-b373f6d6bc2e"},{"name":"Search for Companies","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                    \"updated\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('updated_schema')),],","                    \"isDeleted\": { \"type\": \"string\" },","                    \"code\": { \"type\": \"string\" },","                    \"vatCode\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"person\": JSON.parse(pm.environment.get('person_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Companies Search Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);} ","catch (e) {}"]}}],"id":"5123441a-7bc1-4ab6-a79d-42e536804a91","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies?name[like]=post&limit=100","description":"<p>Get a list of companies by set parameters</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>name[like]=post: Searches all companies that have post in their name</p>\n<p>limit=100: Limits the found companies up to a 100</p>\n","urlObject":{"protocol":"https","path":["v4","companies"],"host":["api","teamgate","com"],"query":[{"key":"name[like]","value":"post"},{"key":"limit","value":"100"}],"variable":[]}},"response":[],"_postman_id":"5123441a-7bc1-4ab6-a79d-42e536804a91"},{"name":"Get people of a Company","event":[{"listen":"test","script":{"id":"30f1a33c-2bc1-401b-b47c-49758a62d93c","type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"birthday\": {\"type\": \"string\"},","                    \"personalIdNumber\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"gender\": {\"type\": \"string\"},","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": false","            }","        },   ","        \"additionalProperties\": false","    }  ","};","","tests[\"Valid Company People Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);","} catch (e) {}"]}}],"id":"0a54d828-4e27-4b23-981c-64cbad4cc416","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/people","description":"<p>Getting all company people</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"people\" is used the same parameters as with resource \"people\".</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}","people"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"2fd13551-647a-405f-ac34-93de7604e4f7","name":"Get Company People","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/people"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 12:34:20 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9999","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532436300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":9943,\"name\":\"John\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"no\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-24T12:28:08+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-24T12:27:47+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"birthday\":\"2000-02-03\",\"personalIdNumber\":\"333256855655\",\"customerStatus\":{\"id\":0,\"name\":\"non_customer\"},\"prospectStatus\":{\"id\":0,\"name\":\"non_prospect\"},\"gender\":\"male\",\"tags\":[\"B2B\"],\"emails\":[{\"id\":52705,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":52707,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":52709,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":52711,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":52713,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":52603,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":52605,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":52607,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":52609,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":52611,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":52677,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":52679,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":52681,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":52683,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":52685,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10645,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"0a54d828-4e27-4b23-981c-64cbad4cc416"},{"name":"Get deals of a Company","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"count\": {\"type\": \"integer\"},","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\":{","                \"required\": [\"id\", \"name\", \"price\", \"starred\", \"source\", \"created\", \"isDeleted\", \"status\", \"owner\", \"stage\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"price\": JSON.parse(pm.environment.get('price_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"estimatedClosureDate\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                    \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                    \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                    \"tags\": {\"type\": \"array\"}","                }","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);","} catch (e) {}"]}}],"id":"e588fd9a-3156-4a5d-b51a-cc9dd538424b","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{secondGlobalCompanyId}}/deals","description":"<p>Get all company deals</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"deals\" is used the same parameters as with resource \"deals\".</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{secondGlobalCompanyId}}","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"42285424-9aed-4da7-8966-4d8b976f5d9a","name":"Get Company Deals","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/companies/{{firstCompanyId}}/deals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Apr 2018 07:19:45 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9993","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1524641400","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":1813,\"name\":\"Postman API Test Deal Name\",\"price\":{\"value\":205,\"currency\":\"EUR\",\"symbol\":\"\\u20ac\",\"rate\":1,\"baseValue\":205,\"baseCurrency\":\"EUR\",\"baseSymbol\":\"\\u20ac\"},\"starred\":\"yes\",\"source\":{\"id\":119,\"name\":\"www.postman.com\",\"description\":\"Postman Source description\"},\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-04-25T10:19:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"estimatedClosureDate\":\"2019-02-28T00:00:00+02:00\",\"owner\":{\"id\":5,\"name\":\"Jonas\",\"surname\":\"Petrauskis\",\"username\":\"j.petrauskis@topimone.lt\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/big.jpg\"}},\"stage\":{\"id\":4,\"name\":\"Pasi\\u016blymas\",\"pipeline\":\"Pardavimai\",\"probability\":35},\"pipeline\":{\"id\":5,\"name\":\"Pardavimai\",\"stage\":{\"id\":4,\"name\":\"Pasi\\u016blymas\",\"probability\":35}},\"status\":{\"name\":\"active\",\"time\":\"2018-04-25T10:19:21+03:00\",\"changed\":null},\"tags\":[\"B2B\"]}]}"}],"_postman_id":"e588fd9a-3156-4a5d-b51a-cc9dd538424b"},{"name":"Get activities of a Company","event":[{"listen":"test","script":{"id":"40323f33-b236-4a84-a7c5-6950f424ed23","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"created\", \"updated\"],","                \"properties\": {","                    \"id\": {\"type\": \"integer\"},","                    \"canEdit\": {\"type\": \"string\"},","                    \"canView\": {\"type\": \"string\"},","                    \"type\": {\"type\": \"string\"},","                    \"name\": {\"type\": \"string\"},","                    \"isDeleted\": {\"type\": \"string\"},","                    \"description\": {\"type\": \"string\"},","                    \"start\": {\"type\": \"string\"},","                    \"end\": {\"type\": \"string\"},","                    \"allDay\": {\"type\": \"string\"},","                    \"place\": {\"type\": \"string\"},","                    \"isSecret\": {\"type\": \"string\"},","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                    \"people\": JSON.parse(pm.environment.get('people_schema')),","                    \"companies\": JSON.parse(pm.environment.get('companies_schema')),","                    \"leads\": JSON.parse(pm.environment.get('leads_schema')),","                    \"attendees\": {","                        \"type\": \"array\",","                        \"items\": JSON.parse(pm.environment.get('user_schema'))","                    },","                    \"resources\":  JSON.parse(pm.environment.get('resources_schema'))","                },","                \"additionalProperties\": false","            }","        }","    }","};","","tests[\"Valid Event Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);","} catch (e) {}"],"type":"text/javascript"}}],"id":"7a973677-a3fe-4899-9cad-b27051c4c012","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}/events?limit=3","description":"<p>Get all Company events</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"events\" is used the same parameters as with resource \"events\".</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}","events"],"host":["api","teamgate","com"],"query":[{"key":"limit","value":"3"}],"variable":[]}},"response":[{"id":"35247bed-014d-441c-ace0-e2df1f686ce8","name":"Get Company Events","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{secondGlobalCompanyId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 12:34:41 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9997","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532436300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":4949,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"appointment\",\"name\":\"Postman API Test Meeting\",\"isDeleted\":\"no\",\"description\":\"Description for Appointment form API testing tool Postman\",\"start\":\"2016-12-04T22:00:00+00:00\",\"end\":\"2016-12-05T21:59:59+00:00\",\"allDay\":\"yes\",\"place\":\"Postman area\",\"isSecret\":\"yes\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"created\":{\"time\":\"2018-07-20T08:05:55+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:05:55+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"deals\":[{\"id\":2773,\"name\":\"Postman API Test First Deal Name\"},{\"id\":2777,\"name\":\"Postman API Test Second Deal Name\"}],\"people\":[{\"id\":7095,\"name\":\"Postman API Test Second Person Name\"},{\"id\":8469,\"name\":\"Arturas\"}],\"companies\":[{\"id\":7097,\"name\":\"Postman API Test Second Company Name\"},{\"id\":7093,\"name\":\"Postman API Test First Company Name\"}],\"attendees\":[{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}}],\"resources\":[{\"id\":1,\"name\":\"Meeting room\"},{\"id\":3,\"name\":\"Coffee place\"}]}]}"}],"_postman_id":"7a973677-a3fe-4899-9cad-b27051c4c012"},{"name":"Get customer statuses of a Company","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('customer_statuses_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Customer Statuses Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);","} catch (e) {}"]}}],"id":"d26bc667-c062-4266-bdad-c40ff0a44b63","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/customerStatuses","description":"<p>Get all company customer statuses</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}","customerStatuses"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"7560da9a-c770-431c-a4d3-edcfa335c526","name":"Get Company Customer Statuses","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/customerStatuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:03:57 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9976","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":3,\"data\":[{\"id\":0,\"name\":\"non_customer\"},{\"id\":1,\"name\":\"past_customer\",\"selected\":\"yes\"},{\"id\":2,\"name\":\"customer\"}]}"}],"_postman_id":"d26bc667-c062-4266-bdad-c40ff0a44b63"},{"name":"Get prospect statuses of a Company","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('prospect_statuses_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Prospecte Statuses Schema\"] = tv4.validate(jsonData, schema);","","try {console.log(tv4.error.message);","} catch (e) {}"]}}],"id":"4928a4e1-ebcd-4d88-967a-10e7ca620860","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"","value":""}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/prospectStatuses","description":"<p>All Company prospect statuses</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}","prospectStatuses"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"3aa58bfa-1240-42aa-9494-e1858cbc4d54","name":"Get Company Prospect Statuses","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"","value":""}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/prospectStatuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:04:07 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9975","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":3,\"data\":[{\"id\":0,\"name\":\"non_prospect\"},{\"id\":1,\"name\":\"lost_prospect\",\"selected\":\"yes\",\"disabled\":\"yes\"},{\"id\":2,\"name\":\"prospect\",\"disabled\":\"yes\"}]}"}],"_postman_id":"4928a4e1-ebcd-4d88-967a-10e7ca620860"},{"name":"Get industries of a Company","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('industry_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Industries Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);","} catch (e) {}"]}}],"id":"7b638cce-858b-48a9-85fc-2835b5b63371","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/industries","description":"<p>Get all company industries</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"industries\" is used the same parameters as with resource \"industries\".</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}","industries"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"36c1cb3d-2fb7-4099-a015-c7775639042c","name":"Get Company Industries","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/industries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 18 Jul 2018 08:22:13 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9999","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531902600","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":31,\"data\":[{\"id\":26,\"name\":\"Farming\"},{\"id\":27,\"name\":\"Clothing, footwear\"},{\"id\":32,\"name\":\"Construction, NT\"},{\"id\":34,\"name\":\"Education, culture, science\"},{\"id\":35,\"name\":\"Electronics\"},{\"id\":36,\"name\":\"Energy, raw materials\"},{\"id\":37,\"name\":\"Engineering\"},{\"id\":38,\"name\":\"Entertainment, tourism\"},{\"id\":39,\"name\":\"Landscaping, environmental management\"},{\"id\":40,\"name\":\"Finance, insurance, law\"},{\"id\":42,\"name\":\"State institutions\"},{\"id\":43,\"name\":\"Health and beauty\"},{\"id\":47,\"name\":\"Industry, production\"},{\"id\":48,\"name\":\"Advertising, media\"},{\"id\":52,\"name\":\"Technologies\"},{\"id\":53,\"name\":\"IT, communications\"},{\"id\":54,\"name\":\"Transport, machinery\"},{\"id\":56,\"name\":\"Kita\"},{\"id\":61,\"name\":\"Furniture\"},{\"id\":62,\"name\":\"E-commerce\"},{\"id\":63,\"name\":\"Food\"},{\"id\":64,\"name\":\"Services\"},{\"id\":65,\"name\":\"Restaurants\"},{\"id\":81,\"name\":\"Environmental protection\"},{\"id\":113,\"selected\":\"yes\",\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"}]}"}],"_postman_id":"7b638cce-858b-48a9-85fc-2835b5b63371"},{"name":"Get sources of a Company","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('sources_schema'))","    }","};","","tests[\"Valid Company Sources Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);","} catch (e) {}"]}}],"id":"ea60e603-d125-4b8e-bffa-dc841a743cdc","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/sources","description":"<p>Get all company sources</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"sources\" is used the same parameters as with resource \"sources\".</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}","sources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"b5eaed00-38b9-436f-a5c5-21f5876c3269","name":"Get Company Sources","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/sources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 18 Jul 2018 08:26:20 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9997","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531902600","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":24,\"data\":[{\"id\":1,\"name\":\"Advertising\"},{\"id\":2,\"name\":\"Cold call\"},{\"id\":4,\"name\":\"External recommendation\"},{\"id\":5,\"name\":\"E. shop\"},{\"id\":7,\"name\":\"Public Relations\"},{\"id\":8,\"name\":\"Newsletters\"},{\"id\":12,\"name\":\"Web search\"},{\"id\":79,\"name\":\"Unspecified\"},{\"id\":83,\"name\":\"Internal recommendation\"},{\"id\":84,\"name\":\"Registration on the site\"},{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},{\"id\":115,\"selected\":\"yes\",\"name\":\"Postman Source Change\",\"description\":\"Postman Source Change Description Test\"},{\"id\":119,\"name\":\"www.postman.com\",\"description\":\"Postman Source description\"},{\"id\":121,\"name\":\"sourceById\"},{\"id\":123,\"name\":\"Array\"},{\"id\":127,\"name\":\"Testassss\",\"description\":\"integromattttt\"},{\"id\":131,\"name\":\"wooo\",\"description\":\"ooow\"},{\"id\":139,\"name\":\"zis is za source\",\"description\":\"souuurce\"},{\"id\":143,\"name\":\"Naujas sourcas\",\"description\":\"Labai naujas sourcas\"},{\"id\":145,\"name\":\"TEstttt\",\"description\":\"testsetetw\"},{\"id\":147,\"name\":\"143\"},{\"id\":149,\"name\":\"Kompletely new\",\"description\":\"nuja, ziurim ar veikia description\"},{\"id\":151,\"name\":\"Web search\",\"description\":\"Found by web search\"},{\"id\":155,\"name\":\"Website sale\",\"description\":\"Selling trough website\"}]}"}],"_postman_id":"ea60e603-d125-4b8e-bffa-dc841a743cdc"},{"name":"Get all custom data of a Company","event":[{"listen":"test","script":{"id":"e944e6d7-62f1-459a-b0b8-7a311e819b86","type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('custom_field_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Custom Fields Schema\"] = tv4.validate(jsonData, schema);","","//Get new variables","postman.setGlobalVariable(\"firstCustomFieldId\", jsonData.data[0].id);","postman.setGlobalVariable(\"secondCustomFieldId\", jsonData.data[1].id);","","try { console.log(tv4.error.message);","} catch (e) {}"]}}],"id":"96003325-5ee0-46d9-aa10-eb21233fa00f","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/customFields","description":"<p>Returns a all of company custom fields.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"customFields\" is used the same parameters as with resource \"customFields\".</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}","customFields"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"14bc84c5-e9fb-4a42-9640-9de32b57230e","name":"Get Company Custom Fields","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/customFields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:04:28 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9972","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":5,\"data\":[{\"id\":1,\"name\":\"Banko s\\u0105skaita\",\"module\":\"companies\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"text\"},{\"id\":3,\"name\":\"Bankas\",\"module\":\"companies\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"single_option\",\"items\":[{\"id\":1,\"name\":\"Danske Bank\"},{\"id\":2,\"name\":\"SEB\"},{\"id\":3,\"name\":\"Swedbank\"},{\"id\":4,\"name\":\"DNB\"}]},{\"id\":7,\"name\":\"Papildoma informacija\",\"module\":\"companies\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"text\"},{\"id\":19,\"name\":\"Verslo modelis\",\"module\":\"companies\",\"isActive\":\"yes\",\"isFilter\":\"yes\",\"isList\":\"yes\",\"type\":\"multi_option\",\"items\":[{\"id\":49,\"name\":\"B2B\"},{\"id\":51,\"name\":\"B2C\"},{\"id\":53,\"name\":\"C2B\"},{\"id\":55,\"name\":\"C2C\"},{\"id\":57,\"name\":\"G2G\"},{\"id\":59,\"name\":\"G2E\"},{\"id\":61,\"name\":\"G2B\"},{\"id\":63,\"name\":\"B2G\"},{\"id\":65,\"name\":\"G2C\"},{\"id\":67,\"name\":\"C2G\"},{\"id\":69,\"name\":\"B2E\"}]},{\"id\":21,\"name\":\"\\u012emon\\u0117s dydis\",\"module\":\"companies\",\"isActive\":\"yes\",\"isFilter\":\"yes\",\"isList\":\"yes\",\"type\":\"single_option\",\"items\":[{\"id\":71,\"name\":\"Individuali veikla\"},{\"id\":73,\"name\":\"1-10 darbuotojai\"},{\"id\":75,\"name\":\"11-50 darbuotojai\"},{\"id\":77,\"name\":\"51-200 darbuotojai\"},{\"id\":79,\"name\":\"201-500 darbuotojai\"},{\"id\":81,\"name\":\"501-1000 darbuotojai\"},{\"id\":83,\"name\":\"1001-5000 darbuotojai\"},{\"id\":85,\"name\":\"5001 - 10000 darbuotojai\"},{\"id\":87,\"name\":\"10001+ darbuotojai\"}]}]}"}],"_postman_id":"96003325-5ee0-46d9-aa10-eb21233fa00f"},{"name":"Get one custom field of a Company","event":[{"listen":"test","script":{"id":"cfc80145-4050-4bf9-b2d6-0884ca682537","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('custom_field_schema'))","    }","};","","tests[\"Valid Company Cutsom Field schema\"] = tv4.validate(jsonData, schema);","","try {console.log(tv4.error.message);","} catch (e) {}"],"type":"text/javascript"}}],"id":"177b3d32-23c6-405d-aec5-ed2a2ba70325","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/customFields/{{CFCompaniesMultiSelectId}}","description":"<p>Returns a set of company custom field value.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"customFields\" is used the same parameters as with resource \"customFields\".</p>\n","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}","customFields","{{CFCompaniesMultiSelectId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"2addacf8-5be1-4f7a-9f91-3744a9a2f36e","name":"Get Company Custom Field","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/customFields/{{firstCustomFieldId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:31:15 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9995","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":19,\"name\":\"Buisness model\",\"module\":\"companies\",\"isActive\":\"yes\",\"value\":[49,51],\"isFilter\":\"yes\",\"isList\":\"yes\",\"type\":\"multi_option\",\"items\":[{\"id\":49,\"name\":\"B2B\",\"selected\":\"yes\"},{\"id\":51,\"name\":\"B2C\",\"selected\":\"yes\"},{\"id\":53,\"name\":\"C2B\"},{\"id\":55,\"name\":\"C2C\"},{\"id\":57,\"name\":\"G2G\"},{\"id\":59,\"name\":\"G2E\"},{\"id\":61,\"name\":\"G2B\"},{\"id\":63,\"name\":\"B2G\"},{\"id\":65,\"name\":\"G2C\"},{\"id\":67,\"name\":\"C2G\"},{\"id\":69,\"name\":\"B2E\"}]}}"},{"id":"389adc3a-9388-4f19-a8f9-e031993b4906","name":"Get Company Custom Field","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/customFields/{{firstCustomFieldId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:04:34 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9971","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":1,\"name\":\"Banko s\\u0105skaita\",\"module\":\"companies\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"text\"}}"}],"_postman_id":"177b3d32-23c6-405d-aec5-ed2a2ba70325"},{"name":"Update a Company","event":[{"listen":"test","script":{"id":"8b38a78d-d33a-42ab-90b4-6c194b2442b6","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Testing response values","tests[\"Comapany Name\"] = jsonData.data.name == \"Postman API Test Company Changed\";","tests[\"Comapany Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Comapany Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Comapany Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Comapany Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"secondUserId\");","tests[\"Comapany Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Comapany Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Comapany Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Comapany Starred NO\"] = jsonData.data.starred == \"no\";","tests[\"Comapany Source\"] = jsonData.data.source.name == \"Postman Source Change\";","//tests[\"Comapany Source Descrioption\"] = jsonData.data.source.description == \"Postman Source Change Description Test\";","","tests[\"Comapany Industry\"] = jsonData.data.industry.name == \"Postman Industry Change\";","//tests[\"Comapany Industry Descrioption\"] = jsonData.data.industry.description == \"Postman Industry Change Description Test\";","","tests[\"Comapany Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Comapany Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Comapany Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Comapany Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Comapany Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Comapany Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Comapany Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Comapany Updator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Comapany Updator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Comapany Updator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Comapany is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Comapany Code\"] = jsonData.data.code == \"9876543210\";","tests[\"Comapany VAT Code\"] = jsonData.data.vatCode == \"UK9876543210\";","tests[\"Comapany Customer Status Id\"] = jsonData.data.customerStatus.id == 2;","tests[\"Comapany Customer Status Name\"] = jsonData.data.customerStatus.name == \"customer\";","","tests[\"Comapany Prospect Status Id\"] = jsonData.data.prospectStatus.id == 2;","tests[\"Comapany Prospect Status Name\"] = jsonData.data.prospectStatus.name == \"prospect\";","","tests[\"Comapny Person Id\"] = jsonData.data.person.id == pm.environment.get(\"firstGlobalPersonId\");","","tests[\"Comapany tags1\"] = jsonData.data.tags[0] == \"C2B\";","tests[\"Comapany tags2\"] = jsonData.data.tags[1] == \"C2C\";","","tests[\"Comapany Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Comapany Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Comapany Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Comapany Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Comapany Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Comapany Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Comapany Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Comapany Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Comapany Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Comapany Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Comapny URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Comapny URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Comapny URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Comapny URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Comapny URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Comapny URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Comapny URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Comapny URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Comapny URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Comapny URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Comapny Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Comapny Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Comapny Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Comapny Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Comapny Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Comapny Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Comapny Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Comapny Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Comapny Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Comapny Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Comapny Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","tests[\"Comapny Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Comapny Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Comapny Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Comapny Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Comapny Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Comapny Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Comapny Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Comapny Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\", ","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"code\": { \"type\": \"string\" },","                \"vatCode\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"person\": JSON.parse(pm.environment.get('person_schema')),","                \"tags\": {\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),  ","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);} ","catch (e) {}"],"type":"text/javascript"}}],"id":"39f561e7-d276-49a7-8873-1fc1a6758837","request":{"method":"PUT","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Company Changed\",\n  \"customerStatusId\": \"2\",\n  \"prospectStatusId\": \"2\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser2\",\n  \"starred\": \"no\",\n  \"source\": \"Postman Source Change\",\n  \"sourceDescription\": \"Postman Source Change Description Test\",\n  \"industry\": \"Postman Industry Change\",\n  \"industryDescription\": \"Postman Industry Change Description Test\",\n  \"code\": \"9876543210\",\n  \"vatCode\": \"UK9876543210\",\n  \"tags\": [\"C2B\", \"C2C\"],\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ]\n}"},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}","description":"<p>Update company</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>customerStatusId</strong> <br /> String</td>\n<td>Possible Values: <ul><li> 0 - Non Customer </li><li> 1 - Past Customer </li><li> 2 - Customer </li></ul></td>\n</tr>\n<tr>\n<td><strong>prospectStatusId</strong> <br /> Integer</td>\n<td>Possible Values: <ul><li>0 - Non Prospect  </li><li> 1 -Lost Prospect </li><li> 2 - Prospect </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong> <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong>     <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br /> integer</td>\n<td><strong>Example:</strong> <code>\"industryId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br /> string</td>\n<td>If the industry does not exist it will be created. <br /> <strong>Example:</strong> <code>\"industry\": \"Computer software\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong> <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>code</strong> <br /> string<br /></td>\n<td>Unique code of the Company. <strong>Example:</strong> <code>\"code\": \"1234567890\"</code></td>\n</tr>\n<tr>\n<td><strong>vatCode</strong> <br /> string<br /></td>\n<td>VAT identification number of the Company. <strong>Example:</strong><code>\"vatCode\": \"UK1234567890123\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"email\": \"john@example.net\"</code> </li><li>  <code>\"emails\": \"{'value':'john@example.net','type':'work'}\"</code> </li><li>  <code>\"emails\": \"[{'value':'john@example.net','type':'work'},{'value':'john.brown@example.net','type':'home'}]\"</code></li></ul></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"phone\": \"+44 123 456 7890\"</code> </li><li> <code>\"phones\": \"{'value':'+44 123 456 7890','type':'mobile'}\"</code> </li><li> <code>\"phones\": \"[{'value':'+44 123 456 7890','type':'mobile'},{'value':'+44 123 456 7800','type':'fax'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"url\": \"http://example.com\"</code> </li><li> <code>\"urls\": \"{'value':'http://example.com','type':'website'}\"</code> </li><li> <code>\"urls\": \"[{'value':'http://example.com','type':'website'},{'value':'https://facebook.com/example','type':'facebook'}]\"</code></li></ul></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"address\": \"{'city':'Chicago','countryIso':'USA'}\"</code> </li><li> <code>\"addresses\": \"[{'city':'Chicago','countryIso':'USA'},{'longitude':'51.5109393','latitude':'0.030166'}]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"ad42dd59-d8b8-4b7b-9fe5-d3ae98c9d4f0","name":"Update Company","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Company Changed\",\n  \"customerStatusId\": \"2\",\n  \"prospectStatusId\": \"2\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser2\",\n  \"starred\": \"no\",\n  \"sourceId\": \"115\",\n  \"source\": \"Postman Source Change\",\n  \"sourceDescription\": \"Postman Source Change Description Test\",\n  \"industryId\": \"113\",\n  \"industry\": \"Postman Industry Change\",\n  \"industryDescription\": \"Postman Industry Change Description Test\",\n  \"code\": \"9876543210\",\n  \"vatCode\": \"UK9876543210\",\n  \"tags\": [\"C2B\", \"C2C\"],\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ]\n}"},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 24 Jul 2018 12:28:40 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9776","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532435400","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9945,\"name\":\"Postman API Test Company Changed\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}},\"starred\":\"no\",\"source\":{\"id\":115,\"name\":\"Postman Source Change\",\"description\":\"Postman Source Change Description Test\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-24T12:28:14+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-24T12:28:41+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"code\":\"9876543210\",\"vatCode\":\"UK9876543210\",\"customerStatus\":{\"id\":2,\"name\":\"customer\"},\"prospectStatus\":{\"id\":2,\"name\":\"prospect\"},\"person\":{\"id\":9943,\"name\":\"John\",\"jobTitle\":\"CTO\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"}},\"tags\":[\"C2B\",\"C2C\"],\"emails\":[{\"id\":52725,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":52727,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":52729,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":52731,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":52733,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":52623,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":52625,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":52627,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":52629,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":52631,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":52697,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":52699,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":52701,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":52703,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":52705,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10649,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"39f561e7-d276-49a7-8873-1fc1a6758837"},{"name":"Change a photo for a Company","event":[{"listen":"test","script":{"id":"0b14e6a6-455a-49be-aeea-2d36c1534551","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Testing response values","tests[\"Company Medium Picture\"] = jsonData.data.picture.medium.has(\".jpg\");","","//Testing Schema","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\", ","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"code\": { \"type\": \"string\" },","                \"vatCode\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"person\": JSON.parse(pm.environment.get('person_schema')),","                \"tags\": {\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),  ","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                \"customFields\": { ","                    \"type\": \"array\", ","                    \"properties\": {","                        \"id\": {\"type\": \"integer\"},","                        \"value\": {\"type\": \"array\"}","                    }","                }","            },","            ","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);} ","catch (e) {}"],"type":"text/javascript"}}],"id":"3c239b80-d686-4bd0-9426-189055e94ac6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-App-Key","type":"text","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"content\": \"iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAXnRFWHRSYXcgcHJvZmlsZSB0eXBlIDhiaW0ACjhiaW0KICAgICAgMjgKMzg0MjQ5NGQwM2VkMDAwMDAwMDAwMDEwMDEyYzAwMDAwMDAxMDAwMTAxMmMwMDAwMDAwMTAwMDEKP27dsQAASZp6VFh0UmF3IHByb2ZpbGUgdHlwZSB4bXAAAHja1f1LriW3sgQK9mMUbwik248cDuPD3gOqWcOvRqyU9pZSUh6dW8C9SEC5kIpgOP+ku5n58f/9f/8/x//z//w/FXIcuLAz0twNn1ZYzWU5nn5wVz37PM9dVc3TxF2lQLzReKcRlofnwZGVsoQsPqKR5dPANKuw8bSFKwMrw3eabyt0r5bh25efACvjwF3lbnq7LKz3f/z2+K6q9nsxoU/c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OEU1NkQ3OTk4ODRERTI5NjaMk0MAAAAedEVYdHN0UmVmOnJlbmRpdGlvbkNsYXNzAHByb29mOnBkZi6gIiYAAAAodEVYdHhtcDpDcmVhdGVEYXRlADIwMTQtMDctMTVUMTc6NDQ6MTIrMDM6MDBI7hELAAAAKnRFWHR4bXA6TWV0YWRhdGFEYXRlADIwMTQtMDctMTVUMTc6NDQ6MTIrMDM6MDDAtH6MAAAAI3RFWHR4bXA6TW9kaWZ5RGF0ZQAyMDE0LTA3LTE1VDE0OjQ0OjI0Wio2/foAAAA5dEVYdHhtcE1NOkRvY3VtZW50SUQAeG1wLmRpZDo2MjVCQzAwNjJFMENFNDExOEU1NkQ3OTk4ODRERTI5NjUJM6YAAAA5dEVYdHhtcE1NOkluc3RhbmNlSUQAeG1wLmlpZDo2MjVCQzAwNjJFMENFNDExOEU1NkQ3OTk4ODRERTI5Nogb8xMAAABBdEVYdHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRAB4bXAuZGlkOjVGNUJDMDA2MkUwQ0U0MTE4RTU2RDc5OTg4NERFMjk2iJkTLgAAAB50RVh0eG1wTU06UmVuZGl0aW9uQ2xhc3MAcHJvb2Y6cGRmhKbfiQAAAABJRU5ErkJggg==\",\n\"size\": \"33268\"\n}"},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}/avatar","description":"<p>To add or update a photo for a company, send an authorized PUT request to the company's photo URL with the photo data bytes in the body.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>size</strong> <br />Integer</td>\n<td>File size in bytes  <strong>Example:</strong>   <code>\"size\": \"457\"</code></td>\n</tr>\n<tr>\n<td><strong>content</strong> <br />String</td>\n<td>The file content as base64 encoded string.<br />Note: Base64 encoding makes file sizes roughly 33-37% larger than their original binary representations! <br /> <strong>Example:</strong>  <code>\"content\": \"dGVhbWdhdGU=\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}","avatar"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3c239b80-d686-4bd0-9426-189055e94ac6"},{"name":"Delete a Company","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"46a989fe-7c13-4abc-8114-1600cc9e2d41","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstCompanyId}}","description":"<p>Delete company</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> integer <em>required</em><br /></td>\n<td>Unique key of the Company. <br />Example <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","companies","{{firstCompanyId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"46a989fe-7c13-4abc-8114-1600cc9e2d41"}],"id":"5e8e0748-4ad8-4316-b47f-bd00cfeed3c7","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <em>read only</em></td>\n<td>Unique key of the Company.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Company. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>picture</strong> <br />String</td>\n<td>The company's picture. For the comapny picture is using <code>Picture</code> object. Read more information about Picture object <a href=\"./#2d81f716-0b2e-41eb-bd27-a692cb913a46\">here</a>.</td>\n</tr>\n<tr>\n<td><strong>customerStatus</strong> <br />Object</td>\n<td>The deal’s stage. Read more information about <code>Contact</code> object <a href=\"./#1e203079-0b00-4587-b17d-736416e0aa65\">here</a>.</td>\n</tr>\n<tr>\n<td><strong>prospectStatus</strong> <br /> Object</td>\n<td>The deal’s stage. Read more information about deals <code>Stage</code> object <a href=\"./#1e203079-0b00-4587-b17d-736416e0aa65\">here</a></td>\n</tr>\n<tr>\n<td><strong>owner</strong> <br />Object</td>\n<td>For the owner use User object. Read more information about <code>User</code> object <a href=\"./#8641c2c6-121b-4ba4-8fa2-905a7aeb2be7\">here</a></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br />Boolean</td>\n<td>Indicator of whether or not the deal is important and marked by star.</td>\n</tr>\n<tr>\n<td><strong>source</strong> <br />Object</td>\n<td>The deal’s source. Source are assigned from a common sources list. Read more information about <code>Source</code> object <a href=\"./#97d6de6d-c09a-4f65-8a32-c38639914e5c\">here</a></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br />Object</td>\n<td>The company industry. Industry are assigned from a common industry list. Read more information about <code>Industry</code> object <a href=\"./#e006b7b3-ccf4-4d66-8d86-0c6715f700fe\">here</a></td>\n</tr>\n<tr>\n<td><strong>created</strong> <br />Object <em>read only</em></td>\n<td>User, date and time Company record was created. information is read only, because automatically generated by the server. Read more information about <code>Created</code> object <a href=\"./#7d49fe80-3c31-48d7-addb-aec4afc7a9aa\">here</a></td>\n</tr>\n<tr>\n<td><strong>updated</strong> <br />Object <em>read only</em></td>\n<td>User, date and time Company record was updated. information is read only, because automatically generated by the server. Read more information about <code>Updated</code> object <a href=\"./#aa47147c-6b42-4176-8565-30c52ef76c9a\">here</a></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong> <br />Boolean</td>\n<td>Indicator the company is deleted or not. In responses deleted values are not displayed</td>\n</tr>\n<tr>\n<td><strong>person</strong> <br />Object</td>\n<td>The company primary person. For the company primary person is using Person object. Read more information about company <code>Person</code> object <a href=\"#5641db5a-aa6a-4dda-8935-00c4453336db\">here</a></td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br />Array</td>\n<td>An array of email objects for the company. Read more information about <code>Email</code> object <a href=\"./#c3d764d8-af9b-46e6-be97-cc8d0264a376\">here</a></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br />Array</td>\n<td>An array of phone objects for the company. Read more information about <code>Phone</code> object <a href=\"./#6a9c4d1a-c72a-4409-8041-afe30c64314c\">here</a></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br />Array</td>\n<td>An array of url objects for the company. Read more information about <code>Url</code> object <a href=\"./#c4d7bd78-8b18-4b2e-9505-82f66f786455\">here</a></td>\n</tr>\n<tr>\n<td><strong>addresses</strong> <br />Array</td>\n<td>An array of address objects for the company. Read more information about <code>Address</code> object <a href=\"./#f1511aad-d3dc-4118-98d6-bed247321ea3\">here</a></td>\n</tr>\n<tr>\n<td><strong>customFields</strong> <br />Array</td>\n<td>An array of custom Fields for the company. <code>?embed=customFields</code> Read more information about <code>customFields</code> object <a href=\"./#4a68703e-4ec2-4e60-a941-9142d32d92d5\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"a6ad5ab4-ecda-4388-b001-8f89570c30ec","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cd588fa6-bcd7-4b07-9da4-4c5699cae647","type":"text/javascript","exec":[""]}}],"_postman_id":"5e8e0748-4ad8-4316-b47f-bd00cfeed3c7"},{"name":"04. Pipelines","item":[{"name":"Get Pipeline Collection","event":[{"listen":"test","script":{"id":"bc63f309-f7e0-47c6-b61c-23e7baf176cc","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"pipelineId\", jsonData.data[0].id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('pipelines_schema'))","    }","};","tests[\"Valid Pipeline Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"43821ad0-cf31-443b-9392-4c529ab2d3a6","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/pipelines","description":"<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Pipeline. <br /> <strong>Example:</strong> <code>?name=middle\"</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <ul><li>id</li><li>name</li></ul> Example: <code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","pipelines"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"43821ad0-cf31-443b-9392-4c529ab2d3a6"},{"name":"Get Pipeline","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"stages\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"stages\": {","                    \"type\": \"array\",","                    \"items\": {","                        \"type\": \"object\",","                        \"required\": [\"id\", \"name\", \"probability\"],","                        \"properties\": {","                            \"id\": { \"type\": \"integer\" },","                            \"name\": { \"type\": \"string\" },","                            \"probability\": { \"type\": \"integer\" },","                        },","                        \"additionalProperties\": false","                    }","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Pipeline Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"93729a6c-d342-438a-b2e4-3323c363474a","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/pipelines/{{pipelineId}}","description":"<p>Get a single pipeline</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Pipeline. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","pipelines","{{pipelineId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"90f23546-f955-469e-bdca-d3eacc35f8c3","name":"Get Pipeline","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/pipelines/{{pipelineId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 18 Jul 2018 08:41:08 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9966","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531903500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":5,\"name\":\"Sales\",\"stages\":[{\"id\":2,\"name\":\"First contact\",\"probability\":10},{\"id\":3,\"name\":\"Needs analysis\",\"probability\":20},{\"id\":4,\"name\":\"Offer\",\"probability\":35},{\"id\":5,\"name\":\"Negotiations\",\"probability\":50},{\"id\":6,\"name\":\"Contract\",\"probability\":90}]}}"}],"_postman_id":"93729a6c-d342-438a-b2e4-3323c363474a"}],"id":"93ac6a42-624b-49e8-b613-23c5daacd58d","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported leads statuses properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Read only</strong></td>\n<td>Unique key of the Pipeline.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Pipeline.</td>\n</tr>\n<tr>\n<td><strong>stages</strong> <br />Array</td>\n<td>An array of stages objects for the pipeline. Read more information about <code>Stage</code> object <a href=\"./#c9a8f95b-f0fc-402e-801f-a8b901b6a25c\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"9200aff0-6b36-4ec2-b3c0-c560db121e6e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"eb1485e9-3545-4847-bf41-7b09fa98c6b9","type":"text/javascript","exec":[""]}}],"_postman_id":"93ac6a42-624b-49e8-b613-23c5daacd58d"},{"name":"05. Deals","item":[{"name":"Tagging","item":[{"name":"Attach Deal Tags ","event":[{"listen":"test","script":{"id":"3854135f-6da7-498b-ab5f-cc80e81a2e2e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Resonse Value Test","tests[\"Deal Tag Count\"] = jsonData.count > \"0\";","","var size = jsonData.data.length;","var flag = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data[i].name == \"B2B\") flag = true;","}","","tests[\"Deal Tags\"] = flag === true; ","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Deal Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"fe3753f4-b015-45ba-b933-cc395d4bfc5e","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": \"B2B\"\n}"},"url":"https://api.teamgate.com/v4/deals/{{firstGlobalDealId}}/tags","description":"<p>Attach tags to a deal</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li> <code>\"tags\": \"B2B\"</code></li><li> <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals","{{firstGlobalDealId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"09fca689-1042-4a2c-8a75-cc9218f3c3aa","name":"Attach Deal Tags ","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"B2B","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:08:34 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9946","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"fe3753f4-b015-45ba-b933-cc395d4bfc5e"},{"name":"Update Deal Tags","event":[{"listen":"test","script":{"id":"76062cd6-2b0d-4b0c-a8ce-d49fb9cc5c48","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Repsonse Values Id","tests[\"Deal Tag Count\"] = jsonData.count > \"1\";","","var size = jsonData.data.length;","var flag1 = false;","var flag2 = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data[i].name == \"B2B\") flag1 = true;","    if (jsonData.data[i].name == \"B2C\") flag2 = true;","}","","tests[\"Deal Tags 1\"] = flag1 === true;","tests[\"Deal Tags 2\"] = flag2 === true; ","","//Set New Variable","postman.setGlobalVariable(\"lastTagId\", jsonData.data[0].id);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Deal Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"eed6da19-3bd7-4392-b7d5-054fb2eb3faa","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": [\"B2B\", \"B2C\"]\n}"},"url":"https://api.teamgate.com/v4/deals/{{secondGlobalDealId}}/tags","description":"<p>Detach all Deal Tags, and attach new ones</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li> <code>\"tags\": \"B2B\"</code></li><li> <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals","{{secondGlobalDealId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"d4c1922e-14d6-49f7-b42c-fd7595d79150","name":"Update Deal Tags","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"B2B","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"},{"key":"value[1]","value":"B2C","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:08:42 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9945","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"eed6da19-3bd7-4392-b7d5-054fb2eb3faa"},{"name":"Get Deal Tags","event":[{"listen":"test","script":{"id":"97738e39-dde4-430e-b0f6-3b622b35527d","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Deal Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"f3fac1c7-8780-49ca-a859-1572c26704d5","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/deals/{{secondGlobalDealId}}/tags","description":"<p>Get All Deal Tags</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of deal \"tags\" is used the same parameters as with resource \"Tags\".</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{secondGlobalDealId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"20196a20-9b68-4462-8338-8b2b8371e969","name":"Get Deal Tags","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:08:49 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9944","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"f3fac1c7-8780-49ca-a859-1572c26704d5"},{"name":"Detach Deal Tag","event":[{"listen":"test","script":{"id":"df5a1d5f-52d1-4064-a35c-077cce000c75","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","//tests[\"Tag Count\"] = jsonData.count == 1;","//tests[\"Deal Tag Name\"] = jsonData.data[0].name == \"B2C\";","tests[\"Was Detached Successfully\"] = jsonData.success;","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Deal Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"62706e77-3d3b-4a7f-bc7d-00699c2dde27","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{secondGlobalDealId}}/tags/{{lastTagId}}","description":"<p>Detach single deal tag</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> integer <em>required</em><br /></td>\n<td>Unique key of the Tag of a deal. <br />Example <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals","{{secondGlobalDealId}}","tags","{{lastTagId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"62706e77-3d3b-4a7f-bc7d-00699c2dde27"},{"name":"Detach Deal Tags","event":[{"listen":"test","script":{"id":"ca16bf6d-9050-4e35-9ecc-abc31ee239e1","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","tests[\"Tag Count\"] = jsonData.count === 0;","tests[\"Was Detached Duccessfully\"] = jsonData.success;","","//Schema test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Deal Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"8d3de953-380f-4395-a151-de5bcbf0bfc1","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{secondGlobalDealId}}/tags","description":"<p>Detach all deal tags</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{secondGlobalDealId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d3de953-380f-4395-a151-de5bcbf0bfc1"}],"id":"09fedd42-3bf0-4d75-8780-ba9aa1bcd667","_postman_id":"09fedd42-3bf0-4d75-8780-ba9aa1bcd667","description":""},{"name":"Files","item":[{"name":"Add Deal Files","event":[{"listen":"test","script":{"id":"672336de-ea7b-453e-82fe-67059108592e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","tests[\"File Attached\"] = jsonData.count == \"1\";","tests[\"File Full Name\"] = jsonData.data[0].fullName == \"commercialOffer.txt\";","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"07bfb277-65e7-4f09-a9d9-7334111a9784","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"{{firstGlobalFileId}}","type":"text","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value <br /> integer<br /></td>\n<td><strong>Example:</strong>  <ul><li> <code>\"value\": \"[1, 3, 7, 12]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>"}]},"url":"https://api.teamgate.com/v4/deals/{{firstGlobalDealId}}/files","description":"<p>Attach Deal Files</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> array <br /></td>\n<td><strong>Example:</strong> <code>\"value\": \"[1, 3, 7, 8, 12]\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals","{{firstGlobalDealId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"d172b826-0a74-42bd-9bdd-10bcc0d3c7a8","name":"Add Deal Files","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:09:08 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9941","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"deals\":[{\"id\":2097,\"name\":\"Postman API Test Deal Changed Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=d9f02191469d29a026026fc6e104bc53fb886398\",\"time\":\"2018-05-08T12:09:31+03:00\"}}]}"}],"_postman_id":"07bfb277-65e7-4f09-a9d9-7334111a9784"},{"name":"Edit Deal Files","event":[{"listen":"test","script":{"id":"4951b297-4735-4c08-b51d-37296dd9f69f","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Value Test","tests[\"File Attached\"] = jsonData.count == \"2\";","tests[\"File Full Name1\"] = jsonData.data[0].fullName == \"commercialOffer.txt\";","tests[\"File Full Name2\"] = jsonData.data[1].fullName == \"commercialOffer2.txt\";","","//Set a new Variable","postman.setGlobalVariable(\"lastFileId\", jsonData.data[0].id);","","//SchemaTest","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"fc5a9daf-f90e-47ea-899d-1660d6878584","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": [\"{{secondGlobalFileId}}\", \"{{firstGlobalFileId}}\"]\n}\n"},"url":"https://api.teamgate.com/v4/deals/{{firstGlobalDealId}}/files","description":"<p>Detach all deal files and atach new ones</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> array <br /></td>\n<td><strong>Example:</strong> <code>\"value\": \"[1, 3, 7, 8, 12]\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals","{{firstGlobalDealId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"0b8ff412-3e19-40da-861d-282845e7892d","name":"Edit Deal Files","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"{{secondGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"},{"key":"value[1]","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:09:14 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9940","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"deals\":[{\"id\":2097,\"name\":\"Postman API Test Deal Changed Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=2ffad897e11dc60867c06f9cf2ed3280231d3993\",\"time\":\"2018-05-08T12:09:37+03:00\"}},{\"id\":1557,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-05-08T11:01:24+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"deals\":[{\"id\":2097,\"name\":\"Postman API Test Deal Changed Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1557&hash=c3ab7550bd8dd498acd887f686c17ac33ad2fb06\",\"time\":\"2018-05-08T12:09:37+03:00\"}}]}"}],"_postman_id":"fc5a9daf-f90e-47ea-899d-1660d6878584"},{"name":"Get Deal Files","event":[{"listen":"test","script":{"id":"de3d0dd6-fc76-4b10-a723-d978af350b24","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"d1ba45e3-c011-4b67-be73-db18ce334619","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/deals/{{firstGlobalDealId}}/files","description":"<p>Get all deal files</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"Files\" is used the same parameters as with resource \"Files\".</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{firstGlobalDealId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"17f80928-3209-4376-9f9e-dbe24df7a817","name":"Get Deal Files","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:09:22 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9939","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"deals\":[{\"id\":2097,\"name\":\"Postman API Test Deal Changed Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=444564061c71e79143e0a95c569a7312cc3c55ef\",\"time\":\"2018-05-08T12:09:45+03:00\"}},{\"id\":1557,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-05-08T11:01:24+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"deals\":[{\"id\":2097,\"name\":\"Postman API Test Deal Changed Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1557&hash=5a2f33c7d5524ed653fe2888f551445854125127\",\"time\":\"2018-05-08T12:09:45+03:00\"}}]}"}],"_postman_id":"d1ba45e3-c011-4b67-be73-db18ce334619"},{"name":"Detach Deal File","event":[{"listen":"test","script":{"id":"54714cd5-8633-4ffa-8595-118863c2ebf1","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Was Detached Successfully\"] = jsonData.success;","","//Schema Deal","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"78500cbe-cd75-4a17-b4c0-742737376186","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstGlobalDealId}}/files/{{firstGlobalFileId}}","description":"<p>Detach a single deal file</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> integer <em>required</em><br /></td>\n<td>Unique key of the File of Company. <br />Example <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals","{{firstGlobalDealId}}","files","{{firstGlobalFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"78500cbe-cd75-4a17-b4c0-742737376186"},{"name":"Detach Deal Files","event":[{"listen":"test","script":{"id":"9f395054-cd99-4ef9-99cf-adc04791c3e1","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Response Values Test","tests[\"File Attached\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"e7a7b875-c760-4aa1-ae89-4c5395c0a64d","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstGlobalDealId}}/files","description":"<p>Detach all deal files</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{firstGlobalDealId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e7a7b875-c760-4aa1-ae89-4c5395c0a64d"}],"id":"683d7eb8-f4dc-46f4-9fc5-70a8be2f046b","_postman_id":"683d7eb8-f4dc-46f4-9fc5-70a8be2f046b","description":""},{"name":"Create Deal","event":[{"listen":"test","script":{"id":"f64b1833-2737-4a5e-a2eb-99c37418d91a","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","pm.environment.set(\"pipelineId\", jsonData.data.pipeline.id);","","//Response Values Test","tests[\"Deal Name\"] = jsonData.data.name == \"Postman API Test Deal Name\";","tests[\"Deal Price Value\"] = jsonData.data.price.value == \"2000.00\";","tests[\"Deal Price Currency\"] = jsonData.data.price.currency == \"EUR\";","tests[\"Deal Price Symbol\"] = jsonData.data.price.symbol == \"€\";","tests[\"Deal Price Rate\"] = jsonData.data.price.rate == \"1\";","tests[\"Deal Price Base Value\"] = jsonData.data.price.baseValue == \"2000\";","tests[\"Deal Price Base Currency\"] = jsonData.data.price.baseCurrency == \"EUR\";","tests[\"Deal Price Base Symbol\"] = jsonData.data.price.baseSymbol == \"€\";","","tests[\"Deal Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Deal Source Name\"] = jsonData.data.source.name == \"Website sale\";","tests[\"Deal Source Description\"] = jsonData.data.source.description == \"Selling trough website\";","","tests[\"Deal is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Deal Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Deal Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Deal Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Deal Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Deal Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Deal Estimated Closure Date\"] = jsonData.data.estimatedClosureDate == \"2019-02-27T22:00:00+00:00\";","tests[\"Deal Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Deal Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Deal Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Deal Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Deal Stage ID\"] = jsonData.data.stage.id == pm.environment.get(\"stageId\");","//tests[\"Deal Stage Name\"] = jsonData.data.stage.name == \"Contract\";","//tests[\"Deal Stage Pipeline\"] = jsonData.data.stage.pipeline == \"Sales\";","//tests[\"Deal Stage Probablity\"] = jsonData.data.stage.probability == \"90\";","","tests[\"Deal Pipeline\"] = jsonData.data.pipeline.id == pm.environment.get(\"pipelineId\");","","tests[\"Deal Buyer\"] = jsonData.data.buyer.id == pm.environment.get(\"firstGlobalPersonId\");","","tests[\"Deal Status\"] = jsonData.data.status.name == \"won\";","tests[\"Deal Status Time\"] = jsonData.data.status.time.has(\"T\");","tests[\"Deal Status Changed Time\"] = jsonData.data.status.changed.has(\"T\");","","tests[\"Deal Tags\"] = jsonData.data.tags == \"B2B\";","","//Set Variable","pm.environment.set(\"firstDealId\", jsonData.data.id);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"price\", \"starred\", \"source\", \"isDeleted\", \"created\", \"status\", \"owner\", \"stage\", \"buyer\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"price\": JSON.parse(pm.environment.get('price_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"estimatedClosureDate\": { \"type\": \"string\" },","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                \"buyer\": {","                    \"type\": \"object\",","                    \"required\": [\"id\", \"name\"],","                    \"properties\": {","                        \"id\": { \"type\": \"integer\" },","                        \"name\": { \"type\": \"string\" },","                        \"phone\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"value\": { \"type\": \"string\" },","                                \"type\": { \"type\": \"string\" }","                            }","                        },","                        \"email\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"value\": { \"type\": \"string\" },","                                \"type\": { \"type\": \"string\" }","                            }","                        },","                        \"address\": {","                            \"type\": \"object\",","                            \"required\" : [\"value\", \"type\"],","                            \"properties\": JSON.parse(pm.environment.get('address_value_schema')),","                        },","                        \"url\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"value\": { \"type\": \"string\" },","                                \"type\": { \"type\": \"string\" }","                            }","                        },","                    }","                },","                \"allBuyers\": {","                    \"type\": \"array\",","                    \"items\": {","                        \"type\": \"object\",","                        \"required\": [\"id\", \"name\"],","                        \"properties\": {","                            \"id\": { \"type\": \"integer\" },","                            \"name\": { \"type\": \"string\" },","                            \"email\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"value\": { \"type\": \"string\" },","                                    \"type\": { \"type\": \"string\" }","                                }","                            },","                            \"address\": {","                                \"type\": \"object\",","                                \"required\" : [\"value\", \"type\"],","                                \"properties\": JSON.parse(pm.environment.get('address_value_schema')),","                            }","                        }","                    }","                },","                \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                \"tags\": {\"type\": \"array\"}","            },","            \"additionalProperties\": true","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Single Deal Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"7cf909d7-b66c-4ddb-ac3b-bb800f8b4ae5","request":{"method":"POST","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Deal Name\",\n  \"buyerId\": \"{{firstGlobalPersonId}}\",\n  \"stageId\": \"{{stageId}}\",\n  \"cart\":{\n    \"discount\":{\n      \"value\": \"-50\",\n      \"type\": \"fixed\"\n    },\n    \"items\": [{\n      \"id\": \"{{firstGlobalProductId}}\",\n      \"quantity\": \"2\"\n    }]\n  },\n  \"status\" : \"won\",\n  \"priceValue\": \"2000\",\n  \"priceCurrency\": \"EUR\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"ownerRandom\": {\n  \t\t\"0\": \"{{firstUserId}}\",\n  \t\t\"1\": \"{{secondUserId}}\",\n\t\t\"groups\":[\"{{groupId}}\"]\n  },\n  \"source\": \"Website sale\",\n  \"sourceDescription\": \"Selling trough website\",\n  \"tags\": \"B2B\",\n  \"estimatedClosureDate\": \"2019-02-28T00:00:00+02:00\",\n  \"customFields\": {\n    \"31\":\"103\"\n  }\n}"},"url":"https://api.teamgate.com/v4/deals?embed=customFields","description":"<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>buyerId</strong> <br />integer <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"buyerId\": \"5\"</code></td>\n</tr>\n<tr>\n<td><strong>stageId</strong> <br />Integer</td>\n<td><strong>Example:</strong> <code>\"stageId\": \"5\"</code></td>\n</tr>\n<tr>\n<td><strong>cart</strong> <br /> Object</td>\n<td>Lets you add products to the deal. <strong>Example:</strong> <code>\"cart\":\"discount\": {\"value\": \"-50\",\"type\": \"fixed\"},\"items\": [{\"id\":5},{\"id\":25}]</code></td>\n</tr>\n<tr>\n<td><strong>cart.discount</strong> <br /> Object</td>\n<td>Lets set discount on all cart. Discount type can be: <code>fixed</code> or <code>percentage</code> (abbr. <code>perc</code> also works as a type). <strong>Example:</strong> <code>\"discount\": {\"value\": \"-50\",\"type\": \"fixed\"}</code> or <code>\"discount\": {\"value\": \"-10,0000\",\"type\": \"perc\"}</code></td>\n</tr>\n<tr>\n<td><strong>cart.items</strong> <br /> Object</td>\n<td>specifies products per deal same as in Cart endpoint. <strong>Example:</strong> <code>\"items\": [{\"id\":20,\"price\":{\"currency\": \"EUR\",\"value\": \"10000.0000\"},\"discount\":{\"type\":\"percentage\",\"value\": \"20.0000\"},\"quantity\": 2}, {\"id\":25,\"price\":{\"currency\": \"EUR\",\"value\": \"50.0000\"},\"discount\":{\"type\":\"fixed\",\"value\": \"20.0000\"},\"quantity\": 1}]</code></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br /> String</td>\n<td>Possible Values: <ul><li>  <code>active</code> - the deal is open </li><li> <code>won</code> - the deal is won </li><li> <code>lost</code> - the deal is lost </li><li> <code>postponed</code> - the deal is postponed </li></ul></td>\n</tr>\n<tr>\n<td><strong>priceValue</strong> <br />Float</td>\n<td><strong>Example:</strong> <code>\"priceValue\": \"1725.50\"</code></td>\n</tr>\n<tr>\n<td><strong>priceCurrency</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"priceCurrency\": \"USD\"</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>  <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>   <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong>   <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong> <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>estimatedClosureDate</strong> <br /> Date</td>\n<td><strong>Example:</strong> <code>\"estimatedClosureDate\": \"2017-03-10T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>actualClosureDate</strong> <br /> Date</td>\n<td><strong>Example:</strong> <code>\"actualClosureDate\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>createdDate</strong> <br /> Date</td>\n<td><strong>Example:</strong> <code>\"createdDate\": \"2017-02-20T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>customFields</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li>Example for select (fieldID : valueId): <code>\"customFields\": \"{'3':'5'}\"</code></li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals"],"host":["api","teamgate","com"],"query":[{"key":"embed","value":"customFields"}],"variable":[]}},"response":[{"id":"06ddc22f-4545-4408-b962-59017fbc5310","name":"Create Deal","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Deal Name\",\n  \"buyerId\": \"{{firstGlobalPersonId}}\",\n  \"stageId\": \"6\",\n  \n  \"cart\":{\n  \t\"discount\":{\n  \t\t\"value\": \"-50\",\n  \t\t\"type\": \"fixed\"\n  \t},\n  \t\"items\": [{\n  \t\t\"id\": \"821\",\n  \t\t\"quantity\": \"2\"\n  \t\t}]\n  },\n  \n  \"status\" : \"won\",\n  \"priceValue\": \"2000\",\n  \"priceCurrency\": \"EUR\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"source\": \"Website sale\",\n  \"sourceDescription\": \"Selling trough website\",\n  \"tags\": \"B2B\",\n  \"estimatedClosureDate\": \"2019-02-28T00:00:00+02:00\",\n  \"customFields\": {\n  \t\"31\":\"103\"\n  }\n}"},"url":"https://api.teamgate.com/v4/deals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 27 Jul 2018 06:07:23 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9977","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532672100","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":4127,\"name\":\"Postman API Test Deal Name\",\"price\":{\"value\":2000,\"currency\":\"EUR\",\"symbol\":\"\\u20ac\",\"rate\":1,\"baseValue\":2000,\"baseCurrency\":\"EUR\",\"baseSymbol\":\"\\u20ac\"},\"starred\":\"yes\",\"source\":{\"id\":155,\"name\":\"Website sale\",\"description\":\"Selling trough website\"},\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-07-27T06:07:54+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"estimatedClosureDate\":\"2019-02-27T22:00:00+00:00\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"stage\":{\"id\":6,\"name\":\"Contract\",\"pipeline\":\"Sales\",\"probability\":90},\"pipeline\":{\"id\":5,\"name\":\"Sales\",\"stage\":{\"id\":6,\"name\":\"Contract\",\"probability\":90}},\"buyer\":{\"id\":10203,\"name\":\"John\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"}},\"status\":{\"name\":\"won\",\"time\":\"2018-07-27T06:07:54+00:00\",\"changed\":\"2018-07-27T06:07:54+00:00\"},\"tags\":[\"B2B\"]}}"}],"_postman_id":"7cf909d7-b66c-4ddb-ac3b-bb800f8b4ae5"},{"name":"Get Deals Collection","event":[{"listen":"test","script":{"id":"e8754202-8c71-4bdb-b622-c37e17f30c3f","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"price\", \"starred\", \"source\", \"created\", \"isDeleted\", \"status\", \"stage\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"price\": JSON.parse(pm.environment.get('price_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\":  JSON.parse(pm.environment.get('source_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"estimatedClosureDate\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                    \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                    \"buyer\": {","                        \"type\": \"object\",","                        \"required\": [\"id\", \"name\"],","                        \"properties\": {","                            \"id\": { \"type\": \"integer\" },","                            \"name\": { \"type\": \"string\" },","                            \"email\": {","                                \"type\": \"object\",","                                \"properties\": {","                                    \"value\": { \"type\": \"string\" },","                                    \"type\": { \"type\": \"string\" }","                                }","                            },","                            \"address\": {","                                \"type\": \"object\",","                                \"required\" : [\"value\", \"type\"],","                                \"properties\": {","                                    \"value\": JSON.parse(pm.environment.get('address_value_schema')),","                                },","                            },","                        },","                    },","                    \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                    \"tags\": {\"type\": \"array\"}","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": true","    }","};","","tests[\"Valid Deals Search Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"8f23eadd-e356-4b45-bdbe-b1122da6f762","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/deals?limit=15","description":"<p>Get a list of all deals</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Deal. You can search by full name or by fragment of name. Maximum length is 255 characters. <br />Example for strict search: <code>?name=Deal%20No:%205</code> <br />And search by text fragment: <code>?name[like]=Deal</code></td>\n</tr>\n<tr>\n<td><strong>estimatedClosureDate</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>createdUserId</strong> <br /> Intiger</td>\n<td>Unique identifier of the user who created the company. <br /><strong>Example</strong> <code>?createdUserId=6</code></td>\n</tr>\n<tr>\n<td><strong>updatedTime</strong> <br /> DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>updatedUserId</strong> <br /> Intiger</td>\n<td>Unique identifier of the user who updated the company. <br /><strong>Example</strong> <code>?updatedUserId=6</code></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Intiger</td>\n<td>Unique identifier of the user who is company owner. <br /><strong>Example</strong> <code>?ownerId=6</code></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br /> String</td>\n<td>... <br /><strong>Example</strong> <code>?status=won</code></td>\n</tr>\n<tr>\n<td><strong>statusDate</strong> <br /> DateTime</td>\n<td>... <br /><strong>Example</strong> <code>?statusDate=2016-10-01T10:00:00+03:00</code></td>\n</tr>\n<tr>\n<td><strong>statusChangedTime</strong> <br /> DateTime</td>\n<td>... <br /><strong>Example</strong> <code>?statusChangedTime=2016-10-01T10:00:00+03:00</code></td>\n</tr>\n<tr>\n<td><strong>stageId</strong> <br /> Integer</td>\n<td>... <br /><strong>Example</strong> <code>?stageId=3</code></td>\n</tr>\n<tr>\n<td><strong>priceValue</strong> <br /> Number</td>\n<td>... <br /><strong>Example</strong> <code>?priceValue=1500</code></td>\n</tr>\n<tr>\n<td><strong>priceCurrency</strong> <br /> String</td>\n<td>... <br /><strong>Example</strong> <code>?priceCurrency=EUR</code></td>\n</tr>\n<tr>\n<td><strong>priceBaseValue</strong> <br /> Number</td>\n<td>... <br /><strong>Example</strong> <code>?priceBaseValue=1500</code></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong> <br /> Boolean</td>\n<td>Indicator the company is deleted or not. In responses deleted values are not displayed <br /><br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul>  <strong>Example</strong> <code>?priceBaseValue=1500</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br />Boolean</td>\n<td>Indicator the deal is starred or not. <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> Example: <code>?starred=yes</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br />String</td>\n<td>Source of the deal. <br />Example:  <code>?source=google.com</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br />Intiger</td>\n<td>Unique identifier of the source. <br />Example:  <code>?sourceId=123</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br /> String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <br /> Possible values: <ul><li> id </li><li> name </li><li> createdTime </li><li> updatedTime </li><li> estimatedClosureDate </li></ul> Example: <code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals"],"host":["api","teamgate","com"],"query":[{"description":{"content":"<p>How many items per page should be shown</p>\n","type":"text/plain"},"key":"limit","value":"15"},{"disabled":true,"description":{"content":"<p>Can embed additional info related to deals: <code>customFields</code>, <code>cart</code>, <code>products</code>, <code>files</code> as single embed or multiple as comma separated embed</p>\n","type":"text/plain"},"key":"embed","value":"customFields"},{"disabled":true,"description":{"content":"<p>How many items from the start of the list by given criteria should be skipped</p>\n","type":"text/plain"},"key":"offset","value":"18"},{"disabled":true,"description":{"content":"<p>Fetch specific ids</p>\n","type":"text/plain"},"key":"ids","value":"4,40"},{"disabled":true,"description":{"content":"<p>Filter by substring in name</p>\n","type":"text/plain"},"key":"name[like]","value":"pagal"},{"disabled":true,"description":{"content":"<p>ISO 8601 Datetime or any other listed <a href=\"https://www.php.net/manual/en/datetime.format.php#refsect1-datetime.format-parameters\">here</a></p>\n","type":"text/plain"},"key":"createdTime[lte]","value":"2022-06-01 20:20:00"},{"disabled":true,"description":{"content":"<p>User id that created the deal</p>\n","type":"text/plain"},"key":"createdUserId","value":"2"},{"disabled":true,"description":{"content":"<p>ISO 8601 Datetime or any other listed <a href=\"https://www.php.net/manual/en/datetime.format.php#refsect1-datetime.format-parameters\">here</a></p>\n","type":"text/plain"},"key":"estimatedClosureDate[lte]","value":"2022-11-08 07:18:26"},{"disabled":true,"description":{"content":"<p>Filter by price</p>\n","type":"text/plain"},"key":"estimatedClosureDate[operator]","value":"and"},{"disabled":true,"description":{"content":"<p>ISO 8601 Datetime or any other listed <a href=\"https://www.php.net/manual/en/datetime.format.php#refsect1-datetime.format-parameters\">here</a></p>\n","type":"text/plain"},"key":"estimatedClosureDate[gte]","value":"2019-01-08 07:18:26"},{"disabled":true,"key":"priceValue[gte]","value":"100"},{"disabled":true,"key":"priceCurrency","value":""},{"disabled":true,"key":"priceBaseValue","value":""},{"disabled":true,"key":"costValue","value":""},{"disabled":true,"key":"costCurrency","value":""},{"disabled":true,"description":{"content":"<p>Filter by specific deal status</p>\n","type":"text/plain"},"key":"costBaseValue","value":""},{"disabled":true,"description":{"content":"<p>Filter by stage (stage Id is unique per all pipelines, so you don't need to filter by pipeline)</p>\n","type":"text/plain"},"key":"ownerId","value":""},{"disabled":true,"key":"status","value":"active"},{"disabled":true,"key":"stageId","value":"4"},{"disabled":true,"key":"isDeleted","value":""},{"disabled":true,"key":"buyerId","value":""},{"disabled":true,"key":"statusDate","value":""},{"disabled":true,"key":"starred","value":""},{"disabled":true,"key":"statusChanged","value":""},{"disabled":true,"key":"stageChanged","value":""},{"disabled":true,"description":{"content":"<p>Single or comma separated list of responsible for deal users ids</p>\n","type":"text/plain"},"key":"sourceId","value":""},{"disabled":true,"description":{"content":"<p>Which fields should be shown in the results (id will allways be shown)</p>\n","type":"text/plain"},"key":"source","value":""},{"disabled":true,"key":"responsibles","value":"2,6"},{"disabled":true,"key":"fields","value":"name,price,cost"}],"variable":[]}},"response":[{"id":"6add7d0b-f824-49ea-b79d-287a0d26720e","name":"Get Deals Collection","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"url":{"raw":"https://api.teamgate.com/v4/deals?limit=15&stageId=4&ids=4,40&embed=customFields","protocol":"https","host":["api","teamgate","com"],"path":["v4","deals"],"query":[{"key":"limit","value":"15"},{"key":"stageId","value":"4","description":"Filter by stage (stage Id is unique per all pipelines, so you don't need to filter by pipeline)","type":"text"},{"key":"ids","value":"4,40","description":"Fetch specific ids","type":"text"},{"key":"embed","value":"customFields"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 Jun 2022 09:22:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Account-Id","value":"teamgateapitesti"},{"key":"X-Rate-Limit-Limit","value":"10000"},{"key":"X-Rate-Limit-Remaining","value":"9995"},{"key":"X-Rate-Limit-Reset","value":"1654594200"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=QvDaRuHQX26wg95ZPdOKlrrXlvucTyln7qeam0gFAmjC1AID0%2F8b%2Bx25faL3BtYb4JNl%2B3PtRf5ZjWRonooX%2BGr6Q4Ew1K5%2FfXcEoEkZwuo2dG%2FAA5VWdcW5htwsoQhdqRvo\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7178525f8b037278-HAM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"count\": 1,\n    \"nextPage\": null,\n    \"data\": [\n        {\n            \"id\": 4,\n            \"name\": \"Konsultacijos\",\n            \"price\": {\n                \"value\": 1009,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 1009,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 84,\n                \"name\": \"Registracija svetainėje\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2019-01-16T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-02-15T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 2,\n                \"name\": \"Postman\",\n                \"surname\": \"Monitoring\",\n                \"username\": \"developers@teamgate.com\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"buyer\": {\n                \"id\": 4,\n                \"name\": \"UAB \\\"Labora\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika19.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Gedimino pr. 11B\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01105\",\n                        \"state\": \"Lithuania\",\n                        \"latitude\": \"33.315494\",\n                        \"longitude\": \"-86.800617\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-15T07:18:26+00:00\",\n                \"changed\": null\n            },\n            \"customFields\": [\n                {\n                    \"id\": 16,\n                    \"value\": \"Duomenų perkėlimas\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"358a90df-4515-4bda-a5a0-5f546c731b0c","name":"Get Active Deals that belong to Offer Stage and Sales Pipeline","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"url":{"raw":"https://api.teamgate.com/v4/deals?limit=15&stageId=4&status=active","protocol":"https","host":["api","teamgate","com"],"path":["v4","deals"],"query":[{"key":"limit","value":"15","description":"How many items per page should be shown"},{"key":"embed","value":"customFields","disabled":true},{"key":"offset","value":"18","description":"How many items from the start of the list by given criteria should be skipped","type":"text","disabled":true},{"key":"ids","value":"4,40","description":"Fetch specific ids","type":"text","disabled":true},{"key":"stageId","value":"4","description":"Filter by stage (stage Id is unique per all pipelines, so you don't need to filter by pipeline)"},{"key":"status","value":"active"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 Jun 2022 10:04:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Account-Id","value":"teamgateapitesti"},{"key":"X-Rate-Limit-Limit","value":"10000"},{"key":"X-Rate-Limit-Remaining","value":"9998"},{"key":"X-Rate-Limit-Reset","value":"1654596900"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Goe47zWz%2FygNTQYdQ3MJyI5mvj5rVO9bwASRDoEkBOs%2BqxaMGK1xAG2aLAsYNZAiGgb94VCBiLQs%2BE4e9t0u6AeFTfeZlKFYfh2jfWRE%2FAaKLMUUkmqeaXwtoASZ4aLu9ixH\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"71788ff37af07276-HAM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"count\": 6,\n    \"nextPage\": null,\n    \"data\": [\n        {\n            \"id\": 4,\n            \"name\": \"Konsultacijos\",\n            \"price\": {\n                \"value\": 1009,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 1009,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 84,\n                \"name\": \"Registracija svetainėje\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2019-01-16T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-02-15T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 2,\n                \"name\": \"Postman\",\n                \"surname\": \"Monitoring\",\n                \"username\": \"developers@teamgate.com\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"buyer\": {\n                \"id\": 4,\n                \"name\": \"UAB \\\"Labora\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika19.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Gedimino pr. 11B\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01105\",\n                        \"state\": \"Lithuania\",\n                        \"latitude\": \"33.315494\",\n                        \"longitude\": \"-86.800617\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-15T07:18:26+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 25,\n            \"name\": \"Seminaras 40 asmenų\",\n            \"price\": {\n                \"value\": 470,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 470,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 2,\n                \"name\": \"Šaltas skambutis\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-12T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 4,\n                    \"name\": \"Laima\",\n                    \"surname\": \"Mandagytė\",\n                    \"username\": \"l.mandagyte@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/small.jpg?timestamp=1547623111\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/middle.jpg?timestamp=1547623111\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/big.jpg?timestamp=1547623111\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-12T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 4,\n                \"name\": \"Laima\",\n                \"surname\": \"Mandagytė\",\n                \"username\": \"l.mandagyte@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/small.jpg?timestamp=1547623111\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/middle.jpg?timestamp=1547623111\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/big.jpg?timestamp=1547623111\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"buyer\": {\n                \"id\": 5,\n                \"name\": \"MB \\\"Artumas\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika28.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"A. Juozapavičiaus pr. 7R\",\n                        \"city\": \"Kaunas\",\n                        \"zip\": \"LT-45251\",\n                        \"latitude\": \"54.865271\",\n                        \"longitude\": \"23.906670\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:27+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 32,\n            \"name\": \"50/50% KK-311 TS226\",\n            \"price\": {\n                \"value\": 1323,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 1323,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 4,\n                \"name\": \"Išorinė rekomendacija\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-11T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 7,\n                    \"name\": \"Romas\",\n                    \"surname\": \"Ramanauskas\",\n                    \"username\": \"r.ramanauskis@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/small.jpg?timestamp=1547701295\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/middle.jpg?timestamp=1547701295\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/big.jpg?timestamp=1547701295\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-11T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 7,\n                \"name\": \"Romas\",\n                \"surname\": \"Ramanauskas\",\n                \"username\": \"r.ramanauskis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/small.jpg?timestamp=1547701295\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/middle.jpg?timestamp=1547701295\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/big.jpg?timestamp=1547701295\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"buyer\": {\n                \"id\": 2,\n                \"name\": \"UAB \\\"Šiaudinėj pastogėj\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika15.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Tauro g. 10\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01114\",\n                        \"latitude\": \"54.686093\",\n                        \"longitude\": \"25.271859\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:27+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 11196,\n            \"name\": \"Postman API Test Deal Changed Name\",\n            \"price\": {\n                \"value\": 2050.33,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 2050.33,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 91,\n                \"name\": \"Postman Source Change\",\n                \"description\": \"Postman Source Change Description Test\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2022-06-06T14:50:11+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-03-04T22:00:00+00:00\",\n            \"owner\": {\n                \"id\": 3,\n                \"name\": \"Jonas\",\n                \"surname\": \"Petrauskis\",\n                \"username\": \"j.petrauskis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/small.jpg?timestamp=1547623111\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/middle.jpg?timestamp=1547623111\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/big.jpg?timestamp=1547623111\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2022-06-06T14:50:31+00:00\",\n                \"changed\": \"2022-06-06T14:50:31+00:00\"\n            },\n            \"tags\": [\n                \"B2C\"\n            ]\n        },\n        {\n            \"id\": 11199,\n            \"name\": \"Postman API Test Deal Changed Name\",\n            \"price\": {\n                \"value\": 2050.33,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 2050.33,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 91,\n                \"name\": \"Postman Source Change\",\n                \"description\": \"Postman Source Change Description Test\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2022-06-06T14:59:59+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-03-04T22:00:00+00:00\",\n            \"owner\": {\n                \"id\": 3,\n                \"name\": \"Jonas\",\n                \"surname\": \"Petrauskis\",\n                \"username\": \"j.petrauskis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/small.jpg?timestamp=1547623111\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/middle.jpg?timestamp=1547623111\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/big.jpg?timestamp=1547623111\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"buyer\": {\n                \"id\": 33478,\n                \"name\": \"Postman API Test Second Person Name\",\n                \"phone\": {\n                    \"value\": \"+44 123 456 7890\",\n                    \"type\": \"work\"\n                },\n                \"email\": {\n                    \"value\": \"john@example.net\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Long st. 12-34\",\n                        \"city\": \"London\",\n                        \"zip\": \"123456\",\n                        \"state\": \"London region\",\n                        \"latitude\": \"51.529610\",\n                        \"longitude\": \"-0.077815\",\n                        \"country\": {\n                            \"iso\": \"GBR\",\n                            \"name\": \"Didžioji Britanija\"\n                        }\n                    },\n                    \"type\": \"billing\"\n                },\n                \"url\": {\n                    \"value\": \"http://example.com\",\n                    \"type\": \"website\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2022-06-06T15:15:06+00:00\",\n                \"changed\": \"2022-06-06T15:15:06+00:00\"\n            },\n            \"tags\": [\n                \"B2C\"\n            ]\n        },\n        {\n            \"id\": 11202,\n            \"name\": \"Postman API Test Deal Changed Name\",\n            \"price\": {\n                \"value\": 2050.33,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 2050.33,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 91,\n                \"name\": \"Postman Source Change\",\n                \"description\": \"Postman Source Change Description Test\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2022-06-06T18:05:27+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-03-04T22:00:00+00:00\",\n            \"owner\": {\n                \"id\": 3,\n                \"name\": \"Jonas\",\n                \"surname\": \"Petrauskis\",\n                \"username\": \"j.petrauskis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/small.jpg?timestamp=1547623111\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/middle.jpg?timestamp=1547623111\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/big.jpg?timestamp=1547623111\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"buyer\": {\n                \"id\": 33478,\n                \"name\": \"Postman API Test Second Person Name\",\n                \"phone\": {\n                    \"value\": \"+44 123 456 7890\",\n                    \"type\": \"work\"\n                },\n                \"email\": {\n                    \"value\": \"john@example.net\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Long st. 12-34\",\n                        \"city\": \"London\",\n                        \"zip\": \"123456\",\n                        \"state\": \"London region\",\n                        \"latitude\": \"51.529610\",\n                        \"longitude\": \"-0.077815\",\n                        \"country\": {\n                            \"iso\": \"GBR\",\n                            \"name\": \"Didžioji Britanija\"\n                        }\n                    },\n                    \"type\": \"billing\"\n                },\n                \"url\": {\n                    \"value\": \"http://example.com\",\n                    \"type\": \"website\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2022-06-06T20:16:09+00:00\",\n                \"changed\": \"2022-06-06T20:16:09+00:00\"\n            },\n            \"tags\": [\n                \"B2C\"\n            ]\n        }\n    ]\n}"},{"id":"95ecba73-61ad-4b44-8a57-ca6dc90f146a","name":"Get Deals which name contains keyword pagal","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"url":{"raw":"https://api.teamgate.com/v4/deals?limit=15&name[like]=pagal","protocol":"https","host":["api","teamgate","com"],"path":["v4","deals"],"query":[{"key":"limit","value":"15","description":"How many items per page should be shown"},{"key":"embed","value":"customFields","description":"Show custom fields in results collection per item","disabled":true},{"key":"offset","value":"18","description":"How many items from the start of the list by given criteria should be skipped","type":"text","disabled":true},{"key":"ids","value":"4,40","description":"Fetch specific ids","type":"text","disabled":true},{"key":"stageId","value":"4","description":"Filter by stage (stage Id is unique per all pipelines, so you don't need to filter by pipeline)","disabled":true},{"key":"status","value":"active","description":"Filter by specific deal status","disabled":true},{"key":"name[like]","value":"pagal","description":"Filter by substring in name"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 Jun 2022 10:49:19 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Account-Id","value":"teamgateapitesti"},{"key":"X-Rate-Limit-Limit","value":"10000"},{"key":"X-Rate-Limit-Remaining","value":"9992"},{"key":"X-Rate-Limit-Reset","value":"1654599600"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=MS7EqUl0zaBtEMtY8fuzX%2FMon9Hp1MknuyN4%2Bm2whAIZKDEE%2FYfNoU1KRh1z6xl5Woe4K5pTzAbGumLM86TK1PFFTk8qm%2FlIJ0NhSB4fvhWInJumYhF6pzNKKv0spgkneCL1\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7178d20758b77272-HAM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"count\": 3,\n    \"nextPage\": null,\n    \"data\": [\n        {\n            \"id\": 7,\n            \"name\": \"Gamyba pagal spec. poreikį\",\n            \"price\": {\n                \"value\": 881,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 881,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 4,\n                \"name\": \"Išorinė rekomendacija\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2019-01-06T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 5,\n                    \"name\": \"Mantas\",\n                    \"surname\": \"Kandulis\",\n                    \"username\": \"m.kandulis@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/small.jpg?timestamp=1547716167\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/middle.jpg?timestamp=1547716167\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/big.jpg?timestamp=1547716167\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-02-03T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 5,\n                \"name\": \"Mantas\",\n                \"surname\": \"Kandulis\",\n                \"username\": \"m.kandulis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/small.jpg?timestamp=1547716167\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/middle.jpg?timestamp=1547716167\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/big.jpg?timestamp=1547716167\"\n                }\n            },\n            \"stage\": {\n                \"id\": 9,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Insights analizė\",\n                \"probability\": 30\n            },\n            \"pipeline\": {\n                \"id\": 6,\n                \"name\": \"Insights analizė\",\n                \"stage\": {\n                    \"id\": 9,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 30\n                }\n            },\n            \"buyer\": {\n                \"id\": 2,\n                \"name\": \"UAB \\\"Šiaudinėj pastogėj\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika15.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Tauro g. 10\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01114\",\n                        \"latitude\": \"54.686093\",\n                        \"longitude\": \"25.271859\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"lost\",\n                \"time\": \"2019-04-16T21:00:00+00:00\",\n                \"changed\": \"2019-04-17T11:25:05+00:00\"\n            },\n            \"loss\": [\n                {\n                    \"id\": 67,\n                    \"name\": \"Per didelė kaina\"\n                }\n            ]\n        },\n        {\n            \"id\": 20,\n            \"name\": \"Gamyba pagal spec. poreikį\",\n            \"price\": {\n                \"value\": 981,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 981,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 79,\n                \"name\": \"Unspecified\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-19T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 5,\n                    \"name\": \"Mantas\",\n                    \"surname\": \"Kandulis\",\n                    \"username\": \"m.kandulis@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/small.jpg?timestamp=1547716167\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/middle.jpg?timestamp=1547716167\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/big.jpg?timestamp=1547716167\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-17T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 5,\n                \"name\": \"Mantas\",\n                \"surname\": \"Kandulis\",\n                \"username\": \"m.kandulis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/small.jpg?timestamp=1547716167\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/middle.jpg?timestamp=1547716167\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/big.jpg?timestamp=1547716167\"\n                }\n            },\n            \"stage\": {\n                \"id\": 2,\n                \"name\": \"Pirminis kontaktas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 10\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 2,\n                    \"name\": \"Pirminis kontaktas\",\n                    \"probability\": 10\n                }\n            },\n            \"buyer\": {\n                \"id\": 5,\n                \"name\": \"MB \\\"Artumas\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika28.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"A. Juozapavičiaus pr. 7R\",\n                        \"city\": \"Kaunas\",\n                        \"zip\": \"LT-45251\",\n                        \"latitude\": \"54.865271\",\n                        \"longitude\": \"23.906670\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:26+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 34,\n            \"name\": \"Gamyba pagal spec. poreikį\",\n            \"price\": {\n                \"value\": 618,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 618,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 1,\n                \"name\": \"Reklama\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-29T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-28T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 2,\n                \"name\": \"Postman\",\n                \"surname\": \"Monitoring\",\n                \"username\": \"developers@teamgate.com\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                }\n            },\n            \"stage\": {\n                \"id\": 2,\n                \"name\": \"Pirminis kontaktas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 10\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 2,\n                    \"name\": \"Pirminis kontaktas\",\n                    \"probability\": 10\n                }\n            },\n            \"buyer\": {\n                \"id\": 4,\n                \"name\": \"UAB \\\"Labora\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika19.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Gedimino pr. 11B\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01105\",\n                        \"state\": \"Lithuania\",\n                        \"latitude\": \"33.315494\",\n                        \"longitude\": \"-86.800617\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"lost\",\n                \"time\": \"2019-01-16T07:18:27+00:00\",\n                \"changed\": \"2019-01-16T07:18:27+00:00\"\n            },\n            \"loss\": [\n                {\n                    \"id\": 67,\n                    \"name\": \"Per didelė kaina\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"870919c8-f148-42ad-9f29-f21e86f25044","name":"Get Deals Collection Between estimated Closer Date of 2019-01-08 07:18:26 and 2022-11-08 07:18:26","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"url":{"raw":"https://api.teamgate.com/v4/deals?limit=15&estimatedClosureDate[lte]=2022-11-08 07:18:26&estimatedClosureDate[operator]=and&estimatedClosureDate[gte]=2019-01-08 07:18:26","protocol":"https","host":["api","teamgate","com"],"path":["v4","deals"],"query":[{"key":"limit","value":"15","description":"How many items per page should be shown"},{"key":"embed","value":"customFields","type":"text","description":"Show custom fields in results collection per item","disabled":true},{"key":"offset","value":"18","type":"text","description":"How many items from the start of the list by given criteria should be skipped","disabled":true},{"key":"ids","value":"4,40","type":"text","description":"Fetch specific ids","disabled":true},{"key":"name[like]","value":"pagal","type":"text","description":"Filter by substring in name","disabled":true},{"key":"createdTime[lte]","value":"2022-06-01 20:20:00","type":"text","description":"ISO 8601 Datetime or any other listed [here](https://www.php.net/manual/en/datetime.format.php#refsect1-datetime.format-parameters)","disabled":true},{"key":"createdUserId","value":"2","type":"text","description":"User id that created the deal","disabled":true},{"key":"estimatedClosureDate[lte]","value":"2022-11-08 07:18:26","description":"ISO 8601 Datetime or any other listed [here](https://www.php.net/manual/en/datetime.format.php#refsect1-datetime.format-parameters)"},{"key":"estimatedClosureDate[operator]","value":"and","description":"Filter by price"},{"key":"estimatedClosureDate[gte]","value":"2019-01-08 07:18:26","description":"ISO 8601 Datetime or any other listed [here](https://www.php.net/manual/en/datetime.format.php#refsect1-datetime.format-parameters)"},{"key":"priceValue[gte]","value":"100","type":"text","disabled":true},{"key":"priceCurrency","value":"","type":"text","disabled":true},{"key":"priceBaseValue","value":"","type":"text","disabled":true},{"key":"costValue","value":"","type":"text","disabled":true},{"key":"costCurrency","value":"","type":"text","disabled":true},{"key":"costBaseValue","value":"","type":"text","description":"Filter by specific deal status","disabled":true},{"key":"ownerId","value":"","type":"text","description":"Filter by stage (stage Id is unique per all pipelines, so you don't need to filter by pipeline)","disabled":true},{"key":"status","value":"active","type":"text","disabled":true},{"key":"stageId","value":"4","type":"text","disabled":true},{"key":"isDeleted","value":"","type":"text","disabled":true},{"key":"buyerId","value":"","type":"text","disabled":true},{"key":"statusDate","value":"","type":"text","disabled":true},{"key":"starred","value":"","type":"text","disabled":true},{"key":"statusChanged","value":"","type":"text","disabled":true},{"key":"stageChanged","value":"","type":"text","disabled":true},{"key":"sourceId","value":"","type":"text","description":"Single or comma separated list of responsible for deal users ids","disabled":true},{"key":"source","value":"","type":"text","description":"Which fields should be shown in the results (id will allways be shown)","disabled":true},{"key":"responsibles","value":"2,6","type":"text","disabled":true},{"key":"fields","value":"name,price,cost","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 08 Jun 2022 17:52:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Account-Id","value":"teamgateapitesti"},{"key":"X-Rate-Limit-Limit","value":"10000"},{"key":"X-Rate-Limit-Remaining","value":"9991"},{"key":"X-Rate-Limit-Reset","value":"1654711200"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dvv158XqQurrorNR9QzXoF6m3U1RVt%2FBADWRZZiZ80nZkyuR6M9EpBNmRBeZa6ymXAazMauRCeJV6F5wJXxdZHAEmqdwZM4A%2BMYHlzAEBrmcIMmFhi8%2BVilJVc4A2jM06CVA\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"71837bf978ccb7d6-AMS"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"count\": 335,\n    \"nextPage\": \"https://api.teamgate.com/v4/deals?limit=15&estimatedClosureDate%5Blte%5D=2022-11-08+07%3A18%3A26&estimatedClosureDate%5Boperator%5D=and&estimatedClosureDate%5Bgte%5D=2019-01-08+07%3A18%3A26&offset=15\",\n    \"data\": [\n        {\n            \"id\": 4,\n            \"name\": \"Konsultacijos\",\n            \"price\": {\n                \"value\": 1009,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 1009,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 84,\n                \"name\": \"Registracija svetainėje\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2019-01-16T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-02-15T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 2,\n                \"name\": \"Postman\",\n                \"surname\": \"Monitoring\",\n                \"username\": \"developers@teamgate.com\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"buyer\": {\n                \"id\": 4,\n                \"name\": \"UAB \\\"Labora\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika19.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Gedimino pr. 11B\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01105\",\n                        \"state\": \"Lithuania\",\n                        \"latitude\": \"33.315494\",\n                        \"longitude\": \"-86.800617\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-15T07:18:26+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 5,\n            \"name\": \"Skambučių centro paslauga (30 d.)\",\n            \"price\": {\n                \"value\": 1410,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 1410,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 4,\n                \"name\": \"Išorinė rekomendacija\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2019-01-16T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 3,\n                    \"name\": \"Jonas\",\n                    \"surname\": \"Petrauskis\",\n                    \"username\": \"j.petrauskis@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/small.jpg?timestamp=1547623111\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/middle.jpg?timestamp=1547623111\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/big.jpg?timestamp=1547623111\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-02-15T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 3,\n                \"name\": \"Jonas\",\n                \"surname\": \"Petrauskis\",\n                \"username\": \"j.petrauskis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/small.jpg?timestamp=1547623111\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/middle.jpg?timestamp=1547623111\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/big.jpg?timestamp=1547623111\"\n                }\n            },\n            \"stage\": {\n                \"id\": 3,\n                \"name\": \"Poreikių analizė\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 20\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 3,\n                    \"name\": \"Poreikių analizė\",\n                    \"probability\": 20\n                }\n            },\n            \"buyer\": {\n                \"id\": 5,\n                \"name\": \"MB \\\"Artumas\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika28.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"A. Juozapavičiaus pr. 7R\",\n                        \"city\": \"Kaunas\",\n                        \"zip\": \"LT-45251\",\n                        \"latitude\": \"54.865271\",\n                        \"longitude\": \"23.906670\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-14T07:18:26+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 6,\n            \"name\": \"Pardavimų komandos mokymai\",\n            \"price\": {\n                \"value\": 1921,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 1921,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 84,\n                \"name\": \"Registracija svetainėje\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-10T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-22T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 2,\n                \"name\": \"Postman\",\n                \"surname\": \"Monitoring\",\n                \"username\": \"developers@teamgate.com\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                }\n            },\n            \"stage\": {\n                \"id\": 3,\n                \"name\": \"Poreikių analizė\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 20\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 3,\n                    \"name\": \"Poreikių analizė\",\n                    \"probability\": 20\n                }\n            },\n            \"buyer\": {\n                \"id\": 1,\n                \"name\": \"UAB \\\"Pratarmė\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika16.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Universiteto g. 9\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01122\",\n                        \"latitude\": \"54.683904\",\n                        \"longitude\": \"25.284662\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-13T07:18:26+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 7,\n            \"name\": \"Gamyba pagal spec. poreikį\",\n            \"price\": {\n                \"value\": 881,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 881,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 4,\n                \"name\": \"Išorinė rekomendacija\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2019-01-06T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 5,\n                    \"name\": \"Mantas\",\n                    \"surname\": \"Kandulis\",\n                    \"username\": \"m.kandulis@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/small.jpg?timestamp=1547716167\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/middle.jpg?timestamp=1547716167\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/big.jpg?timestamp=1547716167\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-02-03T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 5,\n                \"name\": \"Mantas\",\n                \"surname\": \"Kandulis\",\n                \"username\": \"m.kandulis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/small.jpg?timestamp=1547716167\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/middle.jpg?timestamp=1547716167\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/big.jpg?timestamp=1547716167\"\n                }\n            },\n            \"stage\": {\n                \"id\": 9,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Insights analizė\",\n                \"probability\": 30\n            },\n            \"pipeline\": {\n                \"id\": 6,\n                \"name\": \"Insights analizė\",\n                \"stage\": {\n                    \"id\": 9,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 30\n                }\n            },\n            \"buyer\": {\n                \"id\": 2,\n                \"name\": \"UAB \\\"Šiaudinėj pastogėj\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika15.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Tauro g. 10\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01114\",\n                        \"latitude\": \"54.686093\",\n                        \"longitude\": \"25.271859\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"lost\",\n                \"time\": \"2019-04-16T21:00:00+00:00\",\n                \"changed\": \"2019-04-17T11:25:05+00:00\"\n            },\n            \"loss\": [\n                {\n                    \"id\": 67,\n                    \"name\": \"Per didelė kaina\"\n                }\n            ]\n        },\n        {\n            \"id\": 16,\n            \"name\": \"Dokumentų parengimas ir pristatymas\",\n            \"price\": {\n                \"value\": 1180,\n                \"currency\": \"USD\",\n                \"symbol\": \"$\",\n                \"rate\": 0.823926835,\n                \"baseValue\": 972.23,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"USD\",\n                \"symbol\": \"$\",\n                \"rate\": 0.823926835,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 84,\n                \"name\": \"Registracija svetainėje\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-13T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 3,\n                    \"name\": \"Jonas\",\n                    \"surname\": \"Petrauskis\",\n                    \"username\": \"j.petrauskis@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/small.jpg?timestamp=1547623111\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/middle.jpg?timestamp=1547623111\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/big.jpg?timestamp=1547623111\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-13T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 3,\n                \"name\": \"Jonas\",\n                \"surname\": \"Petrauskis\",\n                \"username\": \"j.petrauskis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/small.jpg?timestamp=1547623111\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/middle.jpg?timestamp=1547623111\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/3/big.jpg?timestamp=1547623111\"\n                }\n            },\n            \"stage\": {\n                \"id\": 2,\n                \"name\": \"Pirminis kontaktas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 10\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 2,\n                    \"name\": \"Pirminis kontaktas\",\n                    \"probability\": 10\n                }\n            },\n            \"buyer\": {\n                \"id\": 1,\n                \"name\": \"UAB \\\"Pratarmė\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika16.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Universiteto g. 9\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01122\",\n                        \"latitude\": \"54.683904\",\n                        \"longitude\": \"25.284662\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"lost\",\n                \"time\": \"2018-12-26T07:18:26+00:00\",\n                \"changed\": \"2019-01-16T07:18:26+00:00\"\n            },\n            \"loss\": [\n                {\n                    \"id\": 67,\n                    \"name\": \"Per didelė kaina\"\n                }\n            ]\n        },\n        {\n            \"id\": 19,\n            \"name\": \"Reklaminių skydelių gamyba\",\n            \"price\": {\n                \"value\": 1254,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 1254,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 4,\n                \"name\": \"Išorinė rekomendacija\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-20T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 4,\n                    \"name\": \"Laima\",\n                    \"surname\": \"Mandagytė\",\n                    \"username\": \"l.mandagyte@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/small.jpg?timestamp=1547623111\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/middle.jpg?timestamp=1547623111\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/big.jpg?timestamp=1547623111\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-17T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 4,\n                \"name\": \"Laima\",\n                \"surname\": \"Mandagytė\",\n                \"username\": \"l.mandagyte@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/small.jpg?timestamp=1547623111\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/middle.jpg?timestamp=1547623111\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/big.jpg?timestamp=1547623111\"\n                }\n            },\n            \"stage\": {\n                \"id\": 2,\n                \"name\": \"Pirminis kontaktas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 10\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 2,\n                    \"name\": \"Pirminis kontaktas\",\n                    \"probability\": 10\n                }\n            },\n            \"buyer\": {\n                \"id\": 4,\n                \"name\": \"UAB \\\"Labora\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika19.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Gedimino pr. 11B\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01105\",\n                        \"state\": \"Lithuania\",\n                        \"latitude\": \"33.315494\",\n                        \"longitude\": \"-86.800617\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:26+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 20,\n            \"name\": \"Gamyba pagal spec. poreikį\",\n            \"price\": {\n                \"value\": 981,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 981,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 79,\n                \"name\": \"Unspecified\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-19T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 5,\n                    \"name\": \"Mantas\",\n                    \"surname\": \"Kandulis\",\n                    \"username\": \"m.kandulis@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/small.jpg?timestamp=1547716167\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/middle.jpg?timestamp=1547716167\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/big.jpg?timestamp=1547716167\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-17T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 5,\n                \"name\": \"Mantas\",\n                \"surname\": \"Kandulis\",\n                \"username\": \"m.kandulis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/small.jpg?timestamp=1547716167\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/middle.jpg?timestamp=1547716167\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/5/big.jpg?timestamp=1547716167\"\n                }\n            },\n            \"stage\": {\n                \"id\": 2,\n                \"name\": \"Pirminis kontaktas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 10\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 2,\n                    \"name\": \"Pirminis kontaktas\",\n                    \"probability\": 10\n                }\n            },\n            \"buyer\": {\n                \"id\": 5,\n                \"name\": \"MB \\\"Artumas\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika28.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"A. Juozapavičiaus pr. 7R\",\n                        \"city\": \"Kaunas\",\n                        \"zip\": \"LT-45251\",\n                        \"latitude\": \"54.865271\",\n                        \"longitude\": \"23.906670\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:26+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 21,\n            \"name\": \"Skubus: prekė ir mokomoji medžiaga\",\n            \"price\": {\n                \"value\": 612,\n                \"currency\": \"USD\",\n                \"symbol\": \"$\",\n                \"rate\": 0.823926835,\n                \"baseValue\": 504.24,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"USD\",\n                \"symbol\": \"$\",\n                \"rate\": 0.823926835,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 1,\n                \"name\": \"Reklama\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-24T07:18:26+00:00\",\n                \"user\": {\n                    \"id\": 6,\n                    \"name\": \"Marija\",\n                    \"surname\": \"Petrauskienė\",\n                    \"username\": \"m.petrauskiene@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/small.jpg?timestamp=1547701295\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/middle.jpg?timestamp=1547701295\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/big.jpg?timestamp=1547701295\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-21T07:18:26+00:00\",\n            \"owner\": {\n                \"id\": 6,\n                \"name\": \"Marija\",\n                \"surname\": \"Petrauskienė\",\n                \"username\": \"m.petrauskiene@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/small.jpg?timestamp=1547701295\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/middle.jpg?timestamp=1547701295\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/big.jpg?timestamp=1547701295\"\n                }\n            },\n            \"stage\": {\n                \"id\": 3,\n                \"name\": \"Poreikių analizė\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 20\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 3,\n                    \"name\": \"Poreikių analizė\",\n                    \"probability\": 20\n                }\n            },\n            \"buyer\": {\n                \"id\": 1,\n                \"name\": \"UAB \\\"Pratarmė\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika16.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Universiteto g. 9\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01122\",\n                        \"latitude\": \"54.683904\",\n                        \"longitude\": \"25.284662\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:26+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 24,\n            \"name\": \"Domina TW-002 AA001\",\n            \"price\": {\n                \"value\": 198,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 198,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 5,\n                \"name\": \"El. parduotuvė\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-22T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-19T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 2,\n                \"name\": \"Postman\",\n                \"surname\": \"Monitoring\",\n                \"username\": \"developers@teamgate.com\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                }\n            },\n            \"stage\": {\n                \"id\": 3,\n                \"name\": \"Poreikių analizė\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 20\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 3,\n                    \"name\": \"Poreikių analizė\",\n                    \"probability\": 20\n                }\n            },\n            \"buyer\": {\n                \"id\": 4,\n                \"name\": \"UAB \\\"Labora\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika19.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Gedimino pr. 11B\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01105\",\n                        \"state\": \"Lithuania\",\n                        \"latitude\": \"33.315494\",\n                        \"longitude\": \"-86.800617\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:27+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 25,\n            \"name\": \"Seminaras 40 asmenų\",\n            \"price\": {\n                \"value\": 470,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 470,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 2,\n                \"name\": \"Šaltas skambutis\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-12T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 4,\n                    \"name\": \"Laima\",\n                    \"surname\": \"Mandagytė\",\n                    \"username\": \"l.mandagyte@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/small.jpg?timestamp=1547623111\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/middle.jpg?timestamp=1547623111\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/big.jpg?timestamp=1547623111\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-12T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 4,\n                \"name\": \"Laima\",\n                \"surname\": \"Mandagytė\",\n                \"username\": \"l.mandagyte@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/small.jpg?timestamp=1547623111\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/middle.jpg?timestamp=1547623111\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/4/big.jpg?timestamp=1547623111\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"buyer\": {\n                \"id\": 5,\n                \"name\": \"MB \\\"Artumas\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika28.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"A. Juozapavičiaus pr. 7R\",\n                        \"city\": \"Kaunas\",\n                        \"zip\": \"LT-45251\",\n                        \"latitude\": \"54.865271\",\n                        \"longitude\": \"23.906670\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:27+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 26,\n            \"name\": \"Metinė paslaugų teikimo sutartis\",\n            \"price\": {\n                \"value\": 800,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 800,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 5,\n                \"name\": \"El. parduotuvė\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2019-01-16T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 6,\n                    \"name\": \"Marija\",\n                    \"surname\": \"Petrauskienė\",\n                    \"username\": \"m.petrauskiene@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/small.jpg?timestamp=1547701295\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/middle.jpg?timestamp=1547701295\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/big.jpg?timestamp=1547701295\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-02-14T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 6,\n                \"name\": \"Marija\",\n                \"surname\": \"Petrauskienė\",\n                \"username\": \"m.petrauskiene@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/small.jpg?timestamp=1547701295\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/middle.jpg?timestamp=1547701295\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/big.jpg?timestamp=1547701295\"\n                }\n            },\n            \"stage\": {\n                \"id\": 5,\n                \"name\": \"Derybos\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 50\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 5,\n                    \"name\": \"Derybos\",\n                    \"probability\": 50\n                }\n            },\n            \"buyer\": {\n                \"id\": 1,\n                \"name\": \"UAB \\\"Pratarmė\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika16.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Universiteto g. 9\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01122\",\n                        \"latitude\": \"54.683904\",\n                        \"longitude\": \"25.284662\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:27+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 30,\n            \"name\": \"PRO paketas\",\n            \"price\": {\n                \"value\": 1618,\n                \"currency\": \"USD\",\n                \"symbol\": \"$\",\n                \"rate\": 0.823926835,\n                \"baseValue\": 1333.11,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"USD\",\n                \"symbol\": \"$\",\n                \"rate\": 0.823926835,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 2,\n                \"name\": \"Šaltas skambutis\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2019-01-15T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 6,\n                    \"name\": \"Marija\",\n                    \"surname\": \"Petrauskienė\",\n                    \"username\": \"m.petrauskiene@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/small.jpg?timestamp=1547701295\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/middle.jpg?timestamp=1547701295\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/big.jpg?timestamp=1547701295\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-02-15T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 6,\n                \"name\": \"Marija\",\n                \"surname\": \"Petrauskienė\",\n                \"username\": \"m.petrauskiene@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/small.jpg?timestamp=1547701295\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/middle.jpg?timestamp=1547701295\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/6/big.jpg?timestamp=1547701295\"\n                }\n            },\n            \"stage\": {\n                \"id\": 6,\n                \"name\": \"Sutartis\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 90\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 6,\n                    \"name\": \"Sutartis\",\n                    \"probability\": 90\n                }\n            },\n            \"buyer\": {\n                \"id\": 5,\n                \"name\": \"MB \\\"Artumas\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika28.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"A. Juozapavičiaus pr. 7R\",\n                        \"city\": \"Kaunas\",\n                        \"zip\": \"LT-45251\",\n                        \"latitude\": \"54.865271\",\n                        \"longitude\": \"23.906670\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-15T07:18:27+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 31,\n            \"name\": \"Informacinis pranešimas\",\n            \"price\": {\n                \"value\": 1253,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 1253,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 84,\n                \"name\": \"Registracija svetainėje\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-12T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 7,\n                    \"name\": \"Romas\",\n                    \"surname\": \"Ramanauskas\",\n                    \"username\": \"r.ramanauskis@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/small.jpg?timestamp=1547701295\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/middle.jpg?timestamp=1547701295\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/big.jpg?timestamp=1547701295\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-12T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 7,\n                \"name\": \"Romas\",\n                \"surname\": \"Ramanauskas\",\n                \"username\": \"r.ramanauskis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/small.jpg?timestamp=1547701295\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/middle.jpg?timestamp=1547701295\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/big.jpg?timestamp=1547701295\"\n                }\n            },\n            \"stage\": {\n                \"id\": 5,\n                \"name\": \"Derybos\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 50\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 5,\n                    \"name\": \"Derybos\",\n                    \"probability\": 50\n                }\n            },\n            \"buyer\": {\n                \"id\": 1,\n                \"name\": \"UAB \\\"Pratarmė\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika16.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Universiteto g. 9\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01122\",\n                        \"latitude\": \"54.683904\",\n                        \"longitude\": \"25.284662\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"won\",\n                \"time\": \"2018-12-30T07:18:27+00:00\",\n                \"changed\": \"2019-01-16T07:18:27+00:00\"\n            }\n        },\n        {\n            \"id\": 32,\n            \"name\": \"50/50% KK-311 TS226\",\n            \"price\": {\n                \"value\": 1323,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 1323,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"yes\",\n            \"source\": {\n                \"id\": 4,\n                \"name\": \"Išorinė rekomendacija\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-11T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 7,\n                    \"name\": \"Romas\",\n                    \"surname\": \"Ramanauskas\",\n                    \"username\": \"r.ramanauskis@topimone.lt\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/small.jpg?timestamp=1547701295\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/middle.jpg?timestamp=1547701295\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/big.jpg?timestamp=1547701295\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-11T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 7,\n                \"name\": \"Romas\",\n                \"surname\": \"Ramanauskas\",\n                \"username\": \"r.ramanauskis@topimone.lt\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/small.jpg?timestamp=1547701295\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/middle.jpg?timestamp=1547701295\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/7/big.jpg?timestamp=1547701295\"\n                }\n            },\n            \"stage\": {\n                \"id\": 4,\n                \"name\": \"Pasiūlymas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 35\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 4,\n                    \"name\": \"Pasiūlymas\",\n                    \"probability\": 35\n                }\n            },\n            \"buyer\": {\n                \"id\": 2,\n                \"name\": \"UAB \\\"Šiaudinėj pastogėj\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika15.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Tauro g. 10\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01114\",\n                        \"latitude\": \"54.686093\",\n                        \"longitude\": \"25.271859\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"active\",\n                \"time\": \"2019-01-16T07:18:27+00:00\",\n                \"changed\": null\n            }\n        },\n        {\n            \"id\": 34,\n            \"name\": \"Gamyba pagal spec. poreikį\",\n            \"price\": {\n                \"value\": 618,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 618,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"cost\": {\n                \"value\": 0,\n                \"currency\": \"EUR\",\n                \"symbol\": \"€\",\n                \"rate\": 1,\n                \"baseValue\": 0,\n                \"baseCurrency\": \"EUR\",\n                \"baseSymbol\": \"€\"\n            },\n            \"starred\": \"no\",\n            \"source\": {\n                \"id\": 1,\n                \"name\": \"Reklama\"\n            },\n            \"isDeleted\": \"no\",\n            \"created\": {\n                \"time\": \"2018-12-29T07:18:27+00:00\",\n                \"user\": {\n                    \"id\": 2,\n                    \"name\": \"Postman\",\n                    \"surname\": \"Monitoring\",\n                    \"username\": \"developers@teamgate.com\",\n                    \"picture\": {\n                        \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                        \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                        \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                    }\n                }\n            },\n            \"estimatedClosureDate\": \"2019-01-28T07:18:27+00:00\",\n            \"owner\": {\n                \"id\": 2,\n                \"name\": \"Postman\",\n                \"surname\": \"Monitoring\",\n                \"username\": \"developers@teamgate.com\",\n                \"picture\": {\n                    \"small\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/small.jpg?timestamp=1547624256\",\n                    \"medium\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/middle.jpg?timestamp=1547624256\",\n                    \"large\": \"https://tg-assets-eu2.s3.eu-central-1.amazonaws.com/teamgateapitesti/images/users/2/big.jpg?timestamp=1547624256\"\n                }\n            },\n            \"stage\": {\n                \"id\": 2,\n                \"name\": \"Pirminis kontaktas\",\n                \"pipeline\": \"Pardavimai\",\n                \"probability\": 10\n            },\n            \"pipeline\": {\n                \"id\": 5,\n                \"name\": \"Pardavimai\",\n                \"stage\": {\n                    \"id\": 2,\n                    \"name\": \"Pirminis kontaktas\",\n                    \"probability\": 10\n                }\n            },\n            \"buyer\": {\n                \"id\": 4,\n                \"name\": \"UAB \\\"Labora\\\"\",\n                \"email\": {\n                    \"value\": \"info@klasika19.lt\",\n                    \"type\": \"work\"\n                },\n                \"address\": {\n                    \"value\": {\n                        \"street\": \"Gedimino pr. 11B\",\n                        \"city\": \"Vilnius\",\n                        \"zip\": \"LT-01105\",\n                        \"state\": \"Lithuania\",\n                        \"latitude\": \"33.315494\",\n                        \"longitude\": \"-86.800617\",\n                        \"country\": {\n                            \"iso\": \"LTU\",\n                            \"name\": \"Lietuva\"\n                        }\n                    },\n                    \"type\": \"work\"\n                }\n            },\n            \"status\": {\n                \"name\": \"lost\",\n                \"time\": \"2019-01-16T07:18:27+00:00\",\n                \"changed\": \"2019-01-16T07:18:27+00:00\"\n            },\n            \"loss\": [\n                {\n                    \"id\": 67,\n                    \"name\": \"Per didelė kaina\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"8f23eadd-e356-4b45-bdbe-b1122da6f762"},{"name":"Deals Search","event":[{"listen":"test","script":{"id":"244dfcd4-e018-441f-bf20-6d3627ce6e93","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"nextPage\": {\"type\": [\"string\", \"null\"] },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"source\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"source\":  JSON.parse(pm.environment.get('source_schema'))","                    },","                    \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                    \"tags\": {\"type\": \"array\"}","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false,","    };","","tests[\"Valid Deals Search Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"bc81c42a-8448-43af-8991-4eeea7feeef1","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/deals?name[like]=deal&source=Website sale&operator=OR&fields=name,source","description":"<p>Get a list of deals by set limits</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>name[like]=deal: Searches all companies that have deal in their name</p>\n<p>limit=100: Limits the found companies up to a 100</p>\n","urlObject":{"protocol":"https","path":["v4","deals"],"host":["api","teamgate","com"],"query":[{"key":"name[like]","value":"deal"},{"key":"source","value":"Website sale"},{"key":"operator","value":"OR"},{"key":"fields","value":"name,source"}],"variable":[]}},"response":[{"id":"71e57c92-8d00-4868-89bd-1f55aa6e0876","name":"Deals Search","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://api.teamgate.com/v4/deals?name[like]=deal&source=Website sale&operator=OR&fields=name,source","protocol":"https","host":["api","teamgate","com"],"path":["v4","deals"],"query":[{"key":"name[like]","value":"deal"},{"key":"source","value":"Website sale"},{"key":"operator","value":"OR"},{"key":"fields","value":"name,source"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 11:10:51 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9991","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531826100","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":309,\"data\":[{\"id\":105,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":107,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":109,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":121,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":139,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":145,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":155,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":157,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":159,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":167,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":169,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":171,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":173,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":177,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":179,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":181,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":183,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":185,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":193,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":197,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":199,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":201,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":227,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":229,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}},{\"id\":243,\"name\":\"Postman API Test Deal Name\",\"source\":{\"id\":79,\"name\":\"Unspecified\"}}]}"}],"_postman_id":"bc81c42a-8448-43af-8991-4eeea7feeef1"},{"name":"Get Single Deal","event":[{"listen":"test","script":{"id":"1e62f5b7-96ed-405e-a5da-2441a51722c8","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"price\", \"starred\", \"source\", \"isDeleted\", \"created\", \"status\", \"owner\", \"stage\", \"buyer\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"price\": JSON.parse(pm.environment.get('price_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"estimatedClosureDate\": { \"type\": \"string\" },","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                \"buyer\": {","                    \"type\": \"object\",","                    \"required\": [\"id\", \"name\"],","                    \"properties\": {","                        \"id\": { \"type\": \"integer\" },","                        \"name\": { \"type\": \"string\" },","                        \"email\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"value\": { \"type\": \"string\" },","                                \"type\": { \"type\": \"string\" }","                            }","                        },","                        \"address\": {","                            \"type\": \"object\",","                            \"required\" : [\"value\", \"type\"],","                            \"properties\": JSON.parse(pm.environment.get('address_value_schema')),","                        }","                    }","                },","                \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                \"tags\": {\"type\": \"array\"}","            },","            \"additionalProperties\": true","        },","        \"additionalProperties\": true","     }","};","","tests[\"Valid Single Deal Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"b692423c-78f3-449b-bb8b-ad73a240f833","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/deals/:deal_id?embed=customFields","description":"<p>Get single deal</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Deal. <br /> <strong>Example:</strong> <code>?id=2</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals",":deal_id"],"host":["api","teamgate","com"],"query":[{"description":{"content":"<p>Can embed additional info related to deals: <code>customFields</code>, <code>cart</code>, <code>products</code>, <code>files</code> as single embed or multiple as comma separated embed</p>\n","type":"text/plain"},"key":"embed","value":"customFields"}],"variable":[{"description":{"content":"<p>Specific deal id</p>\n","type":"text/plain"},"type":"any","value":"{{firstDealId}}","key":"deal_id"}]}},"response":[{"id":"3171e224-c3f1-414c-9b14-cedb6e5ff03c","name":"Get Single Deal","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:00:45 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9995","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":3837,\"name\":\"Postman API Test Deal Changed Name\",\"price\":{\"value\":2050.33,\"currency\":\"EUR\",\"symbol\":\"\\u20ac\",\"rate\":1,\"baseValue\":2050.33,\"baseCurrency\":\"EUR\",\"baseSymbol\":\"\\u20ac\"},\"starred\":\"no\",\"source\":{\"id\":115,\"name\":\"Postman Source Change\",\"description\":\"Postman Source Change Description Test\"},\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-07-20T08:00:41+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"estimatedClosureDate\":\"2019-03-04T22:00:00+00:00\",\"owner\":{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}},\"stage\":{\"id\":5,\"name\":\"Negotiations\",\"pipeline\":\"Sales\",\"probability\":50},\"pipeline\":{\"id\":5,\"name\":\"Sales\",\"stage\":{\"id\":5,\"name\":\"Negotiations\",\"probability\":50}},\"buyer\":{\"id\":7095,\"name\":\"Postman API Test Second Person Name\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"}},\"status\":{\"name\":\"active\",\"time\":\"2018-07-20T08:00:51+00:00\",\"changed\":\"2018-07-20T08:00:51+00:00\"},\"tags\":[\"B2C\"]}}"}],"_postman_id":"b692423c-78f3-449b-bb8b-ad73a240f833"},{"name":"Get Deal Companies","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"c6b214ac-7853-4a7f-8164-bd7bdd91c8fc","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/companies","description":"<p>Get all deal companies</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of deal \"companies\" is used the same parameters as with resource \"companies\".</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{firstDealId}}","companies"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6b214ac-7853-4a7f-8164-bd7bdd91c8fc"},{"name":"Get Deal People","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"eeb59e67-b8a4-4abc-92ad-dcd72ae69d3f","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/people","description":"<p>Get all deal people</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of deal \"people\" is used the same parameters as with resource \"people\".</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{firstDealId}}","people"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"eeb59e67-b8a4-4abc-92ad-dcd72ae69d3f"},{"name":"Get Deal Events","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schame Test","var schema = {"," \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"name\", \"isDeleted\", \"description\", \"start\", \"end\", \"allDay\", \"place\", \"isSecret\", \"owner\", \"created\", \"updated\", \"deals\", \"attendees\", \"resources\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"canEdit\": {\"type\": \"string\"},","                    \"canView\": {\"type\": \"string\"},","                    \"type\": {\"type\": \"string\"},","                    \"name\": { \"type\": \"string\" },","                    \"isDeleted\": { \"type\": \"string\"},","                    \"description\": { \"type\": \"string\" },","                    \"start\": { \"type\": \"string\" },","                    \"end\": { \"type\": \"string\" },","                    \"allDay\": { \"type\": \"string\" },","                    \"place\": { \"type\": \"string\" },","                    \"isSecret\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                    \"attendees\": {","                        \"type\": \"array\",","                        \"items\":JSON.parse(pm.environment.get('user_schema')),","                    },","                    \"resources\": JSON.parse(pm.environment.get('resources_schema'))","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Event Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"de7ae863-9ba3-4435-a15a-d9eefaf82640","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{secondGlobalDealId}}/events","description":"<p>Check all events attached to this deal</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of deal \"events\" is used the same parameters as with resource \"events\".</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{secondGlobalDealId}}","events"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"5be4efa5-b051-4422-bde7-a770e2f5109f","name":"Get Deal Events","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{secondGlobalDealId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:07:51 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9951","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":2533,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"appointment\",\"name\":\"Postman API Test Meeting\",\"isDeleted\":\"no\",\"description\":\"Description for Appointment form API testing tool Postman\",\"start\":\"2016-12-05T11:45:00+02:00\",\"end\":\"2016-12-05T14:45:00+02:00\",\"allDay\":\"no\",\"place\":\"Postman area\",\"isSecret\":\"no\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"created\":{\"time\":\"2018-05-08T11:01:27+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-05-08T11:01:27+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"deals\":[{\"id\":2095,\"name\":\"Postman API Test Second Deal Name\"}],\"leads\":[{\"id\":4233,\"name\":\"Postman API Test Lead 1\"}],\"attendees\":[{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},{\"id\":5,\"name\":\"Jonas\",\"surname\":\"Petrauskis\",\"username\":\"j.petrauskis@topimone.lt\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/big.jpg\"}}],\"resources\":[{\"id\":3,\"name\":\"Urvas\"}]}]}"}],"_postman_id":"de7ae863-9ba3-4435-a15a-d9eefaf82640"},{"name":"Get Deal Sources","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('sources_schema'))","    }","};","","tests[\"Valid Deal Resources Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"0facc151-dac5-4226-88da-95cf072dc98e","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/sources","description":"<p>Get all deal sources</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of deal \"sources\" is used the same parameters as with resource \"sources\".</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{firstDealId}}","sources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"6e718103-2552-467a-a82d-dd280addf783","name":"Get Deal Sources","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/sources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 18 Jul 2018 08:34:06 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9994","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531903500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":24,\"data\":[{\"id\":1,\"name\":\"Advertising\"},{\"id\":2,\"name\":\"Cold call\"},{\"id\":4,\"name\":\"External recommendation\"},{\"id\":5,\"name\":\"E. shop\"},{\"id\":7,\"name\":\"Public Relations\"},{\"id\":8,\"name\":\"Newsletters\"},{\"id\":12,\"name\":\"Web search\"},{\"id\":79,\"name\":\"Unspecified\"},{\"id\":83,\"name\":\"Internal recommendation\"},{\"id\":84,\"name\":\"Registration on the site\"},{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},{\"id\":115,\"selected\":\"yes\",\"name\":\"Postman Source Change\",\"description\":\"Postman Source Change Description Test\"},{\"id\":119,\"name\":\"www.postman.com\",\"description\":\"Postman Source description\"},{\"id\":121,\"name\":\"sourceById\"},{\"id\":123,\"name\":\"Array\"},{\"id\":127,\"name\":\"Testassss\",\"description\":\"integromattttt\"},{\"id\":131,\"name\":\"wooo\",\"description\":\"ooow\"},{\"id\":139,\"name\":\"zis is za source\",\"description\":\"souuurce\"},{\"id\":143,\"name\":\"Naujas sourcas\",\"description\":\"Labai naujas sourcas\"},{\"id\":145,\"name\":\"TEstttt\",\"description\":\"testsetetw\"},{\"id\":147,\"name\":\"143\"},{\"id\":149,\"name\":\"Kompletely new\",\"description\":\"nuja, ziurim ar veikia description\"},{\"id\":151,\"name\":\"Web search\",\"description\":\"Found by web search\"},{\"id\":155,\"name\":\"Website sale\",\"description\":\"Selling trough website\"}]}"}],"_postman_id":"0facc151-dac5-4226-88da-95cf072dc98e"},{"name":"Get Deal Custom Fields","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('custom_field_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Deal Custom Fields Schema\"] = tv4.validate(jsonData, schema);","","//Set Variables","postman.setGlobalVariable(\"firstCustomFieldId\", jsonData.data[0].id);","postman.setGlobalVariable(\"secondCustomFieldId\", jsonData.data[1].id);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"8458b6ae-b3b9-4a12-8563-1610ec9f5bda","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/customFields","description":"<p>Get deals custom fields</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of deal \"customFields\" is used the same parameters as with resource \"customFields\".</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{firstDealId}}","customFields"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"3a039ffd-ea35-49b0-9eb8-bf444975277d","name":"Get Deal Custom Fields","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/customFields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:30:56 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9997","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":8,\"name\":\"Additional information\",\"module\":\"deals\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"text\"},{\"id\":31,\"name\":\"Business\",\"module\":\"deals\",\"isActive\":\"yes\",\"value\":103,\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"single_option\",\"items\":[{\"id\":101,\"name\":\"B2B\"},{\"id\":103,\"name\":\"B2C\",\"selected\":\"yes\"},{\"id\":105,\"name\":\"C2B\"},{\"id\":107,\"name\":\"C2C\"}]}]}"},{"id":"8763ffa4-6442-41c2-b1d2-1329f05bdc95","name":"Get Deal Custom Fields","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/customFields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:08:10 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9949","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":3,\"data\":[{\"id\":5,\"name\":\"Pristatymo adresas\",\"module\":\"deals\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"text\"},{\"id\":8,\"name\":\"Papildoma informacija\",\"module\":\"deals\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"text\"},{\"id\":23,\"name\":\"Poreikis\",\"module\":\"deals\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"yes\",\"type\":\"text\"}]}"}],"_postman_id":"8458b6ae-b3b9-4a12-8563-1610ec9f5bda"},{"name":"Get Deal Custom Field","event":[{"listen":"test","script":{"id":"cbbbc2cc-f9d9-4d3a-83ab-b4627b113131","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('custom_field_schema')),","    },","    \"additionalProperties\": false","};","","tests[\"Valid Deal Custom Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"6bac97a5-990f-475c-81c1-d8bede201b68","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/customFields/{{CFDealsMultiSelectId}}","description":"<p>Returns a set of deal custom field value.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of deal \"customFields\" is used the same parameters as with resource \"customFields\".</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{firstDealId}}","customFields","{{CFDealsMultiSelectId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"49d98b88-7f15-40b1-b77c-2ea3f6ed0f36","name":"Get Deal Custom Field","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/customFields/{{firstCustomFieldId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:31:26 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9994","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":19,\"name\":\"Buisness model\",\"module\":\"companies\",\"isActive\":\"yes\",\"isFilter\":\"yes\",\"isList\":\"yes\",\"type\":\"multi_option\",\"items\":[{\"id\":49,\"name\":\"B2B\"},{\"id\":51,\"name\":\"B2C\"},{\"id\":53,\"name\":\"C2B\"},{\"id\":55,\"name\":\"C2C\"},{\"id\":57,\"name\":\"G2G\"},{\"id\":59,\"name\":\"G2E\"},{\"id\":61,\"name\":\"G2B\"},{\"id\":63,\"name\":\"B2G\"},{\"id\":65,\"name\":\"G2C\"},{\"id\":67,\"name\":\"C2G\"},{\"id\":69,\"name\":\"B2E\"}]}}"},{"id":"87387476-a19d-4198-9e8b-b876a264ffb2","name":"Get Deal Custom Field","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/customFields/{{firstCustomFieldId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:08:17 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9948","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":5,\"name\":\"Pristatymo adresas\",\"module\":\"deals\",\"isActive\":\"yes\",\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"text\"}}"}],"_postman_id":"6bac97a5-990f-475c-81c1-d8bede201b68"},{"name":"Get Deal Stages","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\":{","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"probability\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"probability\": {\"type\": \"integer\"},","                    \"selected\": {\"type\": \"boolean\"}","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Deal Stages Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"d451adc5-4c1c-4b3b-97c1-320eaeca4591","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/stages","description":"<p>Get all deal stages</p>\n","urlObject":{"protocol":"https","path":["v4","deals","{{firstDealId}}","stages"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"fa4723d5-5cca-4ea7-b422-3e86ed2d5af2","name":"Get Deal Stages","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}/stages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 18 Jul 2018 08:34:21 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9993","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531903500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":5,\"data\":[{\"id\":2,\"name\":\"First contact\",\"probability\":10},{\"id\":3,\"name\":\"Needs analysis\",\"probability\":20},{\"id\":4,\"name\":\"Offer\",\"probability\":35},{\"id\":5,\"name\":\"Negotiations\",\"probability\":50,\"selected\":true},{\"id\":6,\"name\":\"Contract\",\"probability\":90}]}"}],"_postman_id":"d451adc5-4c1c-4b3b-97c1-320eaeca4591"},{"name":"Update a Deal","event":[{"listen":"test","script":{"id":"fc93f87d-c1fa-42ee-89eb-ea88b486f60c","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","tests[\"Deal Id\"] = jsonData.data.id == pm.environment.get(\"firstDealId\");","tests[\"Deal Name\"] = jsonData.data.name == \"Postman API Test Deal Changed Name\";","","tests[\"Deal Price Value\"] = jsonData.data.price.value == \"2050.33\";","tests[\"Deal Price Currency\"] = jsonData.data.price.currency == \"EUR\";","tests[\"Deal Price Symbol\"] = jsonData.data.price.symbol == \"€\";","tests[\"Deal Price Base Value\"] = jsonData.data.price.baseValue == \"2050.33\";","tests[\"Deal Price Base Currency\"] = jsonData.data.price.baseCurrency == \"EUR\";","tests[\"Deal Price Base Symbol\"] = jsonData.data.price.baseSymbol == \"€\";","","tests[\"Deal Starred NO\"] = jsonData.data.starred == \"no\";","tests[\"Deal Source Name\"] = jsonData.data.source.name == \"Postman Source Change\";","","tests[\"Deal is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Deal Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Deal Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","","tests[\"Deal Estimated Closure Date\"] = jsonData.data.estimatedClosureDate == \"2019-03-04T22:00:00+00:00\";","tests[\"Deal Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"secondUserId\");","tests[\"Deal Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Deal Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Deal Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Deal Stage\"] = jsonData.data.stage.id == pm.environment.get(\"stageId\");","","tests[\"Deal Pipeline\"] = jsonData.data.pipeline.id == pm.environment.get(\"pipelineId\");","","tests[\"Deal Buyer\"] = jsonData.data.buyer.id == pm.environment.get(\"secondGlobalPersonId\");","","tests[\"Deal Status\"] = jsonData.data.status.name == \"active\";","tests[\"Deal Status Time\"] = jsonData.data.status.time.has(\"T\");","tests[\"Deal Status Changed Time\"] = jsonData.data.status.changed.has(\"T\");","","tests[\"Deal Tags\"] = jsonData.data.tags == \"B2C\";","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"price\", \"starred\", \"source\", \"isDeleted\", \"created\", \"status\", \"owner\", \"stage\", \"buyer\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"price\": JSON.parse(pm.environment.get('price_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"estimatedClosureDate\": { \"type\": \"string\" },","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                \"buyer\": {","                    \"type\": \"object\",","                    \"required\": [\"id\", \"name\"],","                    \"properties\": {","                        \"id\": { \"type\": \"integer\" },","                        \"name\": { \"type\": \"string\" },","                        \"email\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"value\": { \"type\": \"string\" },","                                \"type\": { \"type\": \"string\" }","                            }","                        },","                        \"address\": {","                            \"type\": \"object\",","                            \"required\" : [\"value\", \"type\"],","                            \"properties\": JSON.parse(pm.environment.get('address_value_schema')),","                        }","                    },","                    \"additionalProperties\": true","                },","                \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                \"tags\": {\"type\": \"array\"}","            },","            \"additionalProperties\": true","        },","        \"additionalProperties\": false","     }","};","","tests[\"Valid Single Deal Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"fe590427-fcb9-4689-9671-7d3daa235b1a","request":{"method":"PUT","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Deal Changed Name\",\n  \"buyerId\": \"{{secondGlobalPersonId}}\",\n  \"stageId\": \"{{stageId}}\",\n  \"cart\":{\n    \"discount\":{\n      \"value\": \"-100\",\n      \"type\": \"fixed\"\n    },\n    \"items\": [{\n      \"id\": \"{{secondGlobalProductId}}\",\n      \"quantity\": \"1\"\n      }]\n  },\n  \"status\": \"active\",\n  \"priceValue\": \"2050.33\",\n  \"priceCurrency\": \"EUR\",\n  \"starred\": \"false\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser2\",\n  \"source\": \"Postman Source Change\",\n  \"tags\": \"B2C\",\n  \"estimatedClosureDate\": \"2019-03-05T00:00:00+02:00\",\n  \"customFields\": {\"2\":\"4\"}\n\n}"},"url":"https://api.teamgate.com/v4/deals/:deal_id","description":"<p>Update deal data</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Descriptions</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong>  <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>buyer</strong> <br />integer <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"buyer\": \"5\"</code></td>\n</tr>\n<tr>\n<td><strong>stageId</strong> <br />Integer</td>\n<td><strong>Example:</strong>  <code>\"stageId\": \"5\"</code></td>\n</tr>\n<tr>\n<td><strong>cart</strong> <br /> Object</td>\n<td>Lets you add products to the deal. <strong>Example:</strong> <code>\"cart\":\"discount\": {\"value\": \"-50\",\"type\": \"fixed\"},\"items\": [{\"id\":5},{\"id\":25}]</code></td>\n</tr>\n<tr>\n<td><strong>cart.discount</strong> <br /> Object</td>\n<td>Lets set discount on all cart. Discount type can be: <code>fixed</code> or <code>percentage</code> (abbr. <code>perc</code> also works as a type). <strong>Example:</strong> <code>\"discount\": {\"value\": \"-50\",\"type\": \"fixed\"}</code> or <code>\"discount\": {\"value\": \"-10,0000\",\"type\": \"perc\"}</code></td>\n</tr>\n<tr>\n<td><strong>cart.items</strong> <br /> Object</td>\n<td>specifies products per deal same as in Cart endpoint. <strong>Example:</strong> <code>\"items\": [{\"id\":20,\"price\":{\"currency\": \"EUR\",\"value\": \"10000.0000\"},\"discount\":{\"type\":\"percentage\",\"value\": \"20.0000\"},\"quantity\": 2}, {\"id\":25,\"price\":{\"currency\": \"EUR\",\"value\": \"50.0000\"},\"discount\":{\"type\":\"fixed\",\"value\": \"20.0000\"},\"quantity\": 1}]</code></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br /> String</td>\n<td>Possible Values: <ul><li>  <code>active</code> - the deal is open </li><li> <code>won</code> - the deal is won </li><li> <code>lost</code> - the deal is lost </li><li> <code>postponed</code> - the deal is postponed </li></ul></td>\n</tr>\n<tr>\n<td><strong>priceValue</strong> <br />Float</td>\n<td><strong>Example:</strong>  <code>\"priceValue\": \"1725.50\"</code></td>\n</tr>\n<tr>\n<td><strong>priceCurrency</strong> <br />String</td>\n<td><strong>Example:</strong>   <code>\"priceCurrency\": \"USD\"</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong> <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>  <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong> <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong><code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong>     <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code></li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>estimatedClosureDate</strong> <br /> Date</td>\n<td><strong>Example:</strong><code>\"estimatedClosureDate\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li>Example for select (fieldID : valueId): <code>\"customFields\": \"{'3':'5'}\"</code></li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals",":deal_id"],"host":["api","teamgate","com"],"query":[],"variable":[{"description":{"content":"<p>Id of a deal you want to update</p>\n","type":"text/plain"},"type":"any","value":"{{firstDealId}}","key":"deal_id"}]}},"response":[{"id":"4458f907-be22-4ffe-9ecf-d5c8da8b070b","name":"Update Deal Data","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Deal Changed Name\",\n  \"buyerId\": \"{{secondGlobalPersonId}}\",\n  \"stageId\": \"5\",\n  \"status\": \"active\",\n  \"priceValue\": \"2050.33\",\n  \"priceCurrency\": \"EUR\",\n  \"starred\": \"false\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser2\",\n  \"sourceId\": \"115\",\n  \"source\": \"Postman Source Change\",\n  \"sourceDescription\": \"Postman Source Change Description Test\",\n  \"tags\": \"B2C\",\n  \"estimatedClosureDate\": \"2019-03-05T00:00:00+02:00\",\n  \"customFields\": [{\"2\":\"4\"}]\n}"},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:00:27 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9997","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":3837,\"name\":\"Postman API Test Deal Changed Name\",\"price\":{\"value\":2050.33,\"currency\":\"EUR\",\"symbol\":\"\\u20ac\",\"rate\":1,\"baseValue\":2050.33,\"baseCurrency\":\"EUR\",\"baseSymbol\":\"\\u20ac\"},\"starred\":\"no\",\"source\":{\"id\":115,\"name\":\"Postman Source Change\",\"description\":\"Postman Source Change Description Test\"},\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-07-20T08:00:41+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"estimatedClosureDate\":\"2019-03-04T22:00:00+00:00\",\"owner\":{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}},\"stage\":{\"id\":5,\"name\":\"Negotiations\",\"pipeline\":\"Sales\",\"probability\":50},\"pipeline\":{\"id\":5,\"name\":\"Sales\",\"stage\":{\"id\":5,\"name\":\"Negotiations\",\"probability\":50}},\"buyer\":{\"id\":7095,\"name\":\"Postman API Test Second Person Name\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"}},\"status\":{\"name\":\"active\",\"time\":\"2018-07-20T08:00:51+00:00\",\"changed\":\"2018-07-20T08:00:51+00:00\"},\"tags\":[\"B2C\"]}}"}],"_postman_id":"fe590427-fcb9-4689-9671-7d3daa235b1a"},{"name":"Delete a Deal","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"30b15db5-e284-4274-9871-a6fde39fded2","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstDealId}}","description":"<p>Deleting deal, because we don't need it anymore</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Deal. <br /> <strong>Example:</strong> <code>?id=2</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","deals","{{firstDealId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"30b15db5-e284-4274-9871-a6fde39fded2"}],"id":"a033fbda-4c1c-4dc4-ae43-e30e4cae274a","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong>  <br />Intiger <em>read only</em></td>\n<td>Unique key of the Deal.</td>\n</tr>\n<tr>\n<td><strong>name</strong>  <br />String</td>\n<td>Name of the Deal. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>price</strong>  <br />Object</td>\n<td>The deal’s price. Read more information about <code>Price</code> object <a href=\"./#ec82024b-42a3-48eb-a048-f36f477724f6\">here</a></td>\n</tr>\n<tr>\n<td><strong>buyer</strong>  <br />Object</td>\n<td>The deal's buyer. For the buyer deal is using Contact object. Read more information about <code>Contact</code> object <a href=\"./#4ed92c47-e828-4031-b7d1-60c596ebd8a2\">here</a></td>\n</tr>\n<tr>\n<td><strong>stage</strong>  <br />Object</td>\n<td>The deal’s stage. Read more information about deals <code>Stage</code> object <a href=\"./#c9a8f95b-f0fc-402e-801f-a8b901b6a25c\">here</a></td>\n</tr>\n<tr>\n<td><strong>status</strong>  <br />Object</td>\n<td>The deal’s status. Read more information about deals <code>Status</code> object <a href=\"./#1e203079-0b00-4587-b17d-736416e0aa65\">here</a></td>\n</tr>\n<tr>\n<td><strong>starred</strong>  <br />Boolean</td>\n<td>Indicator of whether or not the deal is important and marked by star.</td>\n</tr>\n<tr>\n<td><strong>source</strong>  <br />Object</td>\n<td>The deal’s source. Source are assigned from a common sources list. Read more information about <code>Source</code> object <a href=\"./#ef608bb2-ea49-4dac-b162-f6e93d16a042\">here</a></td>\n</tr>\n<tr>\n<td><strong>created</strong>  <br />Object <em>read only</em></td>\n<td>User, date and time Deal record was created. information is read only, because automatically generated by the server. Read more information about <code>Created</code> object <a href=\"./#7d49fe80-3c31-48d7-addb-aec4afc7a9aa\">here</a></td>\n</tr>\n<tr>\n<td><strong>owner</strong>  <br />Object</td>\n<td>For the owner is using User object. Read more information about <code>User</code> object <a href=\"./#8641c2c6-121b-4ba4-8fa2-905a7aeb2be7\">here</a></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong>  <br />Boolean</td>\n<td>Indicator the deal is deleted or not. In responses deleted values are not displayed</td>\n</tr>\n<tr>\n<td><strong>estimatedClosureDate</strong>  <br />DateTime</td>\n<td>Date up to which is scheduled to close deal. Must be an <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> timestamp with mandatory time zone offset, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z. Milliseconds may be provided but will be ignored.</td>\n</tr>\n<tr>\n<td><strong>customFields</strong>  <br />Array</td>\n<td>An array of custom Fields for the deal. <code>?embed=customFields</code>. Read more information about <code>customFields</code> object <a href=\"./#4a68703e-4ec2-4e60-a941-9142d32d92d5\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div><p><em><strong>Note</strong>: created and updated properties cannot be modified and are immutable, because it shows when item was actually created and updated. But we have an option to spoof created datetime if items has to be created in the future or in the past for planning purposes. Thats why there is <code>createdDate</code> <code>POST</code> HTTP method's property available. And updated property date time and user is automatically changed in background everytime record is changed using <code>PUT</code> or <code>PATCH</code> HTTP methods</em></p>\n","event":[{"listen":"prerequest","script":{"id":"df8aa6d9-242b-423b-b1b4-5602c23e297d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c608e7bd-f802-4462-9aac-621c49bdba84","type":"text/javascript","exec":[""]}}],"_postman_id":"a033fbda-4c1c-4dc4-ae43-e30e4cae274a"},{"name":"06. Activities","item":[{"name":"Leads","item":[{"name":"Add Lead To Event","event":[{"listen":"test","script":{"id":"d090f31b-4419-4d6b-97e5-36397327f896","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//tests[\"Count Leads\"] = jsonData.count == 2;","tests[\"Lead Name\"] = jsonData.data[0].name == \"Postman API Test Lead 1\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                    \"score\": JSON.parse(pm.environment.get('score_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                    \"showCompany\": { \"type\": \"boolean\" },","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event Leads Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"60ed8649-7fd1-4785-881e-aa5c0fef9a4c","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstGlobalLeadId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/leads","description":"<p>Add lead to event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add lead id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","leads"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"72ef4a41-ae66-472d-9301-11dcc48a9850","name":"Add Lead To Event","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstGlobalLeadId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}/leads"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:02:59 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9982","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":9549,\"name\":\"Postman API Test Lead 1\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-18T09:04:08+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-19T21:12:31+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"status\":{\"id\":1,\"name\":\"Advertising\",\"time\":\"2018-07-18T09:04:08+00:00\"},\"score\":{\"value\":0,\"grade\":\"cold\",\"time\":\"2018-07-18T09:04:08+00:00\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":50645,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":50647,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":50649,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":50651,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":50653,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":50543,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":50545,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":50547,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":50549,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":50551,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":50617,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":50619,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":50621,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":50623,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":50625,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10233,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"60ed8649-7fd1-4785-881e-aa5c0fef9a4c"},{"name":"Get Single Event Leads","event":[{"listen":"test","script":{"id":"125cce56-3430-4fc2-9852-7f88ebc04a9d","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                    \"score\": JSON.parse(pm.environment.get('score_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                    \"showCompany\": { \"type\": \"boolean\" },","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","console.log(JSON.stringify(jsonData), JSON.stringify(schema));","tests[\"Valid Event Leads Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"3c62d9ca-dacf-455d-b238-fea9c2951027","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/leads","description":"<p>Get single events leads</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","leads"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"6d3fcb61-8260-4dfb-897f-1b1eff0902bc","name":"Get Single Event Leads","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}/leads"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:03:17 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9981","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":9549,\"name\":\"Postman API Test Lead 1\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-18T09:04:08+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-19T21:12:31+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"status\":{\"id\":1,\"name\":\"Advertising\",\"time\":\"2018-07-18T09:04:08+00:00\"},\"score\":{\"value\":0,\"grade\":\"cold\",\"time\":\"2018-07-18T09:04:08+00:00\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":50645,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":50647,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":50649,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":50651,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":50653,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":50543,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":50545,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":50547,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":50549,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":50551,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":50617,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":50619,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":50621,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":50623,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":50625,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10233,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"3c62d9ca-dacf-455d-b238-fea9c2951027"},{"name":"Replace Event Leads","event":[{"listen":"test","script":{"id":"6471b5a7-9ec2-43e4-b98f-3b2f98770336","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Leads\"] = jsonData.count == 2;","tests[\"Lead Name1\"] = jsonData.data[0].name == \"Postman API Test Lead 1\";","tests[\"Lead Name2\"] = jsonData.data[1].name == \"Postman API Test Lead 2\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                    \"score\": JSON.parse(pm.environment.get('score_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                    \"showCompany\": { \"type\": \"boolean\" },","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event Leads Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"4c0a26ec-60aa-4e5d-b61e-ff46c40e98fd","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": [\"{{firstGlobalLeadId}}\", \"{{secondGlobalLeadId}}\"]\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/leads","description":"<p>Replace all event leads</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add lead id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","leads"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"951dc730-35ca-4eca-9483-4ea768fb4fb0","name":"Replace Event Leads","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"id\": [\"{{firstGlobalLeadId}}\", \"{{secondGlobalLeadId}}\"]\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}/leads"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:03:32 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9980","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":9549,\"name\":\"Postman API Test Lead 1\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-18T09:04:08+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-19T21:12:31+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"status\":{\"id\":1,\"name\":\"Advertising\",\"time\":\"2018-07-18T09:04:08+00:00\"},\"score\":{\"value\":0,\"grade\":\"cold\",\"time\":\"2018-07-18T09:04:08+00:00\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":50645,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":50647,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":50649,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":50651,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":50653,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":50543,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":50545,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":50547,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":50549,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":50551,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":50617,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":50619,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":50621,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":50623,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":50625,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10233,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]},{\"id\":9551,\"name\":\"Postman API Test Lead 2\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-18T09:04:46+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-19T21:12:32+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"status\":{\"id\":2,\"name\":\"Cold call\",\"time\":\"2018-07-18T09:04:46+00:00\"},\"score\":{\"value\":0,\"grade\":\"cold\",\"time\":\"2018-07-18T09:04:46+00:00\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":50655,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":50657,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":50659,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":50661,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":50663,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":50553,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":50555,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":50557,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":50559,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":50561,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":50627,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":50629,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":50631,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":50633,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":50635,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10235,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"4c0a26ec-60aa-4e5d-b61e-ff46c40e98fd"},{"name":"Detach Lead From Event","event":[{"listen":"test","script":{"id":"fca5e4da-6c63-455a-9a76-18ed18f76d5b","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//tests[\"Count Leads\"] = jsonData.count == 1;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                    \"score\": JSON.parse(pm.environment.get('score_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                    \"showCompany\": { \"type\": \"boolean\" },","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event Leads Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"11523232-9f94-4214-8e4e-127d7e6a0852","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/leads/{{firstGlobalLeadId}}","description":"<p>Detach a lead from event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add lead id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","leads","{{firstGlobalLeadId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"11523232-9f94-4214-8e4e-127d7e6a0852"},{"name":"Deatch Leads From Event","event":[{"listen":"test","script":{"id":"b0270431-781f-4f04-a058-f968131873d3","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Leads\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event Leads Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9350109a-1b9c-41f4-8925-f035db732b36","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/leads","description":"<p>Detach all event leads</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","leads"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9350109a-1b9c-41f4-8925-f035db732b36"}],"id":"52e89c7b-d307-4e7c-af28-66e9a518a36e","_postman_id":"52e89c7b-d307-4e7c-af28-66e9a518a36e","description":""},{"name":"Attendees","item":[{"name":"Get Single Event Attendees","event":[{"listen":"test","script":{"id":"d2c8b480-bbdb-4cb1-b47e-b364a6aeddf5","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"username\", \"email\", \"language\", \"locale\", \"timeZone\", \"created\", \"role\", \"isActive\", \"defaultCurrency\", \"currencies\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"username\": {\"type\":\"string\"},","                    \"email\": {\"type\":\"string\"},","                    \"language\": JSON.parse(pm.environment.get('language_schema')),","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"created\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('created_schema')),],","                    \"role\":{\"type\": \"string\"},","                    \"isActive\":{\"type\": \"string\"},","                    \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema')),","                    \"defaultCurrency\":{\"type\":\"string\"},","                    \"currencies\": JSON.parse(pm.environment.get('currencies_schema'))","                },","                \"additionalProperties\": true","            }","        }","    }","};","","tests[\"Valid Event Attandees Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"bc0136fc-4dc5-48e0-920b-7e08f38459ed","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/attendees","description":"<p>Get all single sevents attendees</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","attendees"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"50c8b5b8-8f18-482a-a934-6381054bbbdd","name":"Get Single Event Attendees","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}/attendees"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:12:26 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9920","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":3,\"name\":\"Algirdas\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"},\"username\":\"algirdas@teamgate.com\",\"email\":\"algirdas@teamgate.com\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T11:09:21+02:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"lastLogin\":{\"time\":\"2018-05-04T08:40:26+03:00\"},\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8402\",\"fullRate\":\"0.840194925\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}},{\"id\":5,\"name\":\"Jonas\",\"surname\":\"Petrauskis\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/big.jpg\"},\"username\":\"j.petrauskis@topimone.lt\",\"email\":\"j.petrauskis@topimone.lt\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T11:09:23+02:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8402\",\"fullRate\":\"0.840194925\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}}]}"}],"_postman_id":"bc0136fc-4dc5-48e0-920b-7e08f38459ed"},{"name":"Replace Attendees To An Event","event":[{"listen":"test","script":{"id":"f104798b-ea16-4034-98b7-4ed3c8ce675f","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Attendees\"] = jsonData.count == 1;","tests[\"Event Attendees ID\"] = jsonData.data[0].id ==  pm.environment.get(\"firstUserId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"username\", \"email\", \"language\", \"locale\", \"timeZone\", \"created\", \"role\", \"isActive\", \"defaultCurrency\", \"currencies\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"username\": {\"type\":\"string\"},","                    \"email\": {\"type\":\"string\"},","                    \"language\": JSON.parse(pm.environment.get('language_schema')),","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"created\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('created_schema')),],","                    \"role\":{\"type\": \"string\"},","                    \"isActive\":{\"type\": \"string\"},","                    \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema')),","                    \"defaultCurrency\":{\"type\":\"string\"},","                    \"currencies\": JSON.parse(pm.environment.get('currencies_schema'))","                },","                \"additionalProperties\": true","            }","        }","    }","};","","tests[\"Valid Event Attandees Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"a5beeae7-1522-431e-90a2-166d9918ff14","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"id\": \"{{firstUserId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/attendees","description":"<p>Replace all events attendees</p>\n<p>Required Variables in URL:</p>\n<ol>\n<li>eventId</li>\n</ol>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","attendees"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"1236245d-8ff9-4e90-8680-5b63f5955fa8","name":"Replace Attendees To An Event","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstUserId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}/attendees"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:04:07 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9978","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"},\"username\":\"p.peterson@topbuisness.com\",\"email\":\"p.peterson@topbuisness.com\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T09:09:23+00:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8630\",\"fullRate\":\"0.862961685\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}}]}"}],"_postman_id":"a5beeae7-1522-431e-90a2-166d9918ff14"},{"name":"Add Attendees To An Event ","event":[{"listen":"test","script":{"id":"d6c10b95-10d0-4c41-b7da-3c9ab41f984a","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Attendees\"] = jsonData.count == 2;","tests[\"Event Attendees ID 1\"] = jsonData.data[0].id == pm.environment.get(\"firstUserId\") || pm.environment.get(\"secondUserId\");","tests[\"Event Attendees ID 2\"] = jsonData.data[1].id == pm.environment.get(\"secondUserId\") || pm.environment.get(\"firstUserId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"username\", \"email\", \"language\", \"locale\", \"timeZone\", \"created\", \"role\", \"isActive\", \"defaultCurrency\", \"currencies\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"username\": {\"type\":\"string\"},","                    \"email\": {\"type\":\"string\"},","                    \"language\": JSON.parse(pm.environment.get('language_schema')),","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"created\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('created_schema')),],","                    \"role\":{\"type\": \"string\"},","                    \"isActive\":{\"type\": \"string\"},","                    \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema')),","                    \"defaultCurrency\":{\"type\":\"string\"},","                    \"currencies\": JSON.parse(pm.environment.get('currencies_schema'))","                },","                \"additionalProperties\": true","            }","        }","    }","};","","tests[\"Valid Event Attandees Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"dd10a299-2726-4e9d-ac94-a57a5d1ab580","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{secondUserId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/attendees","description":"<p>Add attendees to an event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add attendees id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","attendees"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"fa336cdd-0c7a-4d64-a460-9a139b297058","name":"Add Attendees To An Event ","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{secondUserId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}/attendees"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:04:15 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9977","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"},\"username\":\"m.merinson@topbuisnes.com\",\"email\":\"m.merinson@topbuisnes.com\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T09:09:23+00:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8630\",\"fullRate\":\"0.862961685\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}},{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"},\"username\":\"p.peterson@topbuisness.com\",\"email\":\"p.peterson@topbuisness.com\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T09:09:23+00:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8630\",\"fullRate\":\"0.862961685\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}}]}"}],"_postman_id":"dd10a299-2726-4e9d-ac94-a57a5d1ab580"},{"name":"Detach Attendee From Event","event":[{"listen":"test","script":{"id":"8f7676c9-470e-4bce-b861-2f769aa54286","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Attendees\"] = jsonData.count == 1;","tests[\"Event Attendees ID\"] = jsonData.data[0].id == pm.environment.get(\"firstUserId\");","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"username\", \"email\", \"language\", \"locale\", \"timeZone\", \"created\", \"role\", \"isActive\", \"defaultCurrency\", \"currencies\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"username\": {\"type\":\"string\"},","                    \"email\": {\"type\":\"string\"},","                    \"language\": JSON.parse(pm.environment.get('language_schema')),","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"created\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('created_schema')),],","                    \"role\":{\"type\": \"string\"},","                    \"isActive\":{\"type\": \"string\"},","                    \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema')),","                    \"defaultCurrency\":{\"type\":\"string\"},","                    \"currencies\": JSON.parse(pm.environment.get('currencies_schema'))","                },","                \"additionalProperties\": true","            }","        }","    }","};","","tests[\"Valid Event Attandees Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"65e1d068-3998-43eb-87d9-25e23806d372","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/attendees/{{secondUserId}}","description":"<p>Detach attendee from event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add attendees id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","attendees","{{secondUserId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"65e1d068-3998-43eb-87d9-25e23806d372"},{"name":"Detach Attendees From Event","event":[{"listen":"test","script":{"id":"4424e017-0bda-4c56-a4c5-641c206d6b99","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Attendees\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event Attandees Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"c2771543-a7fe-4ccf-a115-8dfa52348128","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/attendees","description":"<p>Detach all attendees from event</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","attendees"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2771543-a7fe-4ccf-a115-8dfa52348128"}],"id":"ea7aa9f7-970c-4a1f-8964-d9f9df774ee6","_postman_id":"ea7aa9f7-970c-4a1f-8964-d9f9df774ee6","description":""},{"name":"Resources","item":[{"name":"Get Event Resources","event":[{"listen":"test","script":{"id":"6eec350d-e1f5-4440-93b9-b2658cf2bd54","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('resources_schema')),","    }","};","","tests[\"Valid Event Resources Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"b60a944f-5d4b-4007-a078-7c667df946a1","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/events/{{globalMeetingId}}/resources","description":"<p>Get all event resources</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalMeetingId}}","resources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"93fea8d6-9da6-4df6-9b8b-bd0655359eb5","name":"Get Event Resources","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}/resources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:05:12 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9975","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1,\"name\":\"Meeting room\"},{\"id\":3,\"name\":\"Coffee place\"}]}"}],"_postman_id":"b60a944f-5d4b-4007-a078-7c667df946a1"},{"name":"Replace Resources","event":[{"listen":"test","script":{"id":"ef413bf5-2c02-4e15-8014-384bd8c25ee7","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//tests[\"Count Resources\"] = jsonData.count == 1;","tests[\"Event Resource ID\"] = jsonData.data[0].id == pm.environment.get(\"secondResourceId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('resources_schema')),","    }","};","","tests[\"Valid Event Resources Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"091d15b8-aa7c-43f5-9d81-e0c672102449","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{secondResourceId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/resources","description":"<p>Replace all event resources</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add resource id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","resources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"0817e35c-42fc-4331-83c6-7bf76246f427","name":"Replace Resources","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"{{secondResourceId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|id <br> Integer |Add resource id <br> **Example:**  \"id\": \"7\"     |"}]},"url":"https://api.teamgate.com/v4/events/{{eventId}}/resources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:13:04 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9914","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":3,\"name\":\"Urvas\"}]}"}],"_postman_id":"091d15b8-aa7c-43f5-9d81-e0c672102449"},{"name":"Add Resources","event":[{"listen":"test","script":{"id":"b3ba3e4c-1df4-4d69-97b2-702f94292604","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Resources\"] = jsonData.count == 2;","tests[\"Event Resource ID 1\"] = jsonData.data[0].id ==  pm.environment.get(\"firstResourceId\");","tests[\"Event Resource ID 2\"] = jsonData.data[1].id ==  pm.environment.get(\"secondResourceId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('resources_schema')),","    }","};","","tests[\"Valid Event Resources Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"d524ac7a-f566-4717-8d47-852ca1a770e8","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstResourceId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/resources","description":"<p>Adresources to an event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add resource id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","resources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"48cdefe1-01e7-4c15-b925-97de8b3f8203","name":"Add Resources","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstResourceId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}/resources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:06:00 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9972","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1,\"name\":\"Meeting room\"},{\"id\":3,\"name\":\"Coffee place\"}]}"}],"_postman_id":"d524ac7a-f566-4717-8d47-852ca1a770e8"},{"name":"Detach Resource From Event","event":[{"listen":"test","script":{"id":"e2d1c983-6d93-49e4-b519-edbff61c5377","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Resources\"] = jsonData.count == 1;","tests[\"Event Resource ID\"] = jsonData.data[0].id ==  pm.environment.get(\"secondResourceId\");","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('resources_schema')),","    }","};","","tests[\"Valid Event Resources Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"b8809d21-e13f-49d7-9317-fdee692d85a2","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/resources/{{firstResourceId}}","description":"<p>Detach resource from event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add resource id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","resources","{{firstResourceId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8809d21-e13f-49d7-9317-fdee692d85a2"},{"name":"Detach Resources From Event","event":[{"listen":"test","script":{"id":"b7946fab-a14b-4ae6-a857-49a9db4000e3","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Resources\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event Resources Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"4d737380-3d52-4a1f-9835-c3a825caedcd","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/resources","description":"<p>Detach resources from event</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","resources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d737380-3d52-4a1f-9835-c3a825caedcd"}],"id":"8dd85026-28f4-4e73-a3fa-11eb72d71d65","_postman_id":"8dd85026-28f4-4e73-a3fa-11eb72d71d65","description":""},{"name":"People","item":[{"name":"Replace People To An Event","event":[{"listen":"test","script":{"id":"26ff6809-c042-4570-ad58-d6a85654f852","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//tests[\"Count People\"] = jsonData.count == 1;","tests[\"People ID\"] = jsonData.data[0].id == pm.environment.get(\"secondGlobalPersonId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": {\"type\":\"string\"},","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": true","            }","        }","    }","};","","tests[\"Valid Event People Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"c183052d-7c96-4bac-b569-2ae4dbc82b38","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{secondGlobalPersonId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/people","description":"<p>Replace all event people</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Persons id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","people"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"6a4464f3-8232-4855-b2bd-52aac725f480","name":"Replace People To An Event","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{secondGlobalPersonId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}/people"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:06:20 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9971","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":7095,\"name\":\"Postman API Test Second Person Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":5,\"name\":\"John\",\"surname\":\"Johnensen\",\"username\":\"j.john@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-06-27T06:14:27+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-17T09:07:07+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"birthday\":\"1980-02-15\",\"personalIdNumber\":\"38002280000\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"gender\":\"male\",\"tags\":[\"B2B\"],\"emails\":[{\"id\":37557,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":37559,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":37561,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":37563,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":37565,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":37455,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":37457,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":37459,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":37461,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":37463,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":37529,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":37531,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":37533,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":37535,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":37537,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":7619,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"c183052d-7c96-4bac-b569-2ae4dbc82b38"},{"name":"Get Single Event People","event":[{"listen":"test","script":{"id":"80909608-574e-421b-92c2-de20ee84396e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": {\"type\":\"string\"},","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": true","            }","        }","    }","};","","tests[\"Valid Event People Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9542baf9-2d5c-4d79-83fc-2ced30f78360","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/people","description":"<p>Get all people from an event</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","people"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"918306d6-d315-4f4f-9c8f-7ade9c49f61c","name":"Get Single Event People","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}/people"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:06:34 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9970","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":7095,\"name\":\"Postman API Test Second Person Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":5,\"name\":\"John\",\"surname\":\"Johnensen\",\"username\":\"j.john@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-06-27T06:14:27+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-17T09:07:07+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"birthday\":\"1980-02-15\",\"personalIdNumber\":\"38002280000\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"gender\":\"male\",\"tags\":[\"B2B\"],\"emails\":[{\"id\":37557,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":37559,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":37561,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":37563,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":37565,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":37455,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":37457,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":37459,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":37461,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":37463,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":37529,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":37531,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":37533,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":37535,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":37537,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":7619,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"9542baf9-2d5c-4d79-83fc-2ced30f78360"},{"name":"Add People To An Event","event":[{"listen":"test","script":{"id":"29c42c23-a2ad-4c3e-b81e-59f08f781adb","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count People\"] = jsonData.count == 2;","tests[\"People Name1\"] = jsonData.data[0].name == \"John\";","tests[\"People Name2\"] = jsonData.data[1].name == \"Postman API Test Second Person Name\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": {\"type\":\"string\"},","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": true","            }","        }","    }","};","","tests[\"Valid Event People Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"60845d4d-ddaa-40be-9277-c4162da8020e","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstGlobalPersonId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/people","description":"<p>Add people to an event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Persons id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","people"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"40b76baa-2579-42be-a302-a0be5070646e","name":"Add People To An Event","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstGlobalPersonId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}/people"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:06:41 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9969","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":7095,\"name\":\"Postman API Test Second Person Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":5,\"name\":\"John\",\"surname\":\"Johnensen\",\"username\":\"j.john@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-06-27T06:14:27+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-17T09:07:07+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"birthday\":\"1980-02-15\",\"personalIdNumber\":\"38002280000\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"gender\":\"male\",\"tags\":[\"B2B\"],\"emails\":[{\"id\":37557,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":37559,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":37561,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":37563,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":37565,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":37455,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":37457,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":37459,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":37461,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":37463,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":37529,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":37531,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":37533,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":37535,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":37537,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":7619,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]},{\"id\":8469,\"name\":\"Arturas\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"starred\":\"no\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-10T06:41:10+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T07:58:30+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"birthday\":\"2000-02-03\",\"personalIdNumber\":\"333256855655\",\"customerStatus\":{\"id\":2,\"name\":\"customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"gender\":\"male\",\"tags\":[\"B2B\"],\"emails\":[{\"id\":44995,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":44997,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":44999,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":45001,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":45003,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":44893,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":44895,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":44897,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":44899,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":44901,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":44967,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":44969,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":44971,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":44973,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":44975,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":9103,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"60845d4d-ddaa-40be-9277-c4162da8020e"},{"name":"Detach Person From Event","event":[{"listen":"test","script":{"id":"7f267827-1e81-4bc6-a950-0f519c039264","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count People\"] = jsonData.count == 1;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": {\"type\":\"string\"},","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": true","            }","        }","    }","};","","tests[\"Valid Event People Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"1dfa7ef4-47f4-4e45-8393-9b0e5026554c","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/people/{{firstGlobalPersonId}}","description":"<p>Detach single person from event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Persons id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","people","{{firstGlobalPersonId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1dfa7ef4-47f4-4e45-8393-9b0e5026554c"},{"name":"Detach People From Event","event":[{"listen":"test","script":{"id":"cf015a9d-3090-4c1b-be35-46ef5c131166","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count People\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event People Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"0b400f8a-0fee-4316-9938-f95650cc5eef","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/people","description":"<p>Detach all people from event</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","people"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b400f8a-0fee-4316-9938-f95650cc5eef"}],"id":"1208af85-46ea-4cfb-bb1d-ba4ad6ed6c71","_postman_id":"1208af85-46ea-4cfb-bb1d-ba4ad6ed6c71","description":""},{"name":"Companies","item":[{"name":"Add Companies To An Event","event":[{"listen":"test","script":{"id":"68672c04-223e-415a-95ca-93631b124956","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//tests[\"Count Companies\"] = jsonData.count == 2;","tests[\"Company Id\"] = jsonData.data[0].id == pm.environment.get(\"firstGlobalCompanyId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": {\"type\":\"string\"},","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": {\"type\":\"string\"},","                    \"code\": {\"type\":\"string\"},","                    \"vatCode\": {\"type\":\"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": false","            }","        }","    }","};","","tests[\"Valid Event Companies Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"c9c29200-2361-4ad4-bfe8-f06e86f0ff5c","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstGlobalCompanyId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/companies","description":"<p>Add companies to an event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Company id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","companies"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"b1d99c9b-4567-43d7-8aa0-6a55a258350b","name":"Add Companies To An Event","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"{{firstGlobalCompanyId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|id <br> Integer |Add Company id <br> **Example:**  \"id\": \"7\"     |"}]},"url":"https://api.teamgate.com/v4/events/{{eventId}}/companies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:14:11 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9905","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":4241,\"name\":\"Postman API Test First Company Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-05-08T11:01:52+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-05-08T11:01:52+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"code\":\"1234567890\",\"vatCode\":\"LT1234567890\",\"customerStatus\":{\"id\":0,\"name\":\"non_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"tags\":[\"B2B\",\"B2C\",\"C2B\",\"C2C\"],\"emails\":[{\"id\":22919,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":22921,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":22923,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":22925,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":22927,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":22831,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":22833,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":22835,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":22837,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":22839,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":22899,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":22901,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":22903,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":22905,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":22907,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":4701,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"c9c29200-2361-4ad4-bfe8-f06e86f0ff5c"},{"name":"Get Single Event Companies","event":[{"listen":"test","script":{"id":"6e40e695-15fc-4972-a446-10dfac863245","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": {\"type\":\"string\"},","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": {\"type\":\"string\"},","                    \"code\": {\"type\":\"string\"},","                    \"vatCode\": {\"type\":\"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": false","            }","        }","    }","};","","tests[\"Valid Event Companies Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"30d9e873-f5c0-4c33-a31c-0d935a439ae5","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/companies","description":"<p>Get event companies</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","companies"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"ef01f405-14b2-4ea3-bb61-b4aac028e3c8","name":"Get Single Event Companies","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}/companies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:14:19 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9904","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":4241,\"name\":\"Postman API Test First Company Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-05-08T11:01:52+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-05-08T11:01:52+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"code\":\"1234567890\",\"vatCode\":\"LT1234567890\",\"customerStatus\":{\"id\":0,\"name\":\"non_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"tags\":[\"B2B\",\"B2C\",\"C2B\",\"C2C\"],\"emails\":[{\"id\":22919,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":22921,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":22923,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":22925,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":22927,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":22831,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":22833,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":22835,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":22837,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":22839,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":22899,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":22901,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":22903,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":22905,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":22907,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":4701,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"30d9e873-f5c0-4c33-a31c-0d935a439ae5"},{"name":"Replace Companies To An Event","event":[{"listen":"test","script":{"id":"843208e2-2cd8-4402-a259-0334d290d57d","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Companies\"] = jsonData.count == 2;","tests[\"Company 1 ID\"] = jsonData.data[0].id == pm.environment.get(\"firstGlobalCompanyId\") || pm.environment.get(\"secondGlobalCompanyId\");","tests[\"Company 2 ID\"] = jsonData.data[1].id == pm.environment.get(\"firstGlobalCompanyId\") || pm.environment.get(\"secondGlobalCompanyId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": {\"type\":\"string\"},","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": {\"type\":\"string\"},","                    \"code\": {\"type\":\"string\"},","                    \"vatCode\": {\"type\":\"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": false","            }","        }","    }","};","","tests[\"Valid Event Companies Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"1524d5e8-6034-40db-8036-006f09e713f8","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\":[\"{{secondGlobalCompanyId}}\", \"{{firstGlobalCompanyId}}\"]\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/companies","description":"<p>Replace event companies</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Company id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","companies"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"09ad910b-8106-4be9-9499-11742e03b450","name":"Replace Companies To An Event","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id[0]","value":"{{secondGlobalCompanyId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|id <br> Integer |Add Company id <br> **Example:**  \"id\": \"7\"     |"},{"key":"id[1]","value":"{{firstGlobalCompanyId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|id <br> Integer |Add Company id <br> **Example:**  \"id\": \"7\"     |"}]},"url":"https://api.teamgate.com/v4/events/{{eventId}}/companies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"close","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:14:25 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9903","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":4243,\"name\":\"Postman API Test Second Company Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-05-08T11:01:57+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-05-08T11:01:57+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"code\":\"1234567890\",\"vatCode\":\"LT1234567890\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"tags\":[\"B2B\",\"B2C\"],\"emails\":[{\"id\":22929,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":22931,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":22933,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":22935,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":22937,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":22841,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":22843,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":22845,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":22847,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":22849,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":22909,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":22911,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":22913,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":22915,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":22917,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":4703,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]},{\"id\":4241,\"name\":\"Postman API Test First Company Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-05-08T11:01:52+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-05-08T11:01:52+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"code\":\"1234567890\",\"vatCode\":\"LT1234567890\",\"customerStatus\":{\"id\":0,\"name\":\"non_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"tags\":[\"B2B\",\"B2C\",\"C2B\",\"C2C\"],\"emails\":[{\"id\":22919,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":22921,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":22923,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":22925,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":22927,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":22831,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":22833,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":22835,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":22837,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":22839,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":22899,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":22901,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":22903,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":22905,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":22907,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":4701,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}]}"}],"_postman_id":"1524d5e8-6034-40db-8036-006f09e713f8"},{"name":"Detach Company From Event","event":[{"listen":"test","script":{"id":"ed6f85a4-fc61-4de2-991d-a00f0f333ea8","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Companies\"] = jsonData.count == 1;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": {\"type\":\"string\"},","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": {\"type\":\"string\"},","                    \"code\": {\"type\":\"string\"},","                    \"vatCode\": {\"type\":\"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": false","            }","        }","    }","};","","tests[\"Valid Event Companies Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"8c5f9dcf-31fb-465c-a4fe-bcc4a3813a44","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/companies/{{firstGlobalCompanyId}}","description":"<p>Detach single company from event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Company id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","companies","{{firstGlobalCompanyId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c5f9dcf-31fb-465c-a4fe-bcc4a3813a44"},{"name":"Detach Companies From Event","event":[{"listen":"test","script":{"id":"cb9d3512-b846-4d7e-9f60-3e3d73390ec5","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Count Companies\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"owner\", \"starred\", \"source\", \"industry\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": {\"type\":\"integer\"},","                    \"name\": {\"type\":\"string\"},","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": {\"type\":\"string\"},","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": {\"type\":\"string\"},","                    \"code\": {\"type\":\"string\"},","                    \"vatCode\": {\"type\":\"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"tags\": {\"type\": \"array\"},","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": false","            }","        }","    }","};","","tests[\"Valid Event Companies Schema\"] = tv4.validate(jsonData, schema);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","        }","    }","};","","tests[\"Valid Event Companies Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"1c2e5340-4eb1-4fa7-9a15-68630575d4df","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/companies","description":"<p>Detach all companies from event</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","companies"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c2e5340-4eb1-4fa7-9a15-68630575d4df"}],"id":"8ba22913-f507-48bb-bab9-ca760ab0f809","_postman_id":"8ba22913-f507-48bb-bab9-ca760ab0f809","description":""},{"name":"Deals","item":[{"name":"Add Deals To An Event","event":[{"listen":"test","script":{"id":"8a584dd5-463e-46e8-9ced-bfeda09d2235","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//tests[\"Event Deal Count\"] = jsonData.count == \"2\";","tests[\"Event Deal ID\"] = jsonData.data[0].id == pm.environment.get(\"firstGlobalDealId\");","","var schema = {"," \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\",\"owner\", \"starred\", \"source\", \"created\", \"isDeleted\", \"status\", \"stage\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"price\": JSON.parse(pm.environment.get('price_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\":  JSON.parse(pm.environment.get('source_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"estimatedClosureDate\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                    \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                    \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                    \"tags\": {\"type\": \"array\"}","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": true","    }","};","","tests[\"Valid Event Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"968f5d56-4671-4242-a7f9-9069d08dc564","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstGlobalDealId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/deals","description":"<p>Add deals to an event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Deal id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"a5800418-c3ca-4de4-8a3d-e1355baef746","name":"Add Deals To An Event","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{firstGlobalDealId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}/deals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:07:34 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9966","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":2773,\"name\":\"Postman API Test First Deal Name\",\"price\":{\"value\":2015,\"currency\":\"EUR\",\"symbol\":\"\\u20ac\",\"rate\":1,\"baseValue\":2015,\"baseCurrency\":\"EUR\",\"baseSymbol\":\"\\u20ac\"},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-06-19T05:56:20+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"estimatedClosureDate\":\"2019-02-27T22:00:00+00:00\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"stage\":{\"id\":4,\"name\":\"Offer\",\"pipeline\":\"Sales\",\"probability\":35},\"pipeline\":{\"id\":5,\"name\":\"Sales\",\"stage\":{\"id\":4,\"name\":\"Offer\",\"probability\":35}},\"status\":{\"name\":\"lost\",\"time\":\"2018-06-19T05:56:20+00:00\",\"changed\":\"2018-06-19T05:56:20+00:00\"},\"tags\":[\"B2B\"]}]}"}],"_postman_id":"968f5d56-4671-4242-a7f9-9069d08dc564"},{"name":"Get Single Event Deals","event":[{"listen":"test","script":{"id":"f865c48f-990e-4557-a171-8a6479615ee9","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {"," \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\",\"owner\", \"starred\", \"source\", \"created\", \"isDeleted\", \"status\", \"stage\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"price\": JSON.parse(pm.environment.get('price_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\":  JSON.parse(pm.environment.get('source_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"estimatedClosureDate\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                    \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                    \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                    \"tags\": {\"type\": \"array\"}","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": true","    }","};","","tests[\"Valid Event Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"696452d9-863b-4ef8-a4b5-61c97be91f84","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/deals","description":"<p>Get event deals</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"a0a526b0-403b-4791-97d0-debf695987a8","name":"Get Single Event Deals","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}/deals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:07:50 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9965","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":2773,\"name\":\"Postman API Test First Deal Name\",\"price\":{\"value\":2015,\"currency\":\"EUR\",\"symbol\":\"\\u20ac\",\"rate\":1,\"baseValue\":2015,\"baseCurrency\":\"EUR\",\"baseSymbol\":\"\\u20ac\"},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-06-19T05:56:20+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"estimatedClosureDate\":\"2019-02-27T22:00:00+00:00\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"stage\":{\"id\":4,\"name\":\"Offer\",\"pipeline\":\"Sales\",\"probability\":35},\"pipeline\":{\"id\":5,\"name\":\"Sales\",\"stage\":{\"id\":4,\"name\":\"Offer\",\"probability\":35}},\"status\":{\"name\":\"lost\",\"time\":\"2018-06-19T05:56:20+00:00\",\"changed\":\"2018-06-19T05:56:20+00:00\"},\"tags\":[\"B2B\"]}]}"}],"_postman_id":"696452d9-863b-4ef8-a4b5-61c97be91f84"},{"name":"Replace Deals To An Event","event":[{"listen":"test","script":{"id":"23d4321e-7748-476b-815f-1937b1cf3a45","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Event Deal Count\"] = jsonData.count == \"2\";","tests[\"Event Deal ID 1\"] = jsonData.data[0].id == pm.environment.get(\"firstGlobalDealId\");","tests[\"Event Deal ID 2\"] = jsonData.data[1].id == pm.environment.get(\"secondGlobalDealId\");","","var schema = {"," \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\",\"owner\", \"starred\", \"source\", \"created\", \"isDeleted\", \"status\", \"stage\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"price\": JSON.parse(pm.environment.get('price_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\":  JSON.parse(pm.environment.get('source_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"estimatedClosureDate\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                    \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                    \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                    \"tags\": {\"type\": \"array\"}","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": true","    }","};","","tests[\"Valid Event Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"4b734016-c411-44c2-afea-af371e5822b8","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": [\"{{firstGlobalDealId}}\", \"{{secondGlobalDealId}}\"]\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/deals","description":"<p>Replace all event deals</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Deal id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"b9d1d144-b43f-41a6-a1d3-c5c133b68f90","name":"Replace Deals To An Event","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"id\": [\"{{firstGlobalDealId}}\", \"{{secondGlobalDealId}}\"]\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}/deals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:07:57 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9964","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":2773,\"name\":\"Postman API Test First Deal Name\",\"price\":{\"value\":2015,\"currency\":\"EUR\",\"symbol\":\"\\u20ac\",\"rate\":1,\"baseValue\":2015,\"baseCurrency\":\"EUR\",\"baseSymbol\":\"\\u20ac\"},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-06-19T05:56:20+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"estimatedClosureDate\":\"2019-02-27T22:00:00+00:00\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"stage\":{\"id\":4,\"name\":\"Offer\",\"pipeline\":\"Sales\",\"probability\":35},\"pipeline\":{\"id\":5,\"name\":\"Sales\",\"stage\":{\"id\":4,\"name\":\"Offer\",\"probability\":35}},\"status\":{\"name\":\"lost\",\"time\":\"2018-06-19T05:56:20+00:00\",\"changed\":\"2018-06-19T05:56:20+00:00\"},\"tags\":[\"B2B\"]},{\"id\":2777,\"name\":\"Postman API Test Second Deal Name\",\"price\":{\"value\":1248,\"currency\":\"EUR\",\"symbol\":\"\\u20ac\",\"rate\":1,\"baseValue\":1248,\"baseCurrency\":\"EUR\",\"baseSymbol\":\"\\u20ac\"},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-06-19T05:57:30+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"estimatedClosureDate\":\"2019-02-27T22:00:00+00:00\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"stage\":{\"id\":4,\"name\":\"Offer\",\"pipeline\":\"Sales\",\"probability\":35},\"pipeline\":{\"id\":5,\"name\":\"Sales\",\"stage\":{\"id\":4,\"name\":\"Offer\",\"probability\":35}},\"status\":{\"name\":\"lost\",\"time\":\"2018-06-19T05:57:30+00:00\",\"changed\":\"2018-06-19T05:57:30+00:00\"},\"tags\":[\"B2C\"]}]}"}],"_postman_id":"4b734016-c411-44c2-afea-af371e5822b8"},{"name":"Detach Deal From Event","event":[{"listen":"test","script":{"id":"f5f5892d-478b-46bc-a51b-bb8f0d1546b8","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Detached Successfully\"] = jsonData.success;","tests[\"Event Deal Count\"] = jsonData.count == \"1\";","tests[\"Event Deal ID\"] = jsonData.data[0].id == pm.environment.get(\"secondGlobalDealId\");","","var schema = {"," \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\",\"owner\", \"starred\", \"source\", \"created\", \"isDeleted\", \"status\", \"stage\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"price\": JSON.parse(pm.environment.get('price_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\":  JSON.parse(pm.environment.get('source_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"estimatedClosureDate\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                    \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                    \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                    \"tags\": {\"type\": \"array\"}","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": true","    }","};","","tests[\"Valid Event Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9e53289b-023b-4f9a-ab86-50cddeb8f955","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/deals/{{firstGlobalDealId}}","description":"<p>Detach single deal from event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add Deal id <br /> <strong>Example:</strong>  <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","deals","{{firstGlobalDealId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e53289b-023b-4f9a-ab86-50cddeb8f955"},{"name":"Detach Deals From Event","event":[{"listen":"test","script":{"id":"8f45d7d8-98e5-45e1-9341-4f645299e1fb","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Detached Successfully\"] = jsonData.success;","tests[\"Event Deal Count\"] = jsonData.count === 0;","","var schema = {"," \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"8f96ef3c-135e-46ad-abbe-8dc7c5c22db3","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/deals","description":"<p>Detach all deals from event</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f96ef3c-135e-46ad-abbe-8dc7c5c22db3"}],"id":"657e17a2-4fb2-4419-ad5c-434485bd073a","_postman_id":"657e17a2-4fb2-4419-ad5c-434485bd073a","description":""},{"name":"Files","item":[{"name":"Attach Event Files","event":[{"listen":"test","script":{"id":"3563a2a0-7489-4156-9a21-db216becdbcf","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Event File Count\"] = jsonData.count == \"1\";","tests[\"Event File ID\"] = jsonData.data[0].id == pm.environment.get(\"firstGlobalFileId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"c8d7d153-22c7-4471-a5ea-27acca4593bf","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": \"{{firstGlobalFileId}}\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/files","description":"<p>Add files to an event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add File id <br /> <strong>Example:</strong> <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"1fc414dd-6bef-42bb-a798-3bb9fa7f8c0f","name":"Attach Event Files","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|id <br> Integer |Add File id <br> **Example:**  \"id\": \"7\"     |"}]},"url":"https://api.teamgate.com/v4/events/{{eventId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:15:38 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9997","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"events\":[{\"id\":2541,\"name\":\"Postman API Test Meeting\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=f47548b94737e36e4baa0d03dbd0410b3e2def45\",\"time\":\"2018-05-08T12:16:01+03:00\"}}]}"}],"_postman_id":"c8d7d153-22c7-4471-a5ea-27acca4593bf"},{"name":"Get File List of an Activity","event":[{"listen":"test","script":{"id":"1bb412b4-8090-4998-9abb-0d7f79fbd55a","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"5825fdc7-0320-48ea-89b4-bb0a6ed7ddcf","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/files","description":"<p>Get event files</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"5cab77fb-16fb-4e43-ad26-7405c5f8ee08","name":"Get Single Event Files","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:15:47 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9996","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"events\":[{\"id\":2541,\"name\":\"Postman API Test Meeting\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=5f3741627d35838f12e21b7689644b580b117a78\",\"time\":\"2018-05-08T12:16:10+03:00\"}}]}"}],"_postman_id":"5825fdc7-0320-48ea-89b4-bb0a6ed7ddcf"},{"name":"Replace Event Files","event":[{"listen":"test","script":{"id":"ff53775a-525c-4f71-814f-b2e493281524","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Event File Count\"] = jsonData.count == \"2\";","tests[\"Event File ID 1\"] = jsonData.data[0].id == pm.environment.get(\"firstGlobalFileId\");","tests[\"Event File ID 2\"] = jsonData.data[1].id == pm.environment.get(\"secondGlobalFileId\");","","postman.setGlobalVariable(\"lastFileId\", jsonData.data[0].id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"076fb77b-db3a-4ff4-939e-852d023aa29c","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": [\"{{firstGlobalFileId}}\", \"{{secondGlobalFileId}}\"]\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/files","description":"<p>Replace all event files</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add File id <br /> <strong>Example:</strong> <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"c0e90b2b-7a9d-464b-b911-53433ea2df3f","name":"Replace Event Files","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|id <br> Integer |Add File id <br> **Example:**  \"id\": \"7\"     |"},{"key":"value[1]","value":"{{secondGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|id <br> Integer |Add Fiel id <br> **Example:**  \"id\": \"7\"     |"}]},"url":"https://api.teamgate.com/v4/events/{{eventId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:15:53 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9995","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"events\":[{\"id\":2541,\"name\":\"Postman API Test Meeting\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=6c5caba9fa31fa3c7787fe410a8707c4a18c33ba\",\"time\":\"2018-05-08T12:16:16+03:00\"}},{\"id\":1557,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-05-08T11:01:24+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"events\":[{\"id\":2541,\"name\":\"Postman API Test Meeting\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1557&hash=ad5b09d8ed6bf7b9c6b4738a766e5163192ade41\",\"time\":\"2018-05-08T12:16:16+03:00\"}}]}"}],"_postman_id":"076fb77b-db3a-4ff4-939e-852d023aa29c"},{"name":"Detach Event File","event":[{"listen":"test","script":{"id":"215faa58-be26-4e7d-adc4-a248e5d5bb82","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Detached Successfully\"] = jsonData.success;","tests[\"Event File Count\"] = jsonData.count == \"1\";","tests[\"Event File ID\"] = jsonData.data[0].id == pm.environment.get(\"secondGlobalFileId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"2573142c-9806-4736-ab5f-7656c6104e62","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/files/{{firstGlobalFileId}}","description":"<p>Detach single file from event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer</td>\n<td>Add File id <br /> <strong>Example:</strong> <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","files","{{firstGlobalFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2573142c-9806-4736-ab5f-7656c6104e62"},{"name":"Detach Event Files","event":[{"listen":"test","script":{"id":"d8ed6f40-2781-451d-b147-18804c60c38b","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Detached Successfully\"] = jsonData.success;","tests[\"Event File Count\"] = jsonData.count === 0;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"575830cf-fb25-4595-969a-fd3022ebcc1b","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/files","description":"<p>Detach all files from event</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"575830cf-fb25-4595-969a-fd3022ebcc1b"}],"id":"bf9d5a30-0a26-4645-8207-d0426200e9b5","_postman_id":"bf9d5a30-0a26-4645-8207-d0426200e9b5","description":""},{"name":"Comments","item":[{"name":"Add a New Comment","event":[{"listen":"test","script":{"id":"278ee481-bb0e-417f-9a61-548fc0c76390","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Testing Response Values","tests[\"Comment Value\"] = jsonData.data.value == \"Postman API Test Comment\";","tests[\"Comment crated Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Comment Owner Id\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Comment Owner Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Comment Owner Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Comment Owner Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","//Getting variable","pm.environment.set(\"commentId\", jsonData.data.id);","","//Testing Schema","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"value\", \"created\"],","            \"properties\": {","                \"type\": \"object\",","                \"id\": { \"type\": \"integer\" }, ","                \"value\": { \"type\": \"string\" },","                \"created\": JSON.parse(pm.environment.get('created_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Comment Schema\"] = tv4.validate(jsonData, schema, false, true);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"89d2aecf-d68e-43cb-ab39-39cc59ddf37e","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": \"Postman API Test Comment\"\n}"},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/comments","description":"<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br />String</td>\n<td><strong>Example:</strong>  <code>\"value\": \"My first comment\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","comments"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"af511028-1c69-46bb-a696-baf67d96cf6c","name":"Create Comment","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": \"Postman API Test Comment\"\n}"},"url":"{{url}}/events/{{globalEventId}}/comments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Apr 2018 07:04:27 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9999","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1524640500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":643,\"value\":\"Postman API Test Comment\",\"created\":{\"time\":\"2018-04-25T10:04:39+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}}}}"}],"_postman_id":"89d2aecf-d68e-43cb-ab39-39cc59ddf37e"},{"name":"List Comments of an Activity","event":[{"listen":"test","script":{"id":"d3cb35c7-0e19-4108-bd43-0c97d9252ac0","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"value\", \"created\"],","                \"properties\": {","                    \"type\": \"object\",","                    \"id\": { \"type\": \"integer\" }, ","                    \"value\": { \"type\": \"string\" },","                    \"created\": JSON.parse(pm.environment.get('created_schema'))","                },","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Event Comments Schema\"] = tv4.validate(jsonData, schema);","","postman.setGlobalVariable(\"commentId\", jsonData.data.id);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"0d86288e-3fb3-4862-bbb8-e1660e64b6ab","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/comments","description":"<p>Get event comments</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> String</td>\n<td>Value of the Comment. You can search by full value or by fragment of value. <br />Example for strict search: <code>?name=My%20first%20comment</code> <br />And search by text fragment: <code>?name[like]=first</code></td>\n</tr>\n<tr>\n<td><strong>createdUserId</strong> <br /> Integer</td>\n<td>Unique identifier of the user who created the comment. <br /> <strong>Example:</strong> <code>?createdUserId=3</code></td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br /> DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>order</strong> <br /> String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <br /> Possible values: <ul><li> id </li><li> name </li><li> createdTime </li><li> updatedTime </li><li> estimatedClosureDate </li></ul> Example: <code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}","comments"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"738ef082-a9a4-43e9-a972-5e8a9ffea85d","name":"Get Event Comments","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}/comments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:16:37 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9992","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":0,\"data\":[]}"}],"_postman_id":"0d86288e-3fb3-4862-bbb8-e1660e64b6ab"}],"id":"3a97e8a2-f025-4163-8eed-7313caebfa56","_postman_id":"3a97e8a2-f025-4163-8eed-7313caebfa56","description":""},{"name":"Create a New Call","event":[{"listen":"test","script":{"id":"3ff68e06-c492-4cbc-8390-90e0d1795661","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","tests[\"Call canEdit\"] = jsonData.data.canEdit == \"yes\";","tests[\"Call canView\"] = jsonData.data.canView == \"yes\";","tests[\"Call Type\"] = jsonData.data.type == \"call\";","tests[\"Call Name\"] = jsonData.data.name == \"Postman API Test Call\";","tests[\"Call isDeleted [NO]\"] = jsonData.data.isDeleted == \"no\";","tests[\"Call Description\"] = jsonData.data.description == \"Description for Call form API testing tool Postman\";","tests[\"Call START\"] = jsonData.data.start == pm.environment.get(\"tomorrow\");","tests[\"Call END\"] = jsonData.data.end == pm.environment.get(\"tomorrow60\");","tests[\"Call status\"] = jsonData.data.status == \"incomplete\";","tests[\"Call Owner\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Call Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Call Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Call Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Call Crated Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Call Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Call Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Call Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Call Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Call Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Call Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Call Creator Small Picture\"] = jsonData.data.updated.user.picture.small.has(\".jpg\");","tests[\"Call Creator Medium Picture\"] = jsonData.data.updated.user.picture.medium.has(\".jpg\");","tests[\"Call Creator Large Picture\"] = jsonData.data.updated.user.picture.large.has(\".jpg\");","","tests[\"Appointment Deals\"] = jsonData.data.deals[0].id == pm.environment.get(\"firstGlobalDealId\");","tests[\"Appointment Products\"] = jsonData.data.products[0].id == pm.environment.get(\"firstGlobalProductId\");","tests[\"Appointment Companies\"] = jsonData.data.companies[0].id == pm.environment.get(\"firstGlobalCompanyId\");","tests[\"Appointment Leads\"] = jsonData.data.leads[0].id == pm.environment.get(\"firstGlobalLeadId\");","","//Set New Varaible","pm.environment.set(\"eventId\", jsonData.data.id);","//pm.environment.set(\"todayDate\",(new Date('')).toISOString());","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"created\", \"updated\"],","            \"properties\": {","                \"id\": {\"type\": \"integer\"},","                \"canEdit\": {\"type\": \"string\"},","                \"canView\": {\"type\": \"string\"},","                \"type\": {\"type\": \"string\"},","                \"name\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"start\": {\"type\": \"string\"},","                \"end\": {\"type\": \"string\"},","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                \"products\": JSON.parse(pm.environment.get('products_schema')),","                \"companies\": JSON.parse(pm.environment.get('companies_schema')),","                \"leads\": JSON.parse(pm.environment.get('leads_schema'))","            },","            \"additionalProperties\": true","        }","    }","};","","tests[\"Valid Event Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"54abed6f-fc8e-44f0-bd66-8f0c15186299","request":{"method":"POST","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Call\",\n  \"type\": \"call\",\n  \"status\": \"incomplete\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"resources\": \"{{firstResourceId}}\",\n  \"description\": \"Description for Call form API testing tool Postman\",\n  \"start\": \"{{tomorrow}}\",\n  \"end\": \"{{tomorrow60}}\",\n  \"products\": \"{{firstGlobalProductId}}\",\n  \"companies\": \"{{firstGlobalCompanyId}}\",\n  \"deals\": \"{{firstGlobalDealId}}\",\n  \"leads\": \"{{firstGlobalLeadId}}\",\n  \"reminders\":[\n\t  \t{\n\t  \t\t\"type\":\"sms\",\n\t  \t\t\"before\": \"900\"\n\t  \t},\n\t  \t{\n\t  \t\t\"type\":\"email\",\n\t  \t\t\"before\": \"3600\"\n\t  \t}\n  \t]\n}"},"url":"https://api.teamgate.com/v4/events","description":"<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong>  <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br /> String</td>\n<td>Default <code>type</code> value is <code>task</code>. Possible Values: <ul><li> <code>task</code> - event as task </li><li> <code>call</code> - event as call </li><li> <code>appointment</code> - event as appointment </li><li> <code>note</code> - event as note </li><li> custom type name or Id - event custom type </li></ul></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br /> String</td>\n<td>This attribute is used only for the calls and tasks. Appointments and notes do not have this attribute. <br /> Possible values for calls: <ul><li> <code>incomplete</code> - active call </li><li> <code>successful</code> - successfully completed call </li><li> <code>unsuccessful</code> - unsuccessfully completed call </li></ul> Possible values for tasks: <ul><li> <code>incomplete</code> - active task </li><li> <code>completed</code> - completed task </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>resources</strong> <br /> Integer</td>\n<td><strong>Example:</strong>  <ul><li>   <code>\"resources\": \"1\"</code> </li><li>  <code>\"resources\": \"['1','2']\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br /> string</td>\n<td><strong>Example:</strong>      <code>\"description\": \"Very important appointment with partner\"</code></td>\n</tr>\n<tr>\n<td><strong>start</strong> <br /> Date</td>\n<td><strong>Example:</strong>   <code>\"start\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>end</strong> <br /> Date</td>\n<td><strong>Example:</strong>  <code>\"end\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>products</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"products\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>companies</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"companies\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>leads</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"leads\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>deals</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"deals\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>reminders</strong> <br /> Object/Array</td>\n<td><strong>Example 1:</strong>   <code>\"reminders\": {\"type\":\"email\",\"before\":\"900\"}</code><br /><strong>Example 2:</strong>   <code>\"reminders\": [{\"type\":\"sms\",\"before\":\"900\"},{\"type\":\"email\",\"before\":\"3600\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events"],"host":["api","teamgate","com"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"abe94122-5a31-43db-8f67-3837bb557071","name":"Create Event: Call","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Call\",\n  \"type\": \"call\",\n  \"status\": \"incomplete\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"resources\": \"{{firstResourceId}}\",\n  \"description\": \"Description for Call form API testing tool Postman\",\n  \"date\": \"2016-12-05T11:45:00+02:00\",\n  \"end\": \"2016-12-05T14:45:00+02:00\"\n}"},"url":"https://api.teamgate.com/v4/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:01:32 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9989","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":4941,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"call\",\"name\":\"Postman API Test Call\",\"isDeleted\":\"no\",\"description\":\"Description for Call form API testing tool Postman\",\"start\":\"2016-12-05T12:30:00+00:00\",\"end\":\"2016-12-05T12:45:00+00:00\",\"status\":\"incomplete\",\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"created\":{\"time\":\"2018-07-20T08:01:57+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:01:57+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}}}}"}],"_postman_id":"54abed6f-fc8e-44f0-bd66-8f0c15186299"},{"name":"Create a New Task","event":[{"listen":"test","script":{"id":"097d6045-cc2e-4a61-92aa-ea6beb814166","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","tests[\"Task canEdit\"] = jsonData.data.canEdit == \"yes\";","tests[\"Task canView\"] = jsonData.data.canView == \"yes\";","tests[\"Task Type\"] = jsonData.data.type == \"task\";","tests[\"Task Name\"] = jsonData.data.name == \"Postman API Test Task\";","tests[\"Task Description\"] = jsonData.data.description == \"Description for Task form API testing tool Postman\";","tests[\"Task START\"] = jsonData.data.start == pm.environment.get(\"tomorrow\");","tests[\"Task END\"] = jsonData.data.end == pm.environment.get(\"tomorrow60\");","tests[\"Task status\"] = jsonData.data.status == \"completed\";","tests[\"Task Owner\"] = jsonData.data.owner.id == pm.environment.get(\"secondUserId\");","tests[\"Task Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Task Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Task Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Task Crated Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Task Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Task Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Task Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Task Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Task Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Task Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Task Updator Small Picture\"] = jsonData.data.updated.user.picture.small.has(\".jpg\");","tests[\"Task Updator Medium Picture\"] = jsonData.data.updated.user.picture.medium.has(\".jpg\");","tests[\"Task Updator Large Picture\"] = jsonData.data.updated.user.picture.large.has(\".jpg\");","","tests[\"Appointment Deals\"] = jsonData.data.deals[0].id == pm.environment.get(\"firstGlobalDealId\");","tests[\"Appointment Companies\"] = jsonData.data.companies[0].id == pm.environment.get(\"firstGlobalCompanyId\");","","//Set variable","pm.environment.set(\"eventId\", jsonData.data.id);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"created\", \"updated\"],","            \"properties\": {","                \"id\": {\"type\": \"integer\"},","                \"canEdit\": {\"type\": \"string\"},","                \"canView\": {\"type\": \"string\"},","                \"type\": {\"type\": \"string\"},","                \"name\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"start\": {\"type\": \"string\"},","                \"end\": {\"type\": \"string\"},","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                \"companies\": JSON.parse(pm.environment.get('companies_schema')),","            },","            \"additionalProperties\": true","        }","    }","};","","tests[\"Valid Event Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"85dac403-ccf3-4140-9a43-35f82403cd18","request":{"method":"POST","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Task\",\n  \"type\": \"task\",\n  \"status\": \"successful\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"description\": \"Description for Task form API testing tool Postman\",\n  \"start\": \"{{tomorrow}}\",\n  \"end\": \"{{tomorrow60}}\",\n  \"products\": \"{{firstGlobalProductId}}\",\n  \"companies\": \"{{firstGlobalCompanyId}}\",\n  \"deals\": \"{{firstGlobalDealId}}\",\n  \"leads\": \"{{firstGlobalLeadId}}\",\n  \"reminders\":[\n\t  \t{\n\t  \t\t\"type\":\"sms\",\n\t  \t\t\"before\": \"900\"\n\t  \t},\n\t  \t{\n\t  \t\t\"type\":\"email\",\n\t  \t\t\"before\": \"86400\"\n\t  \t}\n  \t]\n}"},"url":"https://api.teamgate.com/v4/events","description":"<p>Create event: task</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong>  <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br /> String</td>\n<td>Default <code>type</code> value is <code>task</code>. Possible Values: <ul><li> <code>task</code> - event as task </li><li> <code>call</code> - event as call </li><li> <code>appointment</code> - event as appointment </li><li> <code>note</code> - event as note </li><li> custom type name or Id - event custom type </li></ul></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br /> String</td>\n<td>This attribute is used only for the calls and tasks. Appointments and notes do not have this attribute. <br /> Possible values for calls: <ul><li> <code>incomplete</code> - active call </li><li> <code>successful</code> - successfully completed call </li><li> <code>unsuccessful</code> - unsuccessfully completed call </li></ul> Possible values for tasks: <ul><li> <code>incomplete</code> - active task </li><li> <code>completed</code> - completed task </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br /> string</td>\n<td><strong>Example:</strong>      <code>\"description\": \"Very important appointment with partner\"</code></td>\n</tr>\n<tr>\n<td><strong>start</strong> <br /> Date</td>\n<td><strong>Example:</strong>   <code>\"start\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>end</strong> <br /> Date</td>\n<td><strong>Example:</strong>  <code>\"end\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>products</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"products\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>companies</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"companies\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>leads</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"leads\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>deals</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"deals\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>reminders</strong> <br /> Object/Array</td>\n<td><strong>Example 1:</strong>   <code>\"reminders\": {\"type\":\"email\",\"before\":\"900\"}</code><br /><strong>Example 2:</strong>   <code>\"reminders\": [{\"type\":\"sms\",\"before\":\"900\"},{\"type\":\"email\",\"before\":\"3600\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"b3c59708-64a6-4004-8e90-9739f2235d57","name":"Create Event: Task","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Task\",\n  \"type\": \"task\",\n  \"status\": \"successful\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser\",\n  \"description\": \"Description for Task form API testing tool Postman\",\n  \"start\": \"2016-12-05T11:45:00+02:00\",\n  \"end\": \"2016-12-05T14:45:00+02:00\"\n}"},"url":"https://api.teamgate.com/v4/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:01:47 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9988","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":4943,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"task\",\"name\":\"Postman API Test Task\",\"isDeleted\":\"no\",\"description\":\"Description for Task form API testing tool Postman\",\"start\":\"2016-12-05T09:45:00+00:00\",\"end\":\"2016-12-05T12:45:00+00:00\",\"status\":\"completed\",\"owner\":{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}},\"completed\":{\"time\":\"2018-07-20T08:02:12+00:00\"},\"created\":{\"time\":\"2018-07-20T08:02:12+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:02:12+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}}}}"}],"_postman_id":"85dac403-ccf3-4140-9a43-35f82403cd18"},{"name":"Create a New Note","event":[{"listen":"test","script":{"id":"24554ddd-10b2-4bc0-8fc5-d2f6c9802ee5","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Value Test","tests[\"Note canEdit\"] = jsonData.data.canEdit == \"yes\";","tests[\"Note canView\"] = jsonData.data.canView == \"yes\";","tests[\"Note Type\"] = jsonData.data.type == \"note\";","tests[\"Note Value\"] = jsonData.data.value == \"Very important Postman test\";","tests[\"Note Crated Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Note Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Note Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Note Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Note Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Note Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Note Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Task Updator Small Picture\"] = jsonData.data.updated.user.picture.small.has(\".jpg\");","tests[\"Task Updator Medium Picture\"] = jsonData.data.updated.user.picture.medium.has(\".jpg\");","tests[\"Task Updator Large Picture\"] = jsonData.data.updated.user.picture.large.has(\".jpg\");","","tests[\"Appointment Deals\"] = jsonData.data.deals[0].id == pm.environment.get(\"firstGlobalDealId\");","tests[\"Appointment Products\"] = jsonData.data.products[0].id == pm.environment.get(\"firstGlobalProductId\");","tests[\"Appointment Companies\"] = jsonData.data.companies[0].id == pm.environment.get(\"firstGlobalCompanyId\");","tests[\"Appointment Leads\"] = jsonData.data.leads[0].id == pm.environment.get(\"firstGlobalLeadId\");","","//Set Variable","pm.environment.set(\"noteId\", jsonData.data.id);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"created\", \"updated\"],","            \"properties\": {","                \"id\": {\"type\": \"integer\"},","                \"canEdit\": {\"type\": \"string\"},","                \"canView\": {\"type\": \"string\"},","                \"type\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"value\": {\"type\": \"string\"},","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                \"products\": JSON.parse(pm.environment.get('products_schema')),","                \"companies\": JSON.parse(pm.environment.get('companies_schema')),","                \"leads\": JSON.parse(pm.environment.get('leads_schema')),","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Event Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"f7b1d7c0-2c20-4dfc-9e27-39b3d9f6fc59","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"note\",\n  \"products\": \"{{firstGlobalProductId}}\",\n  \"companies\": \"{{firstGlobalCompanyId}}\",\n  \"deals\": \"{{firstGlobalDealId}}\",\n  \"leads\": \"{{firstGlobalLeadId}}\",\n  \"value\": \"Very important Postman test\"\n}"},"url":"https://api.teamgate.com/v4/events","description":"<p>Create event: note</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>type</strong> <br /> String</td>\n<td>Default <code>type</code> value is <code>task</code>. Possible Values: <ul><li> <code>task</code> - event as task </li><li> <code>call</code> - event as call </li><li> <code>appointment</code> - event as appointment </li><li> <code>note</code> - event as note </li><li> custom type name or Id - event custom type </li></ul></td>\n</tr>\n<tr>\n<td><strong>value</strong> <br /> String</td>\n<td>This attribute is used only for the notes <br /> <strong>Example:</strong> <code>\"value\": \"Very important appointment with partner\"</code></td>\n</tr>\n<tr>\n<td><strong>products</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"products\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>companies</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"companies\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>leads</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"leads\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>deals</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"deals\": \"17\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"ade440b8-1429-44f3-9c6b-485246dc4b36","name":"Create Event: Note","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"type","value":"note","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|type <br> String |Default `type` value is `task`. Possible Values: <ul><li> `task` - event as task </li><li> `call` - event as call </li><li> `appointment` - event as appointment </li><li> `note` - event as note </li><li> custom type name or Id - event custom type </li></ul>   |"},{"key":"ownerId","value":"{{firstUserId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|ownerId <br> Integer |**Example:**   \"ownerId\": \"1\"   |"},{"key":"value","value":"Very important Postman test","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|ownerUsername <br> String |This attribute is used only for the notes <br> **Example:**     \"value\": \"Very important appointment with partner\"    |"},{"key":"ownerUsername","value":"PostmanUser","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|ownerUsername <br> String |**Example:**    \"ownerUsername\": \"john@example.com\"   |","type":"text"}]},"url":"https://api.teamgate.com/v4/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:11:08 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9931","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525767300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":2539,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"note\",\"isDeleted\":\"no\",\"value\":\"Very important Postman test\",\"created\":{\"time\":\"2018-05-08T11:11:31+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-05-08T11:11:31+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}}}}"}],"_postman_id":"f7b1d7c0-2c20-4dfc-9e27-39b3d9f6fc59"},{"name":"Create an New Appointment","event":[{"listen":"test","script":{"id":"b8a1da4b-8ad6-4924-89a2-ff220b4d5cfe","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Value Test","tests[\"Appointment canEdit\"] = jsonData.data.canEdit == \"yes\";","tests[\"Appointment canView\"] = jsonData.data.canView == \"yes\";","tests[\"Appointment Type\"] = jsonData.data.type == \"appointment\";","tests[\"Appointment Name\"] = jsonData.data.name == \"Postman API Test Meeting\";","tests[\"Appointment Descrioption\"] = jsonData.data.description == \"Description for Appointment form API testing tool Postman\";","tests[\"Appointment START\"] = jsonData.data.start == pm.environment.get(\"tomorrow\");","tests[\"Appointment END\"] = jsonData.data.end == pm.environment.get(\"tomorrow60\");","tests[\"Appointment is AllDay NO\"] = jsonData.data.allDay == \"no\";","tests[\"Appointment Place\"] = jsonData.data.place == \"Postman area\";","tests[\"Appointment is Secret NO\"] = jsonData.data.isSecret == \"yes\";","","tests[\"Appointment Owner\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Appointment Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Appointment Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Appointment Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Appointment Crated Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Appointment Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","","tests[\"Appointment Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Appointment Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","","tests[\"Appointment Deals\"] = jsonData.data.deals[0].id == pm.environment.get(\"firstGlobalDealId\");","tests[\"Appointment Companies\"] = jsonData.data.companies[0].id == pm.environment.get(\"firstGlobalCompanyId\");","tests[\"Appointment Leads\"] = jsonData.data.leads[0].id == pm.environment.get(\"firstGlobalLeadId\");","","tests[\"Appointment Attendees1\"] = jsonData.data.attendees[0].id == pm.environment.get(\"firstUserId\");","tests[\"Appointment Attendees2\"] = jsonData.data.attendees[1].id == pm.environment.get(\"secondUserId\");","","tests[\"Appointment Resources\"] = jsonData.data.resources[0].id == pm.environment.get(\"secondResourceId\");","","//Set new variable","pm.environment.set(\"eventId\", jsonData.data.id);","","//Schema Test Value","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"created\", \"updated\"],","            \"properties\": {","                \"id\": {\"type\": \"integer\"},","                \"canEdit\": {\"type\": \"string\"},","                \"canView\": {\"type\": \"string\"},","                \"type\": {\"type\": \"string\"},","                \"name\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"start\": {\"type\": \"string\"},","                \"end\": {\"type\": \"string\"},","                \"allDay\": {\"type\": \"string\"},","                \"place\": {\"type\": \"string\"},","                \"isSecret\": {\"type\": \"string\"},","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"attendees\": {","                    \"type\": \"array\",","                    \"items\": JSON.parse(pm.environment.get('user_schema')),","                },","                \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                \"companies\": JSON.parse(pm.environment.get('companies_schema')),","                \"leads\": JSON.parse(pm.environment.get('leads_schema')),","                \"resources\": JSON.parse(pm.environment.get('resources_schema'))","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Event Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"a9a32135-d073-4a29-9f9a-2341531a9039","request":{"method":"POST","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Meeting\",\n  \"type\": \"appointment\",\n  \"place\": \"Postman area\",\n  \"isSecret\": \"1\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser@example.com\",\n  \"resources\": \"{{secondResourceId}}\",\n  \"description\": \"Description for Appointment form API testing tool Postman\",\n  \"start\": \"{{tomorrow}}\",\n  \"end\": \"{{tomorrow60}}\",\n  \"allDay\": \"no\",\n  \"attendees\": [\"{{firstUserId}}\", \"{{secondUserId}}\"],\n  \"companies\": \"{{firstGlobalCompanyId}}\",\n  \"deals\": \"{{firstGlobalDealId}}\",\n  \"leads\": \"{{firstGlobalLeadId}}\",\n  \"reminders\":[\n\t  \t{\n\t  \t\t\"type\":\"sms\",\n\t  \t\t\"before\": \"900\"\n\t  \t},\n\t  \t{\n\t  \t\t\"type\":\"email\",\n\t  \t\t\"before\": \"86400\"\n\t  \t}\n  \t]\n}"},"url":"https://api.teamgate.com/v4/events","description":"<p>Create event: appointment</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong>  <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br /> String</td>\n<td>Default <code>type</code> value is <code>task</code>. Possible Values: <ul><li> <code>task</code> - event as task </li><li> <code>call</code> - event as call </li><li> <code>appointment</code> - event as appointment </li><li> <code>note</code> - event as note </li><li> custom type name or Id - event custom type </li></ul></td>\n</tr>\n<tr>\n<td><strong>place</strong> <br /> String</td>\n<td>This attribute is used only for the appointments. <br /> <strong>Example:</strong>  <code>\"place\": \"London\"</code></td>\n</tr>\n<tr>\n<td><strong>isSecret</strong> <br /> Boolean</td>\n<td>This attribute is used only for the appointments. Indicator the appointment is private or not. <br /> Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>resources</strong> <br /> Integer</td>\n<td><strong>Example:</strong>  <ul><li>   <code>\"resources\": \"1\"</code> </li><li>  <code>\"resources\": \"['1','2']\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br /> string</td>\n<td><strong>Example:</strong>      <code>\"description\": \"Very important appointment with partner\"</code></td>\n</tr>\n<tr>\n<td><strong>start</strong> <br /> Date</td>\n<td><strong>Example:</strong> <code>\"start\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>end</strong> <br /> Date</td>\n<td><strong>Example:</strong> <code>\"end\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>allDay</strong> <br /> Boolean</td>\n<td>Indicate whether the event lasts all day. This attribute is used only for the appointments.<br /> Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>attendees</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"attendees[0]\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>leads</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"leads\": \"15\"</code></td>\n</tr>\n<tr>\n<td><strong>people</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"people\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>companies</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"companies\": \"17\"</code></td>\n</tr>\n<tr>\n<td><strong>deals</strong> <br /> Array/Integer</td>\n<td><strong>Example:</strong>   <code>\"deals\": \"20\"</code></td>\n</tr>\n<tr>\n<td><strong>reminders</strong> <br /> Object/Array</td>\n<td><strong>Example 1:</strong>   <code>\"reminders\": {\"type\":\"email\",\"before\":\"900\"}</code><br /><strong>Example 2:</strong>   <code>\"reminders\": [{\"type\":\"sms\",\"before\":\"900\"},{\"type\":\"email\",\"before\":\"3600\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"174b6d20-9b58-41ee-a5a6-3940600cdd6c","name":"Create Event: Appointment","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Meeting\",\n  \"type\": \"appointment\",\n  \"place\": \"Postman area\",\n  \"isSecret\": \"1\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser@example.com\",\n  \"resources\": \"{{secondResourceId}}\",\n  \"description\": \"Description for Appointment form API testing tool Postman\",\n  \"start\": \"2016-12-05T00:00:00+02:00\",\n  \"end\": \"2016-12-05T23:59:59+02:00\",\n  \"allDay\": \"yes\",\n  \"attendees\": [\"{{firstUserId}}\", \"{{secondUserId}}\"]\n}"},"url":"https://api.teamgate.com/v4/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:05:30 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9974","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":4949,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"appointment\",\"name\":\"Postman API Test Meeting\",\"isDeleted\":\"no\",\"description\":\"Description for Appointment form API testing tool Postman\",\"start\":\"2016-12-04T22:00:00+00:00\",\"end\":\"2016-12-05T21:59:59+00:00\",\"allDay\":\"yes\",\"place\":\"Postman area\",\"isSecret\":\"yes\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"created\":{\"time\":\"2018-07-20T08:05:55+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:05:55+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"attendees\":[{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}}],\"resources\":[{\"id\":3,\"name\":\"Coffee place\"}]}}"}],"_postman_id":"a9a32135-d073-4a29-9f9a-2341531a9039"},{"name":"Get Activities Collection","event":[{"listen":"test","script":{"id":"a8604f87-5659-4b07-b498-56a3394176b7","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"isDeleted\", \"created\", \"updated\"],","                \"properties\": {","                    \"id\": {\"type\": \"integer\"},","                    \"canEdit\": {\"type\": \"string\"},","                    \"canView\": {\"type\": \"string\"},","                    \"type\": {\"type\": \"string\"},","                    \"name\": {\"type\": \"string\"},","                    \"isDeleted\": {\"type\": \"string\"},","                    \"value\": {\"type\": \"string\"},","                    \"start\": {\"type\": \"string\"},","                    \"end\": {\"type\": \"string\"},","                    \"allDay\": {\"type\": \"string\"},","                    \"isSecret\": {\"type\": \"string\"},","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                    \"companies\": JSON.parse(pm.environment.get('companies_schema'))","                },","                \"additionalProperties\": true","            }","        }","    }","};","","tests[\"Valid Event Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"ada4ee7b-a006-4e7c-9dee-a1db57e36755","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/events?limit=2","description":"<p>Get all Events</p>\n","urlObject":{"protocol":"https","path":["v4","events"],"host":["api","teamgate","com"],"query":[{"key":"limit","value":"2"},{"disabled":true,"key":"offset","value":"2"}],"variable":[]}},"response":[],"_postman_id":"ada4ee7b-a006-4e7c-9dee-a1db57e36755"},{"name":"Get an Activity Details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"created\", \"updated\"],","            \"properties\": {","                \"id\": {\"type\": \"integer\"},","                \"canEdit\": {\"type\": \"string\"},","                \"canView\": {\"type\": \"string\"},","                \"type\": {\"type\": \"string\"},","                \"name\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"start\": {\"type\": \"string\"},","                \"end\": {\"type\": \"string\"},","                \"allDay\": {\"type\": \"string\"},","                \"place\": {\"type\": \"string\"},","                \"isSecret\": {\"type\": \"string\"},","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"attendees\": {","                    \"type\": \"array\",","                    \"items\": JSON.parse(pm.environment.get('user_schema')),","                },","                \"resources\": JSON.parse(pm.environment.get('resources_schema'))","            },","            \"additionalProperties\": true","        }","    }","};","","tests[\"Valid Event Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"5b576f18-5b18-4fb0-9cbf-8d02343420d5","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}","description":"<p>Get single Event id</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the event. <br /> <strong>Example:</strong> <code>?id=2</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{eventId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"a62ac5c6-7d56-41ef-aa88-ddfdcada741d","name":"Get single event","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:05:45 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9973","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":4949,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"appointment\",\"name\":\"Postman API Test Meeting\",\"isDeleted\":\"no\",\"description\":\"Description for Appointment form API testing tool Postman\",\"start\":\"2016-12-04T22:00:00+00:00\",\"end\":\"2016-12-05T21:59:59+00:00\",\"allDay\":\"yes\",\"place\":\"Postman area\",\"isSecret\":\"yes\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"created\":{\"time\":\"2018-07-20T08:05:55+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:05:55+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"attendees\":[{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}}],\"resources\":[{\"id\":3,\"name\":\"Coffee place\"}]}}"}],"_postman_id":"5b576f18-5b18-4fb0-9cbf-8d02343420d5"},{"name":"Edit an Activity","event":[{"listen":"test","script":{"id":"034cb7ad-3d45-468e-9047-e3517075a8e9","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","tests[\"Appointment canEdit\"] = jsonData.data.canEdit == \"yes\";","tests[\"Appointment canView\"] = jsonData.data.canView == \"yes\";","tests[\"Appointment Type\"] = jsonData.data.type == \"appointment\";","tests[\"Appointment Name\"] = jsonData.data.name == \"Postman API Test Meeting\";","tests[\"Appointment Descrioption\"] = jsonData.data.description == \"Description for Appointment form API testing tool Postman\";","tests[\"Appointment START\"] = jsonData.data.start == pm.environment.get(\"tomorrow\");","tests[\"Appointment END\"] = jsonData.data.end == pm.environment.get(\"tomorrow60\");","tests[\"Appointment is AllDay NO\"] = jsonData.data.allDay == \"no\";","tests[\"Appointment Place\"] = jsonData.data.place == \"Postman place\";","tests[\"Appointment is Secret NO\"] = jsonData.data.isSecret == \"no\";","tests[\"Appointment Owner\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Appointment Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Appointment Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Appointment Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Appointment Crated Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Appointment Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","","tests[\"Appointment Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Appointment Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","","tests[\"Appointment Attendees1\"] = jsonData.data.attendees[0].id == pm.environment.get(\"firstUserId\");","tests[\"Appointment Attendees2\"] = jsonData.data.attendees[1].id == pm.environment.get(\"secondUserId\");","","tests[\"Appointment Resources\"] = jsonData.data.resources[0].id == pm.environment.get(\"firstResourceId\");","","pm.environment.set(\"eventId\", jsonData.data.id);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"object\",","            \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"created\", \"updated\"],","            \"properties\": {","                \"id\": {\"type\": \"integer\"},","                \"canEdit\": {\"type\": \"string\"},","                \"canView\": {\"type\": \"string\"},","                \"type\": {\"type\": \"string\"},","                \"name\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"start\": {\"type\": \"string\"},","                \"end\": {\"type\": \"string\"},","                \"allDay\": {\"type\": \"string\"},","                \"place\": {\"type\": \"string\"},","                \"isSecret\": {\"type\": \"string\"},","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"attendees\": {","                    \"type\": \"array\",","                    \"items\": JSON.parse(pm.environment.get('user_schema')),","                },","                \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                \"companies\": JSON.parse(pm.environment.get('companies_schema')),","                \"leads\": JSON.parse(pm.environment.get('leads_schema')),","                \"resources\": JSON.parse(pm.environment.get('resources_schema'))","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Event Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"5fecc71a-e467-4272-bed4-dc2b5b8e0341","request":{"method":"PUT","header":[{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-App-Key","value":"{{appKey}}"},{"description":"<p>This value is taken from the enviroment</p>\n","key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"Name\": \"Postman API Test Meeting Changed\",\n  \"place\": \"Postman place\",\n  \"isSecret\": \"0\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser2@example.com\",\n  \"resources\": \"{{firstResourceId}}\",\n  \"description\": \"Description for Appointment form API testing tool Postman\",\n  \"allDay\": \"no\",\n  \"start\": \"{{tomorrow}}\",\n  \"end\": \"{{tomorrow60}}\",\n  \"companies\": \"{{secondGlobalCompanyId}}\",\n  \"deals\": \"{{secondGlobalDealId}}\",\n  \"leads\": \"{{secondGlobalLeadId}}\",\n  \"reminders\":[\n\t  \t{\n\t  \t\t\"type\":\"sms\",\n\t  \t\t\"before\": \"900\"\n\t  \t},\n\t  \t{\n\t  \t\t\"type\":\"email\",\n\t  \t\t\"before\": \"86400\"\n\t  \t}\n  \t]\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}","description":"<p>Update Event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong>  <code>\"name\": \"Example Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>place</strong> <br /> String</td>\n<td>This attribute is used only for the appointments. <br /> <strong>Example:</strong>  <code>\"place\": \"London\"</code></td>\n</tr>\n<tr>\n<td><strong>isSecret</strong> <br /> Boolean</td>\n<td>This attribute is used only for the appointments. Indicator the appointment is private or not. <br /> Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>resources</strong> <br /> Integer</td>\n<td><strong>Example:</strong>  <ul><li>   <code>\"resources\": \"1\"</code> </li><li>  <code>\"resources\": \"['1','2']\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br /> string</td>\n<td><strong>Example:</strong>   <code>\"description\": \"Very important appointment with partner\"</code></td>\n</tr>\n<tr>\n<td><strong>allDay</strong> <br /> Boolean</td>\n<td>Indicate whether the event lasts all day. This attribute is used only for the appointments.<br /> Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>start</strong> <br /> Date</td>\n<td><strong>Example:</strong>     <code>\"start\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>end</strong> <br /> Date</td>\n<td><strong>Example:</strong>     <code>\"end\": \"2017-03-05T11:45:59+02:00\"</code></td>\n</tr>\n<tr>\n<td><strong>reminders</strong> <br /> Object/Array</td>\n<td><strong>Example 1:</strong>   <code>\"reminders\": {\"type\":\"email\",\"before\":\"900\"}</code><br /><strong>Example 2:</strong>   <code>\"reminders\": [{\"type\":\"sms\",\"before\":\"900\"},{\"type\":\"email\",\"before\":\"3600\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{eventId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"6ccba3bb-ded3-4948-870c-280ec6fc3445","name":"Event Update","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"Name\": \"Postman API Test Meeting Changed\",\n  \"place\": \"Postman place\",\n  \"isSecret\": \"0\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser2@example.com\",\n  \"resources\": \"{{firstResourceId}}\",\n  \"description\": \"Description for Appointment form API testing tool Postman\",\n  \"allDay\": \"no\",\n  \"start\": \"2016-12-01T10:00:00+01:00\",\n  \"end\": \"2016-12-01T11:30:00+01:00\"\n}"},"url":"https://api.teamgate.com/v4/events/{{eventId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:02:43 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9983","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":4947,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"appointment\",\"name\":\"Postman API Test Meeting\",\"isDeleted\":\"no\",\"description\":\"Description for Appointment form API testing tool Postman\",\"start\":\"2016-12-01T09:00:00+00:00\",\"end\":\"2016-12-01T10:30:00+00:00\",\"allDay\":\"no\",\"place\":\"Postman place\",\"isSecret\":\"no\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"created\":{\"time\":\"2018-07-20T08:02:31+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:03:08+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"attendees\":[{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}},{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}],\"resources\":[{\"id\":1,\"name\":\"Pos\\u0117d\\u017ei\\u0173 kambarys\"},{\"id\":3,\"name\":\"Urvas\"}]}}"}],"_postman_id":"5fecc71a-e467-4272-bed4-dc2b5b8e0341"},{"name":"Delete an Activity","event":[{"listen":"test","script":{"id":"47a56558-c6e0-477e-a74f-52b0f2294193","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"be89287b-c645-4c93-b55f-3bbbd2fe676d","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{eventId}}","description":"<p>Delete Call event</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the event. <br /> <strong>Example:</strong> <code>?id=2</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","events","{{eventId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"be89287b-c645-4c93-b55f-3bbbd2fe676d"}],"id":"6be9bc87-47bb-4c32-b46b-9c0771deac83","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <em>read only</em></td>\n<td>Unique key of the Event.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Event. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>owner</strong> <br />Object</td>\n<td>For the owner use User object. Read more information about <code>User</code> object <a href=\"./#8641c2c6-121b-4ba4-8fa2-905a7aeb2be7\">here</a></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br />String</td>\n<td>Type of the Event. This field must have one of the following values: <ul><li> appointment </li><li> note </li><li> call </li><li> task </li></ul></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />Text</td>\n<td>The event’s description.</td>\n</tr>\n<tr>\n<td><strong>start</strong> <br />DateTime</td>\n<td>The event start date. Must be an <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> timestamp with mandatory time zone offset, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z. Milliseconds may be provided but will be ignored.</td>\n</tr>\n<tr>\n<td><strong>end</strong> <br />DateTime</td>\n<td>The event end date. Must be an <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> timestamp with mandatory time zone offset, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z. Milliseconds may be provided but will be ignored.</td>\n</tr>\n<tr>\n<td><strong>allDay</strong> <br />Boolean</td>\n<td>The indicator or event lasts all day.</td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br />Boolean</td>\n<td>Indicator of whether or not the deal is important and marked by star.</td>\n</tr>\n<tr>\n<td><strong>place</strong> <br />String</td>\n<td>The event’s place.</td>\n</tr>\n<tr>\n<td><strong>isSecret</strong> <br />Boolean</td>\n<td>Indicator the event is private or not.</td>\n</tr>\n<tr>\n<td><strong>completed</strong> <br />Object <em>Read only</em></td>\n<td>Date and time Event record was completed. Information is read only, because automatically generated by the server. Read more information about <code>Completed</code> object <a href=\"./#dcd7e7e8-a648-4222-899b-53f2b655db1c\">here</a></td>\n</tr>\n<tr>\n<td><strong>created</strong> <br />Object <em>Read only</em></td>\n<td>User, date and time Event record was created. Information is read only, because automatically generated by the server. Read more information about <code>Created</code> object <a href=\"./#7d49fe80-3c31-48d7-addb-aec4afc7a9aa\">here</a></td>\n</tr>\n<tr>\n<td><strong>updated</strong> <br />Object <em>Read only</em></td>\n<td>User, date and time Event record was updated. Information is read only, because automatically generated by the server. Read more information about <code>Updated</code> object <a href=\"./#aa47147c-6b42-4176-8565-30c52ef76c9a\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"928b8e0c-2ccc-4e77-ad25-cecd0c86d82b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"de94f8af-1388-48ff-b1f6-3fd44538b178","type":"text/javascript","exec":[""]}}],"_postman_id":"6be9bc87-47bb-4c32-b46b-9c0771deac83"},{"name":"07. Files","item":[{"name":"Tagging","item":[{"name":"List Tags of a File","event":[{"listen":"test","script":{"id":"91dcccfa-57b6-4767-a56e-ed8c4172eb41","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid File Tags Schema\"] = tv4.validate(jsonData, schema);","","pm.environment.set(\"lastTagId\", jsonData.data[0].id);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9b05bdf2-8029-4b86-a22f-9be29965af29","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/files/{{secondGlobalFileId}}/tags","description":"<p>Returns a list of all tags associated with the File.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>Required</strong></td>\n<td>Unique key of the File. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files","{{secondGlobalFileId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"607164f2-c318-408b-915b-4066e0adfce4","name":"Get File Tags","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/files/{{lastFileId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:17:48 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9983","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":51,\"name\":\"Naujas\"},{\"id\":53,\"name\":\"Pasiulymas\"}]}"}],"_postman_id":"9b05bdf2-8029-4b86-a22f-9be29965af29"},{"name":"Assign a Tag to a File","event":[{"listen":"test","script":{"id":"5e495384-8de3-4408-a9e0-6356991a887e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"File Tags\"] = jsonData.count !== 0;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid File Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"7f0dbafc-624a-48cb-8dd9-453acd78c951","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": \"B2C\"\n}"},"url":"https://api.teamgate.com/v4/files/{{firstGlobalFileId}}/tags","description":"<p>Attaches tags to a file</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"New\"</code></li><li>  <code>\"tags\": \"[New, Important]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files","{{firstGlobalFileId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"734936b7-a213-4adc-bdf2-83591b6c3825","name":"Update File Tags","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"B2C","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/files/{{lastFileId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:17:36 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9985","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":4,\"data\":[{\"id\":37,\"name\":\"offers\"},{\"id\":39,\"name\":\"testing\"},{\"id\":41,\"name\":\"B2B\"},{\"id\":49,\"name\":\"B2C\"}]}"}],"_postman_id":"7f0dbafc-624a-48cb-8dd9-453acd78c951"},{"name":"Overwrite All File Tags","event":[{"listen":"test","script":{"id":"daa5ce3a-6719-4011-8c03-646d4fc9846e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var size = jsonData.data.length;","","var flag1 = false;","var flag2 = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data[i].name == \"Pasiulymas\") flag1 = true;","    if (jsonData.data[i].name == \"Naujas\") flag2 = true;","}","","tests[\"File Tags1\"] = flag1 === true; ","tests[\"File Tags2\"] = flag2 === true; ","","pm.environment.set(\"lastTagId\", jsonData.data[0].id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid File Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"c75b269a-76b0-4a78-ac61-8c5a4a54298b","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": [\"Naujas\", \"Pasiulymas\"]\n}\n"},"url":"https://api.teamgate.com/v4/files/{{secondGlobalFileId}}/tags","description":"<p>Detaches old file tags and attaches new ones at the same time.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"New\"</code></li><li>  <code>\"tags\": \"[New, Important]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files","{{secondGlobalFileId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"e4705577-97ca-43c5-b483-431fd68d7b2e","name":"Rewrite File Tags","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"Naujas","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"},{"key":"value[1]","value":"Pasiulymas","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/files/{{lastFileId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:17:42 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9984","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":51,\"name\":\"Naujas\"},{\"id\":53,\"name\":\"Pasiulymas\"}]}"}],"_postman_id":"c75b269a-76b0-4a78-ac61-8c5a4a54298b"},{"name":"Unassign a Tag From a File","event":[{"listen":"test","script":{"id":"88a81b53-3c53-448f-be4b-20eb7ad729b6","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid File Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9a4ff410-a65b-4255-b24f-8c4408f6f0f0","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/files/{{secondGlobalFileId}}/tags/{{lastTagId}}","description":"<p>Detaches single file tag</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the File. <br /> <strong>Example:</strong> <code>?id=2\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files","{{secondGlobalFileId}}","tags","{{lastTagId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9a4ff410-a65b-4255-b24f-8c4408f6f0f0"},{"name":"Unassign All Tags From File","event":[{"listen":"test","script":{"id":"c54ce308-9cd5-4301-b601-96c695cc8b13","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"File Tags\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid File Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9cdecbcd-2184-4cd1-bd97-93bf47353e11","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/files/{{firstGlobalFileId}}/tags","description":"<p>Detaches all file tags</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>Required</strong></td>\n<td>Unique key of the File. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files","{{firstGlobalFileId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9cdecbcd-2184-4cd1-bd97-93bf47353e11"}],"id":"afd5c25f-467f-47dd-9840-9ecac14fc84e","_postman_id":"afd5c25f-467f-47dd-9840-9ecac14fc84e","description":""},{"name":"Upload File","event":[{"listen":"test","script":{"id":"7290fa67-1124-4462-9d0b-eebb960ae0d9","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"File Full Name\"] = jsonData.data.fullName == \"commercialOffer.txt\";","tests[\"File Name\"] = jsonData.data.name == \"commercialOffer\";","tests[\"File Extension\"] = jsonData.data.extension == \"txt\";","tests[\"File Size\"] = jsonData.data.size == \"8\";","tests[\"File Mime Type\"] = jsonData.data.mimeType == \"text/plain\";","tests[\"File Description\"] = jsonData.data.description == \"my 1st upload\";","tests[\"Filel Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"File Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"File Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"File Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"File Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","var size = jsonData.data.tags.length;","var flag1 = false;","var flag2 = false;","var flag3 = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data.tags[i] == \"offers\") flag1 = true;","    if (jsonData.data.tags[i] == \"testing\") flag2 = true;","    if (jsonData.data.tags[i] == \"B2B\") flag3 = true;","}","","tests[\"File Tags1\"] = flag1 === true;","tests[\"File Tags2\"] = flag2 === true;","tests[\"File Tags3\"] = flag3 === true;","","tests[\"File Download\"] = jsonData.data.download.time.has(\"T\");","","pm.environment.set(\"lastFileId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": JSON.parse(pm.environment.get('files_schema')),","        \"additionalProperties\": false","    }","};","","tests[\"Valid File Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"272549be-5188-4409-9c56-daa7b3e29a35","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"commercialOffer.txt\",\n  \"type\": \"text/plain\",\n  \"size\": \"8\",\n  \"description\": \"my 1st upload\",\n  \"content\": \"dGVhbWdhdGU=\",\n  \"tags\": [\"offers\", \"testing\", \"B2B\"]\n}"},"url":"https://api.teamgate.com/v4/files","description":"<p>Upload a new file by itself or from a URL. The maximum file size you can upload must be less than 20 MB!</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td><strong>Example:</strong> <code>\"name\": \"myFile.txt\"</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br />String</td>\n<td><strong>Possible values:</strong>  <ul><li> <code>text/plain</code> - .txt </li><li> <code>application/pdf</code> - .pdf </li><li> <code>application/vnd.ms-excel</code> - .xls </li><li> <code>video/mp4</code>  - .mp4 </li><li> and etc. </li></ul>  <strong>Example:</strong>   \"type\": \"text/plain\"</td>\n</tr>\n<tr>\n<td><strong>size</strong> <br />Integer</td>\n<td>File size in bytes  <strong>Example:</strong>   <code>\"size\": \"457\"</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td><strong>Example:</strong>    <code>\"description\": \"It is my 1st uploaded file\"</code></td>\n</tr>\n<tr>\n<td><strong>content</strong> <br />String</td>\n<td>The file content as base64 encoded string.<br />Note: Base64 encoding makes file sizes roughly 33-37% larger than their original binary representations! <br /> <strong>Example:</strong>  <code>\"content\": \"dGVhbWdhdGU=\"</code></td>\n</tr>\n<tr>\n<td><strong>url</strong> <br />String <strong>Optional</strong></td>\n<td>A data url which represents the file content. Note: will be processed only if <code>content</code> will not set or empty<br /> <strong>Example:</strong>  <code>\"url\": \"https://yourstorage/docs/invoice-12-01.pdf\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li> <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"c0802a0a-817a-4edf-817c-195b84399cf6","name":"Upload File","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"commercialOffer.txt","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|name <br>String **Required**      | **Example:**  \"name\": \"myFile.txt\"   |"},{"key":"type","value":"text/plain","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|type <br>String  |**Possible values:**  <ul><li> `text/plain` - .txt </li><li> `application/pdf` - .pdf </li><li> `application/vnd.ms-excel` - .xls </li><li> `video/mp4`  - .mp4 </li><li> and etc. </li></ul>  **Example:**   \"type\": \"text/plain\"    |"},{"key":"size","value":"8","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|size <br>Integer  | File size in bytes <bt> **Example:**   \"size\": \"457\"    |"},{"key":"description","value":"my 1st upload","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|description <br>String   |**Example:**    \"description\": \"It is my 1st uploaded file\"    |"},{"key":"content","value":"dGVhbWdhdGU=","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|content <br>String   |Insert here your decoded file in `base64` format. <br> **Example:**   \"content\": \"dGVhbWdhdGU=\"    |"},{"key":"tags[0]","value":"offers","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"},{"key":"tags[1]","value":"testing","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"},{"key":"tags[2]","value":"B2B","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:16:58 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9990","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":1559,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:17:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1559&hash=594cdc46b35b24ec8b31fb4937078492b0303ce1\",\"time\":\"2018-05-08T12:17:21+03:00\"}}}"}],"_postman_id":"272549be-5188-4409-9c56-daa7b3e29a35"},{"name":"Get Files Collection","event":[{"listen":"test","script":{"id":"8cef069d-c530-4020-aa31-25b0e9474bc9","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"c4b8c83e-196f-4097-b3b6-0cd226f87f1c","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/files?order[name]=desc&limit=3","description":"<p>Get all files and order them by createdTime descending</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>fullName</strong> <br />String</td>\n<td>Full name of the File consisting of the name and extension. You can search by full name or by fragment of name. Maximum length is 255 characters. <br />Example for strict search: <code>?fullName=myFileName.xdoc</code> <br />And search by text fragment: <code>?fullName[like]=myFile</code></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the File. You can search by full name or by fragment of name. Maximum length is 255 characters. <br />Example for strict search: <code>?name=myFileName</code> <br />And search by text fragment: <code>?name[like]=myFile</code></td>\n</tr>\n<tr>\n<td><strong>extension</strong> <br />String</td>\n<td>Extension of File. You can search by full extension name or by fragment of extension name. Maximum length is 255 characters. <br />Example for strict search: <code>?extension=xdoc</code> <br />And search by text fragment: <code>?extension[like]=doc</code></td>\n</tr>\n<tr>\n<td><strong>size</strong> <br />Integer</td>\n<td>Size of the file in byte. For the strictly search use the string. For size range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />Text</td>\n<td>Description of the file. <br />Example: <code>?description=My%20personal%20file</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <br />Possible Values:<ul><li>fullName</li><li>name</li><li>extension</li><li>size</li><li>createdUserId</li><li>createdTime</li></ul> Example: <code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>createdUserId</strong> <br />Integer</td>\n<td>Unique identifier of the user who created the event. <br />Example: <code>?createdUserId=6</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files"],"host":["api","teamgate","com"],"query":[{"key":"order[name]","value":"desc"},{"key":"limit","value":"3"}],"variable":[]}},"response":[],"_postman_id":"c4b8c83e-196f-4097-b3b6-0cd226f87f1c"},{"name":"Get One File","event":[{"listen":"test","script":{"id":"1d29e889-3a01-4eb8-94a5-547ec51d71e9","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": JSON.parse(pm.environment.get('files_schema'))","    }","};","","tests[\"Valid File Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"a80e8494-05ba-4d96-a313-7595f4a681ec","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/files/{{lastFileId}}","description":"<p>Returns data about a specific file.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>Required</strong></td>\n<td>Unique key of the File. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files","{{lastFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"4428d8e7-4980-418b-9b4e-6bcb4ab1bd97","name":"Get File","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/files/{{lastFileId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:17:20 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9988","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":1559,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:17:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1559&hash=9fc2e2db2a61c84727d7ec7e4981fabe6f955755\",\"time\":\"2018-05-08T12:17:43+03:00\"}}}"}],"_postman_id":"a80e8494-05ba-4d96-a313-7595f4a681ec"},{"name":"Get File Download URL","event":[{"listen":"test","script":{"id":"7f1f5c36-7538-42fb-9c13-7bc9c8eda99f","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": JSON.parse(pm.environment.get('download_schema'))","    }","};","","tests[\"Valid File Download URL Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"09eff512-3501-441f-b4ae-4dad4ce050a8","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/files/{{lastFileId}}/downloadUrl","description":"<p>Get files download URL</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the File. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files","{{lastFileId}}","downloadUrl"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"3b512044-c575-41d9-9ca9-6f624a94b0a5","name":"Get File Download URL","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/files/{{lastFileId}}/downloadUrl"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:17:31 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9986","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":1559,\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1559&hash=34f366cd7ba07fe71c2da2bcc245dc3c34d22ead\",\"time\":\"2018-05-08T12:17:54+03:00\"}}}"}],"_postman_id":"09eff512-3501-441f-b4ae-4dad4ce050a8"},{"name":"Update FIle Metadata","event":[{"listen":"test","script":{"id":"e95b7f0e-3621-4d4f-8fc7-5e309ae92a50","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"File Full Name\"] = jsonData.data.fullName == \"commercialOffer2.txt\";","tests[\"File Name\"] = jsonData.data.name == \"commercialOffer2\";","tests[\"File Extension\"] = jsonData.data.extension == \"txt\";","tests[\"File Size\"] = jsonData.data.size == \"8\";","tests[\"File Mime Type\"] = jsonData.data.mimeType == \"text/plain\";","tests[\"File Description\"] = jsonData.data.description == \"my 2st upload\";","tests[\"Filel Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"File Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"File Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"File Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"File Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"File Tags1\"] = jsonData.data.tags[0] == \"offers2\";","","tests[\"File Download\"] = jsonData.data.download.time.has(\"T\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": JSON.parse(pm.environment.get('files_schema')),","    }","};","","tests[\"Valid File Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"83cd8811-f072-4652-ad2d-e40a4e532c51","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"commercialOffer2\",\n  \"description\": \"my 2st upload\",\n  \"tags\": \"offers2\"\n}"},"url":"https://api.teamgate.com/v4/files/{{lastFileId}}","description":"<p>Updates the properties of a file.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"name\": \"myFile.txt\"</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td><strong>Example:</strong>    <code>\"description\": \"It is my 1st uploaded file\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"New\"</code> </li><li>  <code>\"tags\": \"[New, Important]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files","{{lastFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"5d49e7ce-06c3-440b-a917-e30cef6f87c7","name":"Update FIle","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"commercialOffer2","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|name <br>String **Required**      | **Example:**  \"name\": \"myFile.txt\"   |"},{"key":"description","value":"my 2st upload","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|description <br>String   |**Example:**    \"description\": \"It is my 1st uploaded file\"    |"},{"key":"tags[0]","value":"offers2","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/files/{{lastFileId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:18:04 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9980","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":1559,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2st upload\",\"created\":{\"time\":\"2018-05-08T11:17:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"tags\":[\"offers2\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1559&hash=5da9aa2e61b966c20f1f89adf59e461e0d33cde0\",\"time\":\"2018-05-08T12:18:27+03:00\"}}}"}],"_postman_id":"83cd8811-f072-4652-ad2d-e40a4e532c51"},{"name":"Delete File","event":[{"listen":"test","script":{"id":"7d1156f5-7f83-4698-bf18-e834a9e4cfcf","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"a21c48d4-7bb5-40c6-b7fd-d0d74fa72ae3","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/files/{{lastFileId}}","description":"<p>Marks a file as deleted.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>Required</strong></td>\n<td>Unique key of the File. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","files","{{lastFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a21c48d4-7bb5-40c6-b7fd-d0d74fa72ae3"}],"id":"25067e5c-c993-4dea-914f-237fe2e91cca","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read only</em></td>\n<td>Unique key of the File.</td>\n</tr>\n<tr>\n<td><strong>fullName</strong> <br />String</td>\n<td>Full name of the File consisting of the name and extension. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the File. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>extension</strong> <br />String</td>\n<td>Extension of the File.</td>\n</tr>\n<tr>\n<td><strong>size</strong> <br />Integer</td>\n<td>Size of the file in bytes.</td>\n</tr>\n<tr>\n<td><strong>mimeType</strong> <br />String</td>\n<td><a href=\"https://en.wikipedia.org/wiki/Media_type\">Mime type</a> of the File. Example of values: <ul><li>application/pdf</li><li>application/zip</li><li>application/xml</li><li>audio/mpeg</li><li>text/html</li><li>image/png </li><li>etc.</li></ul></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />Text</td>\n<td>The file’s description.</td>\n</tr>\n<tr>\n<td><strong>created</strong> <br />Object <em>Read only</em></td>\n<td>User, date and time File record was uploaded. Information is read only, because automatically generated by the server. Read more information about <code>Created</code> object <a href=\"./#7d49fe80-3c31-48d7-addb-aec4afc7a9aa\">here</a></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br />Array</td>\n<td>An array of Tags for the File. Read more information about <code>Tags</code> <a href=\"./#b889f097-aa3d-42b8-b08c-371a67496bdd\">here</a></td>\n</tr>\n<tr>\n<td><strong>download</strong> <br />Objext</td>\n<td>The file download url.</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"c7cc4e29-6415-44b7-b7cc-457846b3014e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8836006e-095a-455c-8a83-fe89da87922d","type":"text/javascript","exec":[""]}}],"_postman_id":"25067e5c-c993-4dea-914f-237fe2e91cca"},{"name":"08. Global","item":[{"name":"Get Global Search","event":[{"listen":"test","script":{"id":"2456c388-e1cc-4f44-a0f9-ddeed3f08910","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": [\"object\", \"array\"],","            \"properties\": {","                \"type\": \"object\",","                \"leads\": JSON.parse(pm.environment.get('leads_schema')),","                \"people\": JSON.parse(pm.environment.get('people_schema')),","                \"companies\": JSON.parse(pm.environment.get('companies_schema')),","                \"deals\": JSON.parse(pm.environment.get('deals_schema')),","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Global Search Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"00d02080-0bd8-4287-94b8-cfd699642946","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"https://api.teamgate.com/v4/global?modules[companies][name][like]=ltd&limit=10&modules[leads][name][like]=a&modules[leads][fields]=name","description":"<p>Global search. Searches for everything that falls in search parameters</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>modules</strong> <br />String/Array <strong>required</strong></td>\n<td>Search in the modules by that module properties. <br /> Possible modules: <ul><li><code>leads</code> - search by Leads paameters </li><li><code>people</code> - earch by People parameters </li><li><code>companies</code> - search by Comapnies parameters </li><li><code>deals</code> - search by Deals parameters</li></ul></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","global"],"host":["api","teamgate","com"],"query":[{"key":"modules[companies][name][like]","value":"ltd"},{"key":"limit","value":"10"},{"key":"modules[leads][name][like]","value":"a"},{"key":"modules[leads][fields]","value":"name"}],"variable":[]}},"response":[],"_postman_id":"00d02080-0bd8-4287-94b8-cfd699642946"}],"id":"73244f51-a38f-4543-9634-feb79bdbdb32","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported properties from Leads, People, Companies and Deals properties list.</p>\n","_postman_id":"73244f51-a38f-4543-9634-feb79bdbdb32"},{"name":"09. Teams","item":[{"name":"Create a Team","event":[{"listen":"test","script":{"id":"b877bf82-5c95-4927-ac15-acb1ef820aad","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Group Name\"] = jsonData.data.name == \"New Group API\";","tests[\"Group isActive\"] = jsonData.data.isActive == \"yes\";","","pm.environment.set(\"groupId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"isActive\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"isActive\": { \"type\": \"string\" }","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Group Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"0be7ffeb-1ed2-4b27-ba0e-77eabc90e177","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"New Group API\"\n}"},"url":"https://api.teamgate.com/v4/groups","description":"<p>Create a group</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td><strong>Example:</strong> <code>\"name\": \"My 1st Group\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","groups"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"0a833b2b-4028-47c8-af1b-4b1693162f64","name":"Create Group","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"New Group API","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|name <br>String **Required**      | **Example:**  \"name\":  \"name\": \"My 1st Group\"    |"}]},"url":"https://api.teamgate.com/v4/groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:18:41 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9977","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":369,\"name\":\"New Group API\",\"isActive\":\"yes\"}}"}],"_postman_id":"0be7ffeb-1ed2-4b27-ba0e-77eabc90e177"},{"name":"Get Team Collection","event":[{"listen":"test","script":{"id":"cd5df58b-1d24-4a54-87e4-603ca64f1962","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"isActive\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"isActive\": { \"type\": \"string\" }","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Groups Collection Schema\"] = tv4.validate(jsonData, schema);","","pm.environment.set(\"groupId\", jsonData.data[0].id);","","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"8b957e76-4bf1-498c-a50a-960c48becacb","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/groups","description":"<p>Returns a list of groups</p>\n","urlObject":{"protocol":"https","path":["v4","groups"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8b957e76-4bf1-498c-a50a-960c48becacb"},{"name":"Get details of a Team","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"isActive\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"isActive\": { \"type\": \"string\" }","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Group Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"b1b0f7c1-bd8d-44d3-bf58-ae0cbe85f13b","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/groups/{{groupId}}","description":"<p>Returns a specific group</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the File. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","groups","{{groupId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"c7ee2df3-17b7-4c9b-b28b-f9b470bf39a5","name":"Get Group","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/groups/{{groupId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:18:52 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9975","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":345,\"name\":\"New Group API\",\"isActive\":\"yes\"}}"}],"_postman_id":"b1b0f7c1-bd8d-44d3-bf58-ae0cbe85f13b"},{"name":"Add Users to a Team","event":[{"listen":"test","script":{"id":"72e4e779-9c3b-4260-a0fb-71d856116203","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//tests[\"Added Users Count\"] = jsonData.count == \"1\";","//tests[\"Check 1st User\"] = jsonData.data[0].id == pm.environment.get(\"firstUserId\");","","var size = jsonData.count;","var flag = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data[i].id == pm.environment.get(\"firstUserId\")) flag = true;","}","tests['Check Added User'] = flag === true; ","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"username\", \"email\", \"language\", \"locale\", \"timeZone\", \"created\", \"role\", \"isActive\", \"defaultCurrency\", \"currencies\", \"permissions\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" }, ","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"username\": {\"type\": \"string\"},","                    \"email\": {\"type\": \"string\"},","                    \"language\": JSON.parse(pm.environment.get('language_schema')),","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"created\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('created_schema')),],","                    \"role\": {\"type\": \"string\"},","                    \"isActive\": {\"type\": \"string\"},","                    \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema')),","                    \"defaultCurrency\": {\"type\": \"string\"},","                    \"currenies\": JSON.parse(pm.environment.get('currencies_schema')),","                },","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Group Users List schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"e9ee2afb-29ae-4258-aaff-72298c95ddba","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": \"{{firstUserId}}\"\n}"},"url":"https://api.teamgate.com/v4/groups/{{groupId}}/users","description":"<p>Add a user to a group</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> Integer</td>\n<td>Add user id <br /> <strong>Example:</strong> <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","groups","{{groupId}}","users"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"de76e22b-44ff-478f-81ce-fb8564381d08","name":"Add Users To Group","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"value\": \"{{firstUserId}}\"\n}"},"url":"https://api.teamgate.com/v4/groups/{{groupId}}/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:09:41 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9951","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"},\"username\":\"p.peterson@topbuisness.com\",\"email\":\"p.peterson@topbuisness.com\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T09:09:23+00:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8630\",\"fullRate\":\"0.862961685\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}}]}"}],"_postman_id":"e9ee2afb-29ae-4258-aaff-72298c95ddba"},{"name":"Get all Users of a Team","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"username\", \"email\", \"language\", \"locale\", \"timeZone\", \"created\", \"role\", \"isActive\", \"defaultCurrency\", \"currencies\", \"permissions\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" }, ","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"username\": {\"type\": \"string\"},","                    \"email\": {\"type\": \"string\"},","                    \"language\": JSON.parse(pm.environment.get('language_schema')),","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"created\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('created_schema')),],","                    \"role\": {\"type\": \"string\"},","                    \"isActive\": {\"type\": \"string\"},","                    \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema')),","                    \"defaultCurrency\": {\"type\": \"string\"},","                    \"currenies\": JSON.parse(pm.environment.get('currencies_schema')),","                },","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Group Users List schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"69897b99-76d6-495c-afd8-5476aa0b9220","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/groups/{{groupId}}/users","description":"<p>Get all users from the group</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of Group \"tags\" is used the same parameters as with resource \"Tags\".</p>\n","urlObject":{"protocol":"https","path":["v4","groups","{{groupId}}","users"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"42f20b1d-4461-413d-ba89-a82d62744f91","name":"Get Group User List","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/groups/{{groupId}}/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:09:53 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9950","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"},\"username\":\"p.peterson@topbuisness.com\",\"email\":\"p.peterson@topbuisness.com\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T09:09:23+00:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8630\",\"fullRate\":\"0.862961685\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}}]}"}],"_postman_id":"69897b99-76d6-495c-afd8-5476aa0b9220"},{"name":"Replace all Users by a Team","event":[{"listen":"test","script":{"id":"f5890a4f-c6a3-4aec-9a6a-7a83e28e35af","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Added Users Count\"] = jsonData.count === 2;","","var size = jsonData.count;","var flag1 = false;","var flag2 = false;","","for(var i = 0; i < size; i++) {","    if (jsonData.data[i].id == pm.environment.get(\"firstUserId\")) flag1 = true;","    if (jsonData.data[i].id == pm.environment.get(\"secondUserId\")) flag2 = true;","}","tests['Check Added User 1'] = flag1 === true; ","tests['Check Added User 2'] = flag2 === true; ","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"username\", \"email\", \"language\", \"locale\", \"timeZone\", \"created\", \"role\", \"isActive\", \"defaultCurrency\", \"currencies\", \"permissions\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" }, ","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"username\": {\"type\": \"string\"},","                    \"email\": {\"type\": \"string\"},","                    \"language\": JSON.parse(pm.environment.get('language_schema')),","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"created\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('created_schema')),],","                    \"role\": {\"type\": \"string\"},","                    \"isActive\": {\"type\": \"string\"},","                    \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema')),","                    \"defaultCurrency\": {\"type\": \"string\"},","                    \"currenies\": JSON.parse(pm.environment.get('currencies_schema'))","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Group Users List schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"78dd3a9c-16d9-4bbd-bd88-7e128cacb591","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": [\"{{firstUserId}}\", \"{{secondUserId}}\"]\n}"},"url":"https://api.teamgate.com/v4/groups/{{groupId}}/users","description":"<p>Replace all users in the group</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> Integer</td>\n<td>Add user id <br /> <strong>Example:</strong> <code>\"id\": \"7\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","groups","{{groupId}}","users"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"57e73ec8-1821-4c95-bf56-c10be9669a03","name":"Update Group User List","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"value\": [\"{{firstUserId}}\", \"{{secondUserId}}\"]\n}"},"url":"https://api.teamgate.com/v4/groups/{{groupId}}/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:10:01 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9949","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"},\"username\":\"m.merinson@topbuisnes.com\",\"email\":\"m.merinson@topbuisnes.com\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T09:09:23+00:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8630\",\"fullRate\":\"0.862961685\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}},{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"},\"username\":\"p.peterson@topbuisness.com\",\"email\":\"p.peterson@topbuisness.com\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T09:09:23+00:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8630\",\"fullRate\":\"0.862961685\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}}]}"}],"_postman_id":"78dd3a9c-16d9-4bbd-bd88-7e128cacb591"},{"name":"Remove one User from a Team","event":[{"listen":"test","script":{"id":"2b4874e6-0164-4f5e-97ba-3706fbe553ee","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Users Count\"] = jsonData.count == \"1\";","","tests[\"Check 1st User\"] = jsonData.data[0].id == pm.environment.get(\"firstUserId\");","tests[\"1st Users Small Picture\"] = jsonData.data[0].picture.small === '' || jsonData.data[0].picture.small.has(\".jpg\");","tests[\"1st Users Medium Picture\"] = jsonData.data[0].picture.medium === '' || jsonData.data[0].picture.medium.has(\".jpg\");","tests[\"1st Users Large Picture\"] = jsonData.data[0].picture.large === '' || jsonData.data[0].picture.large.has(\".jpg\");","","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"picture\", \"username\", \"email\", \"language\", \"locale\", \"timeZone\", \"created\", \"role\", \"isActive\", \"defaultCurrency\", \"currencies\", \"permissions\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" }, ","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"username\": {\"type\": \"string\"},","                    \"email\": {\"type\": \"string\"},","                    \"language\": JSON.parse(pm.environment.get('language_schema')),","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"created\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('created_schema')),],","                    \"role\": {\"type\": \"string\"},","                    \"isActive\": {\"type\": \"string\"},","                    \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema')),","                    \"defaultCurrency\": {\"type\": \"string\"},","                    \"currenies\": JSON.parse(pm.environment.get('currencies_schema')),","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Group Users List schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"5b17a62d-085b-45ab-a748-28629b1b4ac4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/groups/{{groupId}}/users/{{secondUserId}}","description":"<p>Detach a single user from a group</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the File. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","groups","{{groupId}}","users","{{secondUserId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b17a62d-085b-45ab-a748-28629b1b4ac4"},{"name":"Remve all Users from a Team","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Users Count\"] = jsonData.count == \"0\";","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Group Users List schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"43ff4979-dd82-4f96-bfa4-7c60bd0601ff","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/groups/{{groupId}}/users","description":"<p>Detach all users from a group</p>\n","urlObject":{"protocol":"https","path":["v4","groups","{{groupId}}","users"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"43ff4979-dd82-4f96-bfa4-7c60bd0601ff"},{"name":"Update a Team details","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Group Name\"] = jsonData.data.name == \"My 2nd Group\";","tests[\"Group isActive\"] = jsonData.data.isActive == \"yes\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"isActive\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"isActive\": { \"type\": \"string\" }","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Group Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"8bd96700-aec8-4981-a1f2-b9eca25c6d35","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"My 2nd Group\"\n}"},"url":"https://api.teamgate.com/v4/groups/{{groupId}}","description":"<p>Update group</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td><strong>Example:</strong> <code>\"name\": \"My 2st Group\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","groups","{{groupId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"18956b2f-553a-4eb5-b53a-40b626f897ec","name":"Update Group","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"My 2nd Group","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|name <br>String **Required**      | **Example:**  \"name\":  \"name\": \"My 1st Group\"    |"}]},"url":"https://api.teamgate.com/v4/groups/{{groupId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:19:30 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9969","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":345,\"name\":\"My 2nd Group\",\"isActive\":\"yes\"}}"}],"_postman_id":"8bd96700-aec8-4981-a1f2-b9eca25c6d35"},{"name":"Delete a Team","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"21f0d8e6-6745-4f27-a286-e68095ebf5c9","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/groups/{{groupId}}","description":"<p>Delete a group</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the File. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","groups","{{groupId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"21f0d8e6-6745-4f27-a286-e68095ebf5c9"}],"id":"4421b158-395c-4264-8de1-697ec150e02d","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported properties from Leads, People, Companies and Deals properties list.</p>\n","_postman_id":"4421b158-395c-4264-8de1-697ec150e02d"},{"name":"10. Industries","item":[{"name":"Get Industries Collection","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('industry_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Industries Collectin Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"20917223-b5b8-48d1-91cf-0a8fc9740b3c","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/industries","description":"<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Industry. You can search by full name or by fragment of name.<br />Example for strict search: <code>?name=Software</code> <br />And search by text fragment: <code>?name[like]=soft</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Industry. You can search by full description or by fragment of surame. <br />Example for strict search: <code>?description=ITtools</code> <br />And search by text fragment: <code>?name[like]=tools</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <br />Possible Values:<ul><li>name</li><li>description</li></ul> Example: <code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","industries"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"20917223-b5b8-48d1-91cf-0a8fc9740b3c"}],"id":"9c0349a8-f5d5-439f-9603-e8040868e017","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported inustries properties</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read only</em></td>\n<td>Unique key of the File.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Industry.</td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Industry.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"9c0349a8-f5d5-439f-9603-e8040868e017"},{"name":"11. Leads","item":[{"name":"Tagging","item":[{"name":"Attach Lead Tags","event":[{"listen":"test","script":{"id":"1a032003-f6e3-47c5-83c2-f95b3e06babf","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//tests[\"Lead Tags Attached\"] = jsonData.count == 1;","tests[\"Lead Tag Name1\"] = jsonData.data[0].name == \"B2B\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"033884de-b317-40c4-ac30-3c2690636a75","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": \"B2B\"\n}"},"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/tags","description":"<p>Attach new lead tags</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"c4a005b4-e8fe-4e8c-ada3-90f8f1d80fc3","name":"Attach Lead Tags","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"B2B","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:21:09 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9956","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":35,\"name\":\"B2B\"}]}"}],"_postman_id":"033884de-b317-40c4-ac30-3c2690636a75"},{"name":"Update Lead Tags","event":[{"listen":"test","script":{"id":"83e854bb-571f-4760-96fa-ef84fdb817c6","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Lead Tags Attached\"] = jsonData.count == 2;","tests[\"Lead Tag Name1\"] = jsonData.data[0].name == \"B2B\";","tests[\"Lead Tag Name2\"] = jsonData.data[1].name == \"B2C\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"7357c6a2-400a-4645-9c5d-8aee14300e3e","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": [\"B2B\", \"B2C\"]\n}"},"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/tags","description":"<p>Remove all tags and attach new ones</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"aabe91e4-971b-4cfc-8bf3-7c4fc72fd33d","name":"Update Lead Tags","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"B2B","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"},{"key":"value[1]","value":"B2C","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:21:16 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9955","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"7357c6a2-400a-4645-9c5d-8aee14300e3e"},{"name":"Detach Lead Tag","event":[{"listen":"test","script":{"id":"fc12d2ef-fc0a-4801-9242-9eaa3392d28c","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"fef17e34-c20b-4ab2-a114-baf9c8198c4d","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/tags/{{lastTagId}}","description":"<p>Detach single tag from lead</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>required</strong><br /></td>\n<td>Unique key of the Tag of Lead. <br /><strong>Example:</strong> <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","tags","{{lastTagId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fef17e34-c20b-4ab2-a114-baf9c8198c4d"},{"name":"Get Lead Tags Collection","event":[{"listen":"test","script":{"id":"7d0b7ba1-49d8-44b3-ac69-5c55ea868abe","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Tags Schema\"] = tv4.validate(jsonData, schema);","","pm.environment.set(\"lastTagId\", jsonData.data[0].id);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"ab359261-1296-43f5-b538-82cacd4632ce","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/tags","description":"<p>Returns a list of assigned lead tags.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of lead \"tags\" is used the same parameters as with resource \"Tags\".</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"baacb020-3ddc-4f79-b3d6-3c474e75e55a","name":"Get Lead Tags Collection","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:21:23 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9954","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"ab359261-1296-43f5-b538-82cacd4632ce"},{"name":"Detach Lead Tags","event":[{"listen":"test","script":{"id":"2c680ed3-5fa7-4e0e-b2ef-7a1a6fef625b","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Tags Attached\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"833011ed-7c52-4d00-bc75-a27a55170e2e","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/tags","description":"<p>Detach all tags from a lead</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"833011ed-7c52-4d00-bc75-a27a55170e2e"}],"id":"e67e1620-4003-4ebb-a019-5c141e18c29f","_postman_id":"e67e1620-4003-4ebb-a019-5c141e18c29f","description":""},{"name":"Files","item":[{"name":"Attach a File to a Lead","event":[{"listen":"test","script":{"id":"06486183-f9e1-4ae6-8e63-d57d462637cb","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Lead Files Attached\"] = jsonData.count == 1;","tests[\"Lead Files ID\"] = jsonData.data[0].id ==  pm.environment.get(\"firstGlobalFileId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"6fedba8d-b8c7-4ca1-870e-9f9cf07efff2","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": \"{{firstGlobalFileId}}\"\n}"},"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/files","description":"<p>Attach files to lead</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> integer<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"value\": \"[1, 3, 7, 12]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"0445fdcc-7c27-4987-96e6-fc50fea4a589","name":"Add Lead Files","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:21:40 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9951","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"leads\":[{\"id\":4247,\"name\":\"Postman API Test Lead\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=88d3132d96392599863f9ac52462087a7d4a0d79\",\"time\":\"2018-05-08T12:22:04+03:00\"}}]}"}],"_postman_id":"6fedba8d-b8c7-4ca1-870e-9f9cf07efff2"},{"name":"Reattach a File to a Lead","event":[{"listen":"test","script":{"id":"c37e32c0-ec99-4961-8a37-11839975a02d","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Files Attached\"] = jsonData.count == 2;","tests[\"Files ID 1\"] = jsonData.data[0].id ==  pm.environment.get(\"firstGlobalFileId\");","tests[\"Files ID 2\"] = jsonData.data[1].id ==  pm.environment.get(\"secondGlobalFileId\");","postman.setGlobalVariable(\"lastFileId\", jsonData.data[0].id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"55412e54-bb2e-4b68-99ca-3d6f843c617c","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": [\"{{firstGlobalFileId}}\", \"{{secondGlobalFileId}}\"]\n}"},"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/files","description":"<p>Detach current files form lead and attach new ones</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> integer<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"value\": \"[1, 3, 7, 12]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"3615ba7f-c1c8-4b86-a915-e0ff1b5256ee","name":"Edit Lead Files","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"},{"key":"value[1]","value":"{{secondGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:21:48 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9950","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"leads\":[{\"id\":4247,\"name\":\"Postman API Test Lead\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=baf796d295cc82fc786c72eaa63001b4d4c1cf10\",\"time\":\"2018-05-08T12:22:11+03:00\"}},{\"id\":1557,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-05-08T11:01:24+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"leads\":[{\"id\":4247,\"name\":\"Postman API Test Lead\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1557&hash=34d5d9ed0f048a3a8efe7e8b27f0170b73dae3fc\",\"time\":\"2018-05-08T12:22:11+03:00\"}}]}"}],"_postman_id":"55412e54-bb2e-4b68-99ca-3d6f843c617c"},{"name":"Get All Files of a Lead","event":[{"listen":"test","script":{"id":"3ea36905-c291-4ff7-873c-ecf288d26990","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"61f33316-74b1-498b-9bfb-253ab77a6ff3","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/files","description":"<p>Get all files attached to thos lead</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"709179ab-1646-4e29-b9cc-26781fcb3e5e","name":"Get Lead Files","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:21:55 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9949","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"leads\":[{\"id\":4247,\"name\":\"Postman API Test Lead\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=90baac8c6167e7bbe2a31b0170d810a725aaa523\",\"time\":\"2018-05-08T12:22:19+03:00\"}},{\"id\":1557,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-05-08T11:01:24+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"leads\":[{\"id\":4247,\"name\":\"Postman API Test Lead\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1557&hash=fc312a1ccd0f02fd4d47e44d5ec6fdb639f1561b\",\"time\":\"2018-05-08T12:22:19+03:00\"}}]}"}],"_postman_id":"61f33316-74b1-498b-9bfb-253ab77a6ff3"},{"name":"Detach a File from a Lead","event":[{"listen":"test","script":{"id":"e2a28da2-7ad5-4767-ad5f-82ee22ef33a3","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"173d12b1-5ed4-4f8f-ac6e-f59d88eabb00","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/files/{{lastFileId}}","description":"<p>Detach singlefile from lead</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>required</strong><br /></td>\n<td>Unique key of the File of Lead. <br /><strong>Example:</strong> <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","files","{{lastFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"173d12b1-5ed4-4f8f-ac6e-f59d88eabb00"},{"name":"Detach All Files from a Lead","event":[{"listen":"test","script":{"id":"e18a3e81-4c04-4fb4-bd08-3f0e056c6c04","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Detached Successfully\"] = jsonData.success;","tests[\"Files Attached\"] = jsonData.count === 0;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"2dae40ba-1949-4148-b008-8fbb0b7b7963","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/files","description":"<p>Detach all files from lead</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2dae40ba-1949-4148-b008-8fbb0b7b7963"}],"id":"1cc41e8b-45ff-4d56-83c3-9f979e6239e2","_postman_id":"1cc41e8b-45ff-4d56-83c3-9f979e6239e2","description":""},{"name":"Create a Lead","event":[{"listen":"test","script":{"id":"fa0bf5e0-37ff-4ad2-a251-25bf4a175503","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Lead Name\"] = jsonData.data.name == \"Postman Lead\";","tests[\"Lead Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Lead Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Lead Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Lead Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Lead Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Lead Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Lead Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Lead Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Lead Source\"] = jsonData.data.source.name == \"Web search\";","","tests[\"Lead Industry\"] = jsonData.data.industry.name == \"Hardware Testing\";","//tests[\"Lead Industry Description\"] = jsonData.data.industry.description == \"Testing harware\";","","tests[\"Lead Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Lead Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Lead Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Lead Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Lead Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Lead Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Lead Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Lead Updator Small Picture\"] = jsonData.data.updated.user.picture.small.has(\".jpg\");","tests[\"Lead Updator Medium Picture\"] = jsonData.data.updated.user.picture.medium.has(\".jpg\");","tests[\"Lead Updator Large Picture\"] = jsonData.data.updated.user.picture.large.has(\".jpg\");","","tests[\"Lead is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Lead Status Id\"] = jsonData.data.status.id == \"1\";","tests[\"Lead Status Time\"] = jsonData.data.status.time.has(\"T\");","","tests[\"Lead Score Value\"] = jsonData.data.score.value == \"0\";","tests[\"Lead Score Grade\"] = jsonData.data.score.grade == \"cold\" || \"warm\" || \"hot\";","tests[\"Lead Score Time\"] = jsonData.data.score.time.has(\"T\");","","tests[\"Lead Company\"] = jsonData.data.company.id == pm.environment.get(\"firstGlobalCompanyId\");","","tests[\"Lead Tags\"] = jsonData.data.tags == \"B2B\";","","tests[\"Lead Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Lead Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Lead Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Lead Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Lead Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Lead Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Lead Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Lead Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Lead Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Lead Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Lead URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Lead URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Lead URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Lead URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Lead URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Lead URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Lead URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Lead URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Lead URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Lead URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Lead Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Lead Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Lead Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Lead Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Lead Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Lead Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Lead Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Lead Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Lead Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Lead Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Lead Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Lead Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Lead Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Lead Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Lead Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Lead Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Lead Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Lead Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","tests[\"Lead Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","","pm.environment.set(\"firstLeadId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                \"score\": JSON.parse(pm.environment.get('score_schema')),","                \"company\": JSON.parse(pm.environment.get('company_schema')),","                \"tags\":{\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                \"customFields\": { ","                    \"type\": \"array\", ","                    \"properties\": {","                        \"id\": {\"type\": \"integer\"},","                        \"value\": {\"type\": \"array\"}","                    }","                },","                \"showCompany\": { \"type\": \"boolean\" },","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Lead Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"8921df2b-3158-4b16-b81c-c37c6414c20f","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman Lead\",\n  \"companyName\": \"ExampleCompany\",\n  \"companyId\": \"{{firstGlobalCompanyId}}\",\n  \"jobTitle\": \"CEO\",\n  \"statusId\": \"1\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser@example.com\",\n  \"source\": \"Web search\",\n  \"sourceDescription\": \"Found by web search\",\n  \"industry\": \"Hardware Testing\",\n  \"industryDescription\": \"Testing hardware\",\n  \"tags\": \"B2B\",\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ],\n  \"customFields\": {\n        \"{{CFLeadsMultiSelectId}}\": [\"{{CFLeadsMultiSelectValue1Id}}\",\"{{CFLeadsMultiSelectValue2Id}}\"],\n        \"{{CFLeadsTextId}}\": \"Papildomo laiko teskstine testine reikšmė\",\n        \"{{CFLeadsSelectId}}\": \"{{CFLeadsSelectValue1Id}}\"\n  }\n}"},"url":"https://api.teamgate.com/v4/leads/?embed=customFields","description":"<p>Create a new lead</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td>Required only if a lead is an person and <code>companyName</code> and <code>companyId</code> is empty. <br /> <strong>Example:</strong>  <code>\"name\": \"John Smith\"</code></td>\n</tr>\n<tr>\n<td><strong>companyName</strong> <br />String <strong>Required</strong></td>\n<td>Required only if a lead is an comapny and <code>name</code> is empty. The field will be set only if <code>companyId</code> is empty. <br /> <strong>Example:</strong>  <code>\"name\": \"Example Company Ltd\"</code></td>\n</tr>\n<tr>\n<td><strong>companyId</strong> <br />integer <strong>Required</strong></td>\n<td>Required only if a lead is an comapny and <code>name</code> is empty. The field will be set only if <code>companyName</code> is empty. <br /> <strong>Example:</strong>  <code>\"companyId\": \"E1\"</code></td>\n</tr>\n<tr>\n<td><strong>jobTitle</strong> <br />String</td>\n<td>The field will be set only if is set <code>companyName</code> or <code>companyId</code>. <br /> <strong>Example:</strong>   <code>\"jobTitle\": \"CEO\"</code></td>\n</tr>\n<tr>\n<td><strong>statusId</strong> <br />integer</td>\n<td><strong>Example:</strong>    <code>\"statusId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br />String</td>\n<td>If the stauts does not exist it will be created. <br /> <strong>Example:</strong>   <code>\"status\": \"unqualified\"</code></td>\n</tr>\n<tr>\n<td><strong>statusDescription</strong> <br />String</td>\n<td>Will be set only if will be created new status. <br /> <strong>Example:</strong>   <code>\"statusDescription\": \"status description\"</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong>    <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>    <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br /> integer</td>\n<td><strong>Example:</strong>    <code>\"industryId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br /> string</td>\n<td>If the industry does not exist it will be created. <br /> <strong>Example:</strong>    <code>\"industry\": \"Computer software\"</code></td>\n</tr>\n<tr>\n<td><strong>industryDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>    <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"email\": \"john@example.net\"</code> </li><li>  <code>\"emails\": \"{'value':'john@example.net','type':'work'}\"</code> </li><li>  <code>\"emails\": \"[{'value':'john@example.net','type':'work'},{'value':'john.brown@example.net','type':'home'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"phone\": \"+44 123 456 7890\"</code> </li><li> <code>\"phones\": \"{'value':'+44 123 456 7890','type':'mobile'}\"</code> </li><li> <code>\"phones\": \"[{'value':'+44 123 456 7890','type':'mobile'},{'value':'+44 123 456 7800','type':'fax'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"url\": \"http://example.com\"</code></li><li><code>\"urls\": \"{'value':'http://example.com','type':'website'}\"</code> </li><li> <code>\"urls\": \"[{'value':'http://example.com','type':'website'},{'value':'https://facebook.com/example','type':'facebook'}]\"</code></li></ul></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"address\": \"{'city':'Chicago','countryIso':'USA'}\"</code></li><li><code>\"addresses\": \"[{'city':'Chicago','countryIso':'USA'},{'longitude':'51.5109393','latitude':'0.030166'}]\"</code></li></ul></td>\n</tr>\n<tr>\n<td><strong>customFields</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li>Example for select (fieldID : valueId): <code>\"customFields\": \"{'3':'5'}\"</code></li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads",""],"host":["api","teamgate","com"],"query":[{"key":"embed","value":"customFields"}],"variable":[]}},"response":[{"id":"d60168f4-70a4-432c-b7c5-2d5c64a748f6","name":"Create Lead","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman Lead\",\n  \"companyName\": \"ExampleCompany\",\n  \"companyId\": \"{{firstGlobalCompanyId}}\",\n  \"jobTitle\": \"CEO\",\n  \"statusId\": \"1\",\n  \"status\": \"unqualified\",\n  \"statusDescription\": \"This is status description\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser@example.com\",\n  \"source\": \"Web search\",\n  \"sourceDescription\": \"Found by web search\",\n  \"industry\": \"Hardware Testing\",\n  \"industryDescription\": \"Testing hardware\",\n  \"tags\": \"B2B\",\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ],\n  \"customFields\": {\n  \t\t\t\"29\": \"95\",\n  \t\t\t\"33\": [\"109\", \"113\", \"115\"]\n  }\n  \n  \n  \n  \n}"},"url":{"raw":"https://api.teamgate.com/v4/leads/?embed=customFields","protocol":"https","host":["api","teamgate","com"],"path":["v4","leads",""],"query":[{"key":"embed","value":"customFields"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:10:23 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9946","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9659,\"name\":\"Postman Lead\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":12,\"name\":\"Web search\"},\"industry\":{\"id\":153,\"name\":\"Hardware Testing\",\"description\":\"Testing harware\"},\"created\":{\"time\":\"2018-07-20T08:10:48+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:10:22+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"status\":{\"id\":1,\"name\":\"Advertising\",\"time\":\"2018-07-20T08:10:48+00:00\"},\"score\":{\"value\":0,\"grade\":\"cold\",\"time\":\"2018-07-20T08:10:48+00:00\"},\"company\":{\"id\":7093,\"name\":\"Postman API Test First Company Name\",\"jobTitle\":\"CEO\",\"vatCode\":\"LT1234567890\",\"code\":\"1234567890\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":51255,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":51257,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":51259,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":51261,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":51263,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":51153,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":51155,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":51157,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":51159,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":51161,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":51227,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":51229,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":51231,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":51233,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":51235,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10355,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}],\"customFields\":[{\"id\":29,\"value\":95},{\"id\":33,\"value\":[109,113,115]}]}}"}],"_postman_id":"8921df2b-3158-4b16-b81c-c37c6414c20f"},{"name":"Get Lead Collection","event":[{"listen":"test","script":{"id":"9cf3dbc5-07cb-4623-a0b3-26b71b7fc0c3","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('updated_schema')),],","                    \"isDeleted\": { \"type\": \"string\" },","                    \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                    \"score\": JSON.parse(pm.environment.get('score_schema')),","                    \"company\": JSON.parse(pm.environment.get('company_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": true","            }","        }","     }","};","","tests[\"Valid Lead Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"4a60be88-9991-41d2-8949-7a0f47319c80","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"liudas@teamgate.com","type":"text","disabled":true},{"key":"password","value":"liushu1","type":"text","disabled":true}]},"url":"https://api.teamgate.com/v4/leads","description":"<p>Get a list of all leads</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>ids</strong> <br />String</td>\n<td>Returns a collection of leads by specific ids.<br />Example: <code>?ids[in]=1,2,3,4,5</code></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Lead. You can search by full name or by fragment of name. Maximum length is 255 characters. <br />Example for strict search: <code>?name=John%20Smith</code> <br />And search by text fragment: <code>?name[like]=John</code></td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>createdUserId</strong> <br />Integer</td>\n<td>Unique identifier of the user who updated the lead. <br />Example: <code>?updatedUserId=6</code></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br />Integer</td>\n<td>Unique identifier of the user who is lead owner. <br />Example: <code>?ownerId=6</code></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong> <br />Boolean</td>\n<td>Indicator the lead is deleted or not. In responses deleted values are not displayed <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> Example: <code>?deleted=no</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br />Boolean</td>\n<td>Indicator the lead is starred or not. <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> Example: <code>?starred=yes</code></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br />String</td>\n<td>Status name of the lead. <br />Example: <code>?status=John</code></td>\n</tr>\n<tr>\n<td><strong>statusId</strong> <br />Integer</td>\n<td>Status Id of the lead. <br />Example: <code>?statusId=1</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br />String</td>\n<td>Source of the lead. <br />Example:  <code>?source=google.com</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br />Intiger</td>\n<td>Unique identifier of the source. <br />Example:  <code>?sourceId=123</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br />String</td>\n<td>Industry of the lead. <br />Example:  <code>?industry=Banking</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br />Intiger</td>\n<td>Unique identifier of the industry. <br />Example:  <code>?industryId=234</code></td>\n</tr>\n<tr>\n<td><strong>phone</strong> <br />String</td>\n<td>Phone number of the lead. The minimum number of characters for the search is 3. The search is performed by the last characters. <br />Example:  <code>?phone=556664</code></td>\n</tr>\n<tr>\n<td><strong>email</strong> <br />String</td>\n<td>Email address of the lead. The minimum number of characters for the search is 3. <br />Example:  <code>?email=@gmail.com</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <br />Possible values:  <ul><li>name </li><li>createdTime</li><li>createdUserId</li><li>updatedTime</li><li>updatedUserId</li><li>ownerId</li><li>ownerUsername</li><li>isDeleted</li><li>starret</li><li>status</li><li>stautsId</li><li>source</li><li>sourceId</li><li>industry</li><li>industryId</li></ul> Example:<code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads"],"host":["api","teamgate","com"],"query":[{"disabled":true,"key":"fields","value":"created"}],"variable":[]}},"response":[],"_postman_id":"4a60be88-9991-41d2-8949-7a0f47319c80"},{"name":"Search for Leads","event":[{"listen":"test","script":{"id":"d9f900a2-b6a9-45d0-afea-46a027af65c3","type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","     }","};","","tests[\"Valid Lead Search schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"1b80ca61-833a-472a-b127-e3b6d5e18902","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads?source=Web search&industry=Hardware Testing&operator=OR&fields=source,industry","description":"<p>Returns a paginated list of leads that meet your search criteria.</p>\n","urlObject":{"protocol":"https","path":["v4","leads"],"host":["api","teamgate","com"],"query":[{"key":"source","value":"Web search"},{"key":"industry","value":"Hardware Testing"},{"key":"operator","value":"OR"},{"key":"fields","value":"source,industry"}],"variable":[]}},"response":[{"id":"cbfbd679-0e0e-4c9c-87dd-1cc52169885d","name":"Search Leads","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://api.teamgate.com/v4/leads?source=Web search&industry=Hardware Testing&operator=OR&fields=source,industry","protocol":"https","host":["api","teamgate","com"],"path":["v4","leads"],"query":[{"key":"source","value":"Web search"},{"key":"industry","value":"Hardware Testing"},{"key":"operator","value":"OR"},{"key":"fields","value":"source,industry"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 11:02:37 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9997","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531826100","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":3,\"data\":[{\"id\":9345,\"source\":{\"id\":151,\"name\":\"Web search\",\"description\":\"Found by web search\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"}},{\"id\":9347,\"source\":{\"id\":151,\"name\":\"Web search\",\"description\":\"Found by web search\"},\"industry\":{\"id\":153,\"name\":\"Hardware Testing\",\"description\":\"Testing harware\"}},{\"id\":9349,\"source\":{\"id\":151,\"name\":\"Web search\",\"description\":\"Found by web search\"},\"industry\":{\"id\":153,\"name\":\"Hardware Testing\",\"description\":\"Testing harware\"}}]}"}],"_postman_id":"1b80ca61-833a-472a-b127-e3b6d5e18902"},{"name":"Get details of a Lead","event":[{"listen":"test","script":{"id":"a9e093e2-3b70-4ed7-8cae-6620de3acf7a","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                \"score\": JSON.parse(pm.environment.get('score_schema')),","                \"company\": JSON.parse(pm.environment.get('company_schema')),","                \"tags\":{\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                \"showCompany\": { \"type\": \"boolean\" },","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Lead Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"ae9b225d-0b86-4d15-9ec4-ddba3764c3cf","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}","description":"<p>Returns the data of specific lead.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>Required</strong></td>\n<td>Unique key of the Lead. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"56e71f08-bcfc-45d6-9868-b6fb8cc40ca3","name":"Get Lead","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:10:40 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9944","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9659,\"name\":\"Postman Lead\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":12,\"name\":\"Web search\"},\"industry\":{\"id\":153,\"name\":\"Hardware Testing\",\"description\":\"Testing harware\"},\"created\":{\"time\":\"2018-07-20T08:10:48+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:10:22+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"status\":{\"id\":1,\"name\":\"Advertising\",\"time\":\"2018-07-20T08:10:48+00:00\"},\"score\":{\"value\":0,\"grade\":\"cold\",\"time\":\"2018-07-20T08:10:48+00:00\"},\"company\":{\"id\":7093,\"name\":\"Postman API Test First Company Name\",\"jobTitle\":\"CEO\",\"vatCode\":\"LT1234567890\",\"code\":\"1234567890\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":51255,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":51257,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":51259,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":51261,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":51263,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":51153,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":51155,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":51157,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":51159,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":51161,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":51227,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":51229,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":51231,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":51233,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":51235,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10355,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"ae9b225d-0b86-4d15-9ec4-ddba3764c3cf"},{"name":"Get merge history of a Lead","event":[{"listen":"test","script":{"id":"0dcd1ece-f718-4132-9226-e3aadf06c874","exec":["/*tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                \"score\": JSON.parse(pm.environment.get('score_schema')),","                \"company\": JSON.parse(pm.environment.get('company_schema')),","                \"tags\":{\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Lead Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}*/"],"type":"text/javascript"}}],"id":"16aa0143-78bc-4d03-83d0-002b3645b912","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/merge","description":"<p>Returns merge history of a specific lead.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>Required</strong></td>\n<td>Unique key of the Lead. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}","merge"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"7334175a-6804-454c-b135-8f4996417fa1","name":"Get Lead","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:10:40 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9944","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9659,\"name\":\"Postman Lead\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":12,\"name\":\"Web search\"},\"industry\":{\"id\":153,\"name\":\"Hardware Testing\",\"description\":\"Testing harware\"},\"created\":{\"time\":\"2018-07-20T08:10:48+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:10:22+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"status\":{\"id\":1,\"name\":\"Advertising\",\"time\":\"2018-07-20T08:10:48+00:00\"},\"score\":{\"value\":0,\"grade\":\"cold\",\"time\":\"2018-07-20T08:10:48+00:00\"},\"company\":{\"id\":7093,\"name\":\"Postman API Test First Company Name\",\"jobTitle\":\"CEO\",\"vatCode\":\"LT1234567890\",\"code\":\"1234567890\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":51255,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":51257,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":51259,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":51261,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":51263,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":51153,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":51155,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":51157,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":51159,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":51161,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":51227,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":51229,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":51231,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":51233,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":51235,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10355,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"16aa0143-78bc-4d03-83d0-002b3645b912"},{"name":"Get activities of a Lead","event":[{"listen":"test","script":{"id":"ef6a28f5-74d2-45c7-9b15-9c87b09bf108","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {"," \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"isDeleted\", \"created\", \"updated\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"canEdit\": {\"type\": \"string\"},","                    \"canView\": {\"type\": \"string\"},","                    \"type\": {\"type\": \"string\"},","                    \"name\": { \"type\": \"string\" },","                    \"isDeleted\": { \"type\": \"string\"},","                    \"description\": { \"type\": \"string\" },","                    \"start\": { \"type\": \"string\" },","                    \"end\": { \"type\": \"string\" },","                    \"allDay\": { \"type\": \"string\" },","                    \"place\": { \"type\": \"string\" },","                    \"isSecret\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                    \"leads\": {","                        \"type\": \"array\",","                        \"items\": {","                            \"type\": \"object\",","                            \"properties\":{","                                \"id\": {\"type\": \"integer\"},","                                \"name\": {\"type\": \"string\"}","                            }","                        }","                    },","                    \"attendees\": {","                        \"type\": \"array\",","                        \"items\":JSON.parse(pm.environment.get('user_schema')),","                    },","                    \"resources\": JSON.parse(pm.environment.get('resources_schema'))","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Event Lead Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"0b9f8299-f529-45c2-b768-a465b14d4084","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/events","description":"<p>Returns a list of Tasks, Appointments or Custom Activity.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of lead \"events\" is used the same parameters as with resource \"events\".</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}","events"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"55ee6131-827d-4866-9ecb-d1393f5db9e5","name":"Get Lead Events","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:11:00 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9943","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":4947,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"appointment\",\"name\":\"Postman API Test Meeting\",\"isDeleted\":\"no\",\"description\":\"Description for Appointment form API testing tool Postman\",\"start\":\"2016-12-01T09:00:00+00:00\",\"end\":\"2016-12-01T10:30:00+00:00\",\"allDay\":\"no\",\"place\":\"Postman place\",\"isSecret\":\"no\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"created\":{\"time\":\"2018-07-20T08:02:31+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:03:08+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"leads\":[{\"id\":9549,\"name\":\"Postman API Test Lead 1\"},{\"id\":9551,\"name\":\"Postman API Test Lead 2\"}],\"attendees\":[{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}}],\"resources\":[{\"id\":1,\"name\":\"Meeting room\"},{\"id\":3,\"name\":\"Coffee place\"}]}]}"}],"_postman_id":"0b9f8299-f529-45c2-b768-a465b14d4084"},{"name":"Get statuses of a Lead","event":[{"listen":"test","script":{"id":"1a527a77-42d4-44a5-aff0-124e79d5f83a","type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\" : [\"id\", \"name\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"description\": { \"type\": \"string\" }","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Statusas Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"16c09317-359f-4893-b66b-0cf508c8598b","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/statuses","description":"<p>Returns a list of lead status values.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of lead \"statuses\" is used the same parameters as with resource \"leadStatuses\".</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}","statuses"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"70a65802-5510-49e4-9b3c-76c5844f4f36","name":"Get Lead Statuses","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 18 Jul 2018 08:39:34 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9975","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531903500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":4,\"data\":[{\"id\":70,\"name\":\"New\"},{\"id\":71,\"name\":\"Processing\"},{\"id\":135,\"name\":\"Qualified\"},{\"id\":72,\"name\":\"Unqualified\"}]}"}],"_postman_id":"16c09317-359f-4893-b66b-0cf508c8598b"},{"name":"Get industries of a Lead","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('industry_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Industries Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"cb69a94c-95f3-4554-aa86-937247c3d016","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/industries","description":"<p>Returns a list of assigned lead industries.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of lead \"industries\" is used the same parameters as with resource \"industries\".</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}","industries"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"73f170b5-a830-43b3-8c12-6bef5c8b4fc1","name":"Get Lead Industries","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/industries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 18 Jul 2018 08:39:43 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9974","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531903500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":31,\"data\":[{\"id\":26,\"name\":\"Farming\"},{\"id\":27,\"name\":\"Clothing, footwear\"},{\"id\":32,\"name\":\"Construction, NT\"},{\"id\":34,\"name\":\"Education, culture, science\"},{\"id\":35,\"name\":\"Electronics\"},{\"id\":36,\"name\":\"Energy, raw materials\"},{\"id\":37,\"name\":\"Engineering\"},{\"id\":38,\"name\":\"Entertainment, tourism\"},{\"id\":39,\"name\":\"Landscaping, environmental management\"},{\"id\":40,\"name\":\"Finance, insurance, law\"},{\"id\":42,\"name\":\"State institutions\"},{\"id\":43,\"name\":\"Health and beauty\"},{\"id\":47,\"name\":\"Industry, production\"},{\"id\":48,\"name\":\"Advertising, media\"},{\"id\":52,\"name\":\"Technologies\"},{\"id\":53,\"name\":\"IT, communications\"},{\"id\":54,\"name\":\"Transport, machinery\"},{\"id\":56,\"name\":\"Kita\"},{\"id\":61,\"name\":\"Furniture\"},{\"id\":62,\"name\":\"E-commerce\"},{\"id\":63,\"name\":\"Food\"},{\"id\":64,\"name\":\"Services\"},{\"id\":65,\"name\":\"Restaurants\"},{\"id\":81,\"name\":\"Environmental protection\"},{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"}]}"}],"_postman_id":"cb69a94c-95f3-4554-aa86-937247c3d016"},{"name":"Get sources of a Lead","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('sources_schema'))","    }","};","","tests[\"Valid Lead Sources Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"ee7d52c8-6b00-4a5b-b0ed-1e93b28993aa","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/sources","description":"<p>Returns a list of assigned lead sources.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of lead \"sources\" is used the same parameters as with resource \"Sources\".</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}","sources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"99d55615-9baf-4ac2-a9cb-0b593234def8","name":"Get Lead Sources","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/sources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 18 Jul 2018 08:39:53 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9973","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531903500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":24,\"data\":[{\"id\":1,\"name\":\"Advertising\"},{\"id\":2,\"name\":\"Cold call\"},{\"id\":4,\"name\":\"External recommendation\"},{\"id\":5,\"name\":\"E. shop\"},{\"id\":7,\"name\":\"Public Relations\"},{\"id\":8,\"name\":\"Newsletters\"},{\"id\":12,\"selected\":\"yes\",\"name\":\"Web search\"},{\"id\":79,\"name\":\"Unspecified\"},{\"id\":83,\"name\":\"Internal recommendation\"},{\"id\":84,\"name\":\"Registration on the site\"},{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},{\"id\":115,\"name\":\"Postman Source Change\",\"description\":\"Postman Source Change Description Test\"},{\"id\":119,\"name\":\"www.postman.com\",\"description\":\"Postman Source description\"},{\"id\":121,\"name\":\"sourceById\"},{\"id\":123,\"name\":\"Array\"},{\"id\":127,\"name\":\"Testassss\",\"description\":\"integromattttt\"},{\"id\":131,\"name\":\"wooo\",\"description\":\"ooow\"},{\"id\":139,\"name\":\"zis is za source\",\"description\":\"souuurce\"},{\"id\":143,\"name\":\"Naujas sourcas\",\"description\":\"Labai naujas sourcas\"},{\"id\":145,\"name\":\"TEstttt\",\"description\":\"testsetetw\"},{\"id\":147,\"name\":\"143\"},{\"id\":149,\"name\":\"Kompletely new\",\"description\":\"nuja, ziurim ar veikia description\"},{\"id\":151,\"name\":\"Web search\",\"description\":\"Found by web search\"},{\"id\":155,\"name\":\"Website sale\",\"description\":\"Selling trough website\"}]}"}],"_postman_id":"ee7d52c8-6b00-4a5b-b0ed-1e93b28993aa"},{"name":"Get all Custom Data of a Lead","event":[{"listen":"test","script":{"id":"e708b8a6-e72e-428f-b3cc-c98e61b97104","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"module\", \"isActive\", \"isFilter\", \"isList\", \"type\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"module\": { \"type\": \"string\" },","                    \"isActive\": { \"$ref\": \"string\" },","                    \"isFilter\": { \"type\": \"string\" },","                    \"isList\": { \"type\": \"string\" },","                    \"type\": { \"type\": \"string\" },","                    \"items\": {","                        \"type\": \"array\", ","                        \"items\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"integer\" },","                                \"name\": { \"type\": \"string\" }","                            }","                        }","                    }","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Custom Data Schema\"] = tv4.validate(jsonData, schema);","","pm.environment.set('lastFieldId', jsonData.data[0].id);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"4cdb7477-f5b3-4391-a5be-43cbd910a592","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/customFields","description":"<p>Returns a set of lead custom field values.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of lead \"customFields\" is used the same parameters as with resource \"customFields\".</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}","customFields"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"51979f15-e6b8-42a6-80c9-d93c86a1a6ca","name":"Get Lead Custom Data","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/customFields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:33:58 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9990","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":29,\"name\":\"Buisness Model\",\"module\":\"leads\",\"isActive\":\"yes\",\"value\":95,\"isFilter\":\"no\",\"isList\":\"yes\",\"type\":\"single_option\",\"items\":[{\"id\":93,\"name\":\"B2B\"},{\"id\":95,\"name\":\"B2C\",\"selected\":\"yes\"},{\"id\":97,\"name\":\"C2B\"},{\"id\":99,\"name\":\"C2C\"}]},{\"id\":33,\"name\":\"Skills\",\"module\":\"leads\",\"isActive\":\"yes\",\"value\":[109,113,115],\"isFilter\":\"no\",\"isList\":\"no\",\"type\":\"multi_option\",\"items\":[{\"id\":109,\"name\":\"PHP\",\"selected\":\"yes\"},{\"id\":111,\"name\":\"JavaScript\"},{\"id\":113,\"name\":\"HTML\",\"selected\":\"yes\"},{\"id\":115,\"name\":\"CSS\",\"selected\":\"yes\"},{\"id\":117,\"name\":\"Excel\"},{\"id\":119,\"name\":\"C++\"},{\"id\":121,\"name\":\"C#\"},{\"id\":123,\"name\":\".NET\"},{\"id\":125,\"name\":\"Angular\"},{\"id\":127,\"name\":\"ReactJS\"}]}]}"}],"_postman_id":"4cdb7477-f5b3-4391-a5be-43cbd910a592"},{"name":"Get one Custom Field of a Lead","event":[{"listen":"test","script":{"id":"e11175b0-743d-4173-bb37-228782eae615","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": JSON.parse(pm.environment.get('custom_field_schema')),","        \"additionalProperties\": false","    }","};","","console.log('valid lead custom field schema', JSON.stringify(jsonData), JSON.stringify(schema));","tests[\"Valid Lead Custom Field Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"bb54a45c-bfe8-4a55-9c97-dbe1f3020f82","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/customFields/{{lastFieldId}}","description":"<p>Returns a set of lead custom field value.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of lead \"customFields\" is used the same parameters as with resource \"customFields\".</p>\n","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}","customFields","{{lastFieldId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"359942da-d05b-4192-8949-b4724a9bcb67","name":"Get Lead Custom Field","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/customFields/{{lastFieldId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:34:15 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9989","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":29,\"name\":\"Buisness Model\",\"module\":\"leads\",\"isActive\":\"yes\",\"value\":95,\"isFilter\":\"no\",\"isList\":\"yes\",\"type\":\"single_option\",\"items\":[{\"id\":93,\"name\":\"B2B\"},{\"id\":95,\"name\":\"B2C\",\"selected\":\"yes\"},{\"id\":97,\"name\":\"C2B\"},{\"id\":99,\"name\":\"C2C\"}]}}"}],"_postman_id":"bb54a45c-bfe8-4a55-9c97-dbe1f3020f82"},{"name":"Update a Lead","event":[{"listen":"test","script":{"id":"0c381cf3-6e4a-4cb7-b931-10f543066784","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Lead Name\"] = jsonData.data.name == \"Postman API Test Lead Changed\";","tests[\"Lead Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Lead Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Lead Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Lead Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"secondUserId\");","tests[\"Lead Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Lead Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Lead Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Lead Starred NO\"] = jsonData.data.starred == \"no\";","tests[\"Lead Source id\"] = jsonData.data.source.id == pm.environment.get(\"sourceId\"),","","tests[\"Lead Industry Name\"] = jsonData.data.industry.name == \"Software Testing\";","","tests[\"Lead Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Lead Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Lead Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Lead Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Lead Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","tests[\"Lead Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Lead Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Lead Updator Small Picture\"] = jsonData.data.updated.user.picture.small.has(\".jpg\");","tests[\"Lead Updator Medium Picture\"] = jsonData.data.updated.user.picture.medium.has(\".jpg\");","tests[\"Lead Updator Large Picture\"] = jsonData.data.updated.user.picture.large.has(\".jpg\");","","tests[\"Lead is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Lead Status Name\"] = jsonData.data.status.name == \"New\";","tests[\"Lead Status Time\"] = jsonData.data.status.time.has(\"T\");","","tests[\"Lead Score Value\"] = jsonData.data.score.value == \"0\";","tests[\"Lead Score Grade\"] = jsonData.data.score.grade == \"cold\" || \"warm\" || \"cold\";","tests[\"Lead Score Time\"] = jsonData.data.score.time.has(\"T\");","","tests[\"Lead tags\"] = jsonData.data.tags == \"B2C\";","","tests[\"Lead Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Lead Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Lead Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Lead Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Lead Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Lead Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Lead Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Lead Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Lead Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Lead Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Lead URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Lead URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Lead URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Lead URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Lead URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Lead URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Lead URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Lead URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Lead URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Lead URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Lead Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Lead Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Lead Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Lead Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Lead Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Lead Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Lead Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Lead Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Lead Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Lead Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Lead Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Lead Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Lead Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Lead Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Lead Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Lead Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Lead Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Lead Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","tests[\"Lead Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                \"score\": JSON.parse(pm.environment.get('score_schema')),","                \"company\": JSON.parse(pm.environment.get('company_schema')),","                \"tags\":{\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                \"showCompany\": { \"type\": \"boolean\" },","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"175ab11d-d675-4c34-8fb9-638027d11ae9","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Lead Changed\",\n  \"starred\": \"0\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"status\": \"New\",\n  \"statusDescription\": \"This is status description2\",\n  \"sourceId\": \"{{sourceId}}\",\n  \"sourceDescription\": \"Postman Source Change Description Test\",\n  \"industry\": \"Software Testing\",\n  \"industryDescription\": \"Postman Industry Change Description Test\",\n  \"tags\": \"B2C\",\n  \"customFields\": [\"Updated test\", \"18\", \"7\"]\n}"},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}","description":"<p>Update a lead</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td>Required only if a lead is an person and <code>companyName</code> and <code>companyId</code> is empty. <br /> <strong>Example:</strong>  <code>\"name\": \"John Smith\"</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>statusId</strong> <br />integer</td>\n<td><strong>Example:</strong>    <code>\"statusId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br />String</td>\n<td>If the stauts does not exist it will be created. <br /> <strong>Example:</strong>   <code>\"status\": \"unqualified\"</code></td>\n</tr>\n<tr>\n<td><strong>statusDescription</strong> <br />String</td>\n<td>Will be set only if will be created new status. <br /> <strong>Example:</strong>   <code>\"statusDescription\": \"status description\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong>    <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong>    <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>industryDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>    <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\" </code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li> <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>customFields</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li>Example for select (fieldID : valueId): <code>\"customFields\": \"{'3':'5'}\"</code></li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"1d470609-92ec-422d-8ec9-93cc07edb439","name":"Update Lead","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Lead Changed\",\n  \"starred\": \"0\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser2@example.com\",\n  \"statusId\": \"2\",\n  \"status\": \"New\",\n  \"statusDescription\": \"This is status description2\",\n  \"sourceId\": \"115\",\n  \"source\": \"Postman Source Change\",\n  \"sourceDescription\": \"Postman Source Change Description Test\",\n  \"industryId\": \"113\",\n  \"industry\": \"Postman Industry Change\",\n  \"industryDescription\": \"Postman Industry Change Description Test\",\n  \"tags\": \"B2C\",\n  \"customFields\": [\"Updated test\", \"18\", \"7\"]\n}"},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:11:31 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9939","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9659,\"name\":\"Postman API Test Lead Changed\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}},\"starred\":\"no\",\"source\":{\"id\":115,\"name\":\"Postman Source Change\",\"description\":\"Postman Source Change Description Test\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-20T08:10:48+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:11:29+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"status\":{\"id\":2,\"name\":\"Cold call\",\"time\":\"2018-07-20T08:11:55+00:00\"},\"score\":{\"value\":0,\"grade\":\"cold\",\"time\":\"2018-07-20T08:11:55+00:00\"},\"company\":{\"id\":7093,\"name\":\"Postman API Test First Company Name\",\"jobTitle\":\"CEO\",\"vatCode\":\"LT1234567890\",\"code\":\"1234567890\"},\"tags\":[\"B2C\"],\"emails\":[{\"id\":51255,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":51257,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":51259,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":51261,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":51263,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":51153,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":51155,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":51157,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":51159,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":51161,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":51227,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":51229,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":51231,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":51233,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":51235,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10355,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"175ab11d-d675-4c34-8fb9-638027d11ae9"},{"name":"Change a photo for a lead","event":[{"listen":"test","script":{"id":"0b14e6a6-455a-49be-aeea-2d36c1534551","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Lead Medium Picture\"] = jsonData.data.picture.medium.has(\".jpg\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"status\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"status\": JSON.parse(pm.environment.get('lead_status_schema')),","                \"score\": JSON.parse(pm.environment.get('score_schema')),","                \"company\": JSON.parse(pm.environment.get('company_schema')),","                \"tags\":{\"type\": \"array\"},","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema')),","                \"customFields\": { ","                    \"type\": \"array\", ","                    \"properties\": {","                        \"id\": {\"type\": \"integer\"},","                        \"value\": {\"type\": \"array\"}","                    }","                },","                \"showCompany\": { \"type\": \"boolean\" },","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Lead Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"f326f52a-8890-4a25-9f6c-74d021b5b715","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","type":"text"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"content\": \"iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAXnRFWHRSYXcgcHJvZmlsZSB0eXBlIDhiaW0ACjhiaW0KICAgICAgMjgKMzg0MjQ5NGQwM2VkMDAwMDAwMDAwMDEwMDEyYzAwMDAwMDAxMDAwMTAxMmMwMDAwMDAwMTAwMDEKP27dsQAASZp6VFh0UmF3IHByb2ZpbGUgdHlwZSB4bXAAAHja1f1LriW3sgQK9mMUbwik248cDuPD3gOqWcOvRqyU9pZSUh6dW8C9SEC5kIpgO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b2N1bWVudElEAHhtcC5kaWQ6NjA1QkMwMDYyRTBDRTQxMThFNTZENzk5ODg0REUyOTbi9LrWAAAAQXRFWHRzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQAeG1wLmRpZDo1RjVCQzAwNjJFMENFNDExOEU1NkQ3OTk4ODRERTI5NjaMk0MAAAAedEVYdHN0UmVmOnJlbmRpdGlvbkNsYXNzAHByb29mOnBkZi6gIiYAAAAodEVYdHhtcDpDcmVhdGVEYXRlADIwMTQtMDctMTVUMTc6NDQ6MTIrMDM6MDBI7hELAAAAKnRFWHR4bXA6TWV0YWRhdGFEYXRlADIwMTQtMDctMTVUMTc6NDQ6MTIrMDM6MDDAtH6MAAAAI3RFWHR4bXA6TW9kaWZ5RGF0ZQAyMDE0LTA3LTE1VDE0OjQ0OjI0Wio2/foAAAA5dEVYdHhtcE1NOkRvY3VtZW50SUQAeG1wLmRpZDo2MjVCQzAwNjJFMENFNDExOEU1NkQ3OTk4ODRERTI5NjUJM6YAAAA5dEVYdHhtcE1NOkluc3RhbmNlSUQAeG1wLmlpZDo2MjVCQzAwNjJFMENFNDExOEU1NkQ3OTk4ODRERTI5Nogb8xMAAABBdEVYdHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRAB4bXAuZGlkOjVGNUJDMDA2MkUwQ0U0MTE4RTU2RDc5OTg4NERFMjk2iJkTLgAAAB50RVh0eG1wTU06UmVuZGl0aW9uQ2xhc3MAcHJvb2Y6cGRmhKbfiQAAAABJRU5ErkJggg==\",\n\"size\": \"33268\"\n}"},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}/avatar","description":"<p>To add or update a photo for a lead, send an authorized PUT request to the lead's photo URL with the photo data bytes in the body.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>size</strong> <br />Integer</td>\n<td>File size in bytes  <strong>Example:</strong>   <code>\"size\": \"457\"</code></td>\n</tr>\n<tr>\n<td><strong>content</strong> <br />String</td>\n<td>The file content as base64 encoded string.<br />Note: Base64 encoding makes file sizes roughly 33-37% larger than their original binary representations! <br /> <strong>Example:</strong>  <code>\"content\": \"dGVhbWdhdGU=\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}","avatar"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f326f52a-8890-4a25-9f6c-74d021b5b715"},{"name":"Delete a Lead","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"b0581d75-f1f5-49a2-a601-d8d28279ce87","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstLeadId}}","description":"<p>Delete a lead</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Lead. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leads","{{firstLeadId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b0581d75-f1f5-49a2-a601-d8d28279ce87"}],"id":"e4eaecc3-047a-4c6e-828c-e74bffab0213","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported leads properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />integer <em>Read only</em></td>\n<td>Unique key of the Lead.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Lead. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>company</strong> <br />Object</td>\n<td>The leads primary company. For the lead company is using Company object. Read more information about leads <code>Company</code> object <a href=\"./#badc7a7b-2a88-404e-9c42-5a8ec8b13b58\">here</a></td>\n</tr>\n<tr>\n<td><strong>picture</strong> <br />String</td>\n<td>The leads picture. For the lead picture is using Picture object. Read more information about Picture object <a href=\"./#8641c2c6-121b-4ba4-8fa2-905a7aeb2be7\">here</a></td>\n</tr>\n<tr>\n<td><strong>status</strong> <br />Integer</td>\n<td>The lead status.  Read more information about leads <code>Status</code> object <a href=\"./#1e203079-0b00-4587-b17d-736416e0aa65\">here</a></td>\n</tr>\n<tr>\n<td><strong>owner</strong> <br />Object</td>\n<td>For the owner is using User object. Read more information about <code>User</code> object <a href=\"./#8641c2c6-121b-4ba4-8fa2-905a7aeb2be7\">here</a></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br />Boolean</td>\n<td>Indicator of whether or not the deal is important and marked by star.</td>\n</tr>\n<tr>\n<td><strong>source</strong> <br />Object</td>\n<td>The deal’s source. Source are assigned from a common sources list. Read more information about <code>Source</code> object <a href=\"./#ef608bb2-ea49-4dac-b162-f6e93d16a042\">here</a></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br />Object</td>\n<td>The lead industry. Industry are assigned from a common industry list. Read more information about <code>Industry</code> object <a href=\"./#e006b7b3-ccf4-4d66-8d86-0c6715f700fe\">here</a></td>\n</tr>\n<tr>\n<td><strong>created</strong> <br />Object <em>Read only</em></td>\n<td>User, date and time Lead record was created. information is read only, because automatically generated by the server. Read more information about <code>Created</code> object <a href=\"./#7d49fe80-3c31-48d7-addb-aec4afc7a9aa\">here</a></td>\n</tr>\n<tr>\n<td><strong>updated</strong> <br />Object <em>Read only</em></td>\n<td>User, date and time Lead record was updated. information is read only, because automatically generated by the server. Read more information about <code>Updated</code> object <a href=\"./#aa47147c-6b42-4176-8565-30c52ef76c9a\">here</a></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong> <br />Boolean</td>\n<td>Indicator the lead is deleted or not. In responses deleted values are not displayed</td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br />Array</td>\n<td>An array of email objects for the lead. Read more information about <code>Email</code> object <a href=\"./#c3d764d8-af9b-46e6-be97-cc8d0264a376\">here</a></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br />Array</td>\n<td>An array of phone objects for the leaed. Read more information about <code>Phone</code> object <a href=\"./#6a9c4d1a-c72a-4409-8041-afe30c64314c\">here</a></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br />Array</td>\n<td>An array of url objects for the lead. Read more information about <code>Url</code> object <a href=\"./#c4d7bd78-8b18-4b2e-9505-82f66f786455\">here</a></td>\n</tr>\n<tr>\n<td><strong>addresses</strong> <br />Array</td>\n<td>An array of address objects for the lead. Read more information about <code>Address</code> object <a href=\"./#f1511aad-d3dc-4118-98d6-bed247321ea3\">here</a></td>\n</tr>\n<tr>\n<td><strong>customFields</strong> <br />Array</td>\n<td>An array of custom Fields for the lead. <br /> Example: <code>/?embed=customFields </code> Read more information about <code>customFields</code> object <a href=\"./#4a68703e-4ec2-4e60-a941-9142d32d92d5\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"71c8229d-ebfd-4701-84b9-51d632d024d0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"10bd0d4b-6974-47cf-9022-ac8d5da041e3","type":"text/javascript","exec":[""]}}],"_postman_id":"e4eaecc3-047a-4c6e-828c-e74bffab0213"},{"name":"12. Lead Statuses","item":[{"name":"Get Leads Statuses Collection","event":[{"listen":"test","script":{"id":"88901a96-8f76-42fd-856d-dc965bb2c7f3","type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\" : [\"id\", \"name\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"description\": { \"type\": \"string\" }","                },","                \"additionalProperties\": false","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Lead Statuses Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"a4b61894-5087-4a91-852d-927851333503","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leadsStatuses","description":"<p>Retrieve All Leads Statuses</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>Supported leads statuses properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Lead Status. You can search by full name or by fragment of name. <br />Example for strict search: <code>?name=New</code> <br />And search by text fragment: <code>?name[like]=New</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Lead Status. You can search by full description or by fragment of surame. <br />Example for strict search: <code>?description=wokring</code> <br />And search by text fragment: <code>?name[like]=wokrking</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <br />Possible Values:<ul><li>name</li><li>description</li></ul> Example: <code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","leadsStatuses"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"ee1a24ee-ed19-42db-809a-732c73b76a5b","name":"Get Leads Statuses Collection","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leadsStatuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 18 Jul 2018 08:40:08 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9971","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531903500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":4,\"data\":[{\"id\":70,\"name\":\"New\"},{\"id\":71,\"name\":\"Processing\"},{\"id\":135,\"name\":\"Qualified\"},{\"id\":72,\"name\":\"Unqualified\"}]}"}],"_postman_id":"a4b61894-5087-4a91-852d-927851333503"}],"id":"8ef867c3-1efd-4f08-920e-97c627d6bba7","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported leads statuses properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Read only</strong></td>\n<td>Unique key of the Lead Status.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Lead Status.</td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Lead Status.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"8ef867c3-1efd-4f08-920e-97c627d6bba7"},{"name":"13. People","item":[{"name":"Tagging","item":[{"name":"Attach Person Tags","event":[{"listen":"test","script":{"id":"7ca58584-36f7-4473-a4c4-a3e215a10a3f","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//tests[\"People Tags Attached\"] = jsonData.count == 1;","tests[\"People Tag Name1\"] = jsonData.data[0].name == \"B2B\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Person Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"10b60f73-6f63-4576-a106-e48b6ff0d3a2","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": \"B2B\"\n}"},"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/tags","description":"<p>Attach new tags to a person</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"87bb145c-958f-4578-8805-66464ebdb92c","name":"Attach Person Tags","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"B2B","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/leads/{{personId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:25:29 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9930","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":35,\"name\":\"B2B\"}]}"}],"_postman_id":"10b60f73-6f63-4576-a106-e48b6ff0d3a2"},{"name":"Update Person Tags","event":[{"listen":"test","script":{"id":"035c70fe-840f-43f8-b8f9-efe286336449","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//tests[\"People Tags Attached\"] = jsonData.count == 2;","tests[\"People Tag Name1\"] = jsonData.data[0].name == \"B2B\";","tests[\"People Tag Name2\"] = jsonData.data[1].name == \"B2C\";","","pm.environment.set(\"lastTagId\", jsonData.data[0].id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Person Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"6584e66b-581b-413f-a5dc-daf054e65880","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": [\"B2B\", \"B2C\"]\n}"},"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/tags","description":"<p>Remove tags from person and add new ones</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"b44992d7-31bd-4a2a-916f-ee9c1f213c4c","name":"Update Person Tags","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"B2B","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"},{"key":"value[1]","value":"B2C","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/leads/{{personId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:25:37 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9929","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"6584e66b-581b-413f-a5dc-daf054e65880"},{"name":"Get Person Tags","event":[{"listen":"test","script":{"id":"cc28c56a-c8ef-44b4-b027-09d0c9d0a7e0","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Person Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"e09274e4-3ceb-486f-8037-abec1cac32fb","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/tags","description":"<p>Returns a list of assigned person tags.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of person \"tags\" is used the same parameters as with resource \"Tags\".</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"3ade5539-3d92-48df-a28b-1b0a114ddc3f","name":"Get Person Tags","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:25:45 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9928","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":35,\"name\":\"B2B\"},{\"id\":43,\"name\":\"B2C\"}]}"}],"_postman_id":"e09274e4-3ceb-486f-8037-abec1cac32fb"},{"name":"Detach Person Tag","event":[{"listen":"test","script":{"id":"7e68c70a-a8ac-4f0b-a7cf-bfef338fcb5c","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//tests[\"People Tags Attached\"] = jsonData.count == 1;","tests[\"People Tag Name 1\"] = jsonData.data[0].name == \"B2C\";","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema'))","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Person Tags Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9b5925f4-589f-4604-8a1b-c7be0142d26f","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/tags/{{lastTagId}}","description":"<p>Detach single tag from person</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>required</strong><br /></td>\n<td>Unique key of the Tag of Person. <br /><strong>Example:</strong> <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","tags","{{lastTagId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b5925f4-589f-4604-8a1b-c7be0142d26f"},{"name":"Detach Person Tags","event":[{"listen":"test","script":{"id":"50423c70-2cb3-4577-a615-df8d538cd9df","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"People Tags Attached\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"0fde5809-1416-4c37-a173-24e02af6d59f","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/tags","description":"<p>Detach all tags from person</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","tags"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fde5809-1416-4c37-a173-24e02af6d59f"}],"id":"4a458f22-17e3-4d49-badc-762844097dda","_postman_id":"4a458f22-17e3-4d49-badc-762844097dda","description":""},{"name":"Files","item":[{"name":"Attach Person Files","event":[{"listen":"test","script":{"id":"8ca78df1-b41f-486f-84ff-45912c8367a3","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"People Files Attached\"] = jsonData.count == 1;","tests[\"People File Id\"] = jsonData.data[0].id == pm.environment.get(\"firstGlobalFileId\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Person Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"3566fd28-c1fe-452f-9418-b9dc33376c52","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": \"{{firstGlobalFileId}}\"\n}"},"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/files","description":"<p>Attach new files to a person</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> integer<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"value\": \"[1, 3, 7, 12]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"61f34115-d809-49ae-aa96-fa9c5b70c805","name":"Attach Person Files","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/people/{{personId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:26:03 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9925","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"people\":[{\"id\":4249,\"name\":\"Postman API Test Person Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=e4723f7a323c1c2796218ec3b3c5d99df686e4db\",\"time\":\"2018-05-08T12:26:26+03:00\"}}]}"}],"_postman_id":"3566fd28-c1fe-452f-9418-b9dc33376c52"},{"name":"Update Person Files","event":[{"listen":"test","script":{"id":"00dc1f50-a018-495e-930a-1feee54b4864","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"People Files Attached\"] = jsonData.count == 2;","tests[\"People File Id 1\"] = jsonData.data[0].id == pm.environment.get(\"firstGlobalFileId\");","tests[\"People File Id 2\"] = jsonData.data[1].id == pm.environment.get(\"secondGlobalFileId\");","","pm.environment.set(\"lastFileId\", jsonData.data[0].id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Person Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"c55a1ca3-5f2e-4d13-863b-d3d64fe8b525","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"value\": [\"{{firstGlobalFileId}}\", \"{{secondGlobalFileId}}\"]\n}"},"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/files","description":"<p>Remove all current files from person and attach new ones</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> integer<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"value\": \"[1, 3, 7, 12]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"a95b2bbd-d43f-4115-a060-c49be385b0c8","name":"Update Person Files","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value[0]","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"},{"key":"value[1]","value":"{{secondGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li>  \"value\": \"[1, 3, 7, 12]\" </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/people/{{personId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:26:12 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9924","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"people\":[{\"id\":4249,\"name\":\"Postman API Test Person Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=f794889d458cf20907fa4115e688a232d7ed42e8\",\"time\":\"2018-05-08T12:26:35+03:00\"}},{\"id\":1557,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-05-08T11:01:24+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"people\":[{\"id\":4249,\"name\":\"Postman API Test Person Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1557&hash=06cd55bbdaae8ca0ffb0b577bf5792e2e77fbe18\",\"time\":\"2018-05-08T12:26:35+03:00\"}}]}"}],"_postman_id":"c55a1ca3-5f2e-4d13-863b-d3d64fe8b525"},{"name":"Get Person Files","event":[{"listen":"test","script":{"id":"665ba274-46c4-4e1c-9c38-189cb11a27dd","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Person Files Schema\"] = tv4.validate(jsonData, schema);","","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"3ba813d5-a681-4cbb-a83e-50a1058ead54","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/files","description":"<p>See all files attached to a person</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"157475b8-844c-4978-9269-1872d4210538","name":"Get Person Files","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:26:19 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9923","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1555,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-05-08T11:01:21+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"people\":[{\"id\":4249,\"name\":\"Postman API Test Person Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1555&hash=4aa0c293ae89640634eaf33a29a46ed4867f57bb\",\"time\":\"2018-05-08T12:26:42+03:00\"}},{\"id\":1557,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-05-08T11:01:24+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"people\":[{\"id\":4249,\"name\":\"Postman API Test Person Name\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/teamga01.teamgate.com\\/?r=teamga01\\/externalFiles\\/get&id=1557&hash=9f22c36f39ef8c0d9c5cafb6796d7048b13339f8\",\"time\":\"2018-05-08T12:26:42+03:00\"}}]}"}],"_postman_id":"3ba813d5-a681-4cbb-a83e-50a1058ead54"},{"name":"Detach Person File","event":[{"listen":"test","script":{"id":"641cc949-05e6-4b48-b840-8755f58b67ea","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Detached Successfully\"] = jsonData.success;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Person Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"8e83a3ab-d0bc-4c81-8d4c-5ba5ea7cb6e6","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/files/{{secondGlobalFileId}}","description":"<p>Detach a single file from person</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>required</strong><br /></td>\n<td>Unique key of the File of Person. <br /><strong>Example:</strong> <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","files","{{secondGlobalFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e83a3ab-d0bc-4c81-8d4c-5ba5ea7cb6e6"},{"name":"Detach Person Files","event":[{"listen":"test","script":{"id":"d60727da-5fed-420b-b6ef-7b9c3f91c050","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Was Detached Successfully\"] = jsonData.success;","tests[\"People Files Attached\"] = jsonData.count === 0;","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Person Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9e0b00b9-215e-4bfb-b173-31c9842f556d","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}/files","description":"<p>Detach all files from a person</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e0b00b9-215e-4bfb-b173-31c9842f556d"}],"id":"04d9d20c-6e18-46b0-bc37-6ea28b61f397","_postman_id":"04d9d20c-6e18-46b0-bc37-6ea28b61f397","description":""},{"name":"Create a Person","event":[{"listen":"test","script":{"id":"933b6935-5836-4b4d-8e78-879abce58b4c","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Person Name\"] = jsonData.data.name == \"Postman API Test Person Name\";","tests[\"Person Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Person Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Person Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Person Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Person Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person Starred YES\"] = jsonData.data.starred == \"yes\";","tests[\"Person Source\"] = jsonData.data.source.name == \"Postman\";","//tests[\"Person Source Descrioption\"] = jsonData.data.source.description == \"Source form API testing tool Postman\";","","tests[\"Person Industry\"] = jsonData.data.industry.name == \"Software Testing\";","//tests[\"Person Industry Descrioption\"] = jsonData.data.industry.description == \"Industry form API testing tool Postman\";","","tests[\"Person Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Person Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Person Creator Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Creator Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Creator Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Person Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Person Updator Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Updator Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Updator Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Person Birthday\"] = jsonData.data.birthday == \"1980-02-15\";","tests[\"Person PersonalIdNumber\"] = jsonData.data.personalIdNumber == \"38002280000\";","tests[\"Person Customer Status Id\"] = jsonData.data.customerStatus.id == 1;","tests[\"Person Customer Status Name\"] = jsonData.data.customerStatus.name == \"past_customer\";","","tests[\"Person Prospect Status Id\"] = jsonData.data.prospectStatus.id == 1;","tests[\"Person Prospect Status Name\"] = jsonData.data.prospectStatus.name == \"lost_prospect\";","","tests[\"Person is Gender\"] = jsonData.data.gender == \"male\";","tests[\"Person is Tags\"] = jsonData.data.tags == \"B2B\";","","tests[\"Person Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Person Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Person Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Person Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Person Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Person Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Person Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Person Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Person Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Person Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Person URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Person URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Person URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Person URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Person URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Person URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Person URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Person URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Person URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Person URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Person Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Person Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Person Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Person Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Person Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Person Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Person Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Person Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Person Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Person Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Person Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Person Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Person Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Person Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Person Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Person Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Person Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Person Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";","tests[\"Person Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","","pm.environment.set(\"personId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"birthday\": {\"type\": \"string\"},","                \"personalIdNumber\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"gender\": {\"type\": \"string\"},","                \"tags\":{\"type\": \"array\"},","                \"company\": JSON.parse(pm.environment.get('company_schema')),","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Person Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"6a612101-c0cb-404c-9442-29d07c352185","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Person Name\",\n  \"companyId\": \"{{firstGlobalCompanyId}}\",\n  \"jobTitle\": \"CEO\",\n  \"customerStatusId\": \"1\",\n  \"prospectStatusId\": \"1\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"source\": \"Postman\",\n  \"sourceDescription\": \"Source form API testing tool Postman\",\n  \"industry\": \"Software Testing\",\n  \"industryDescription\": \"Industry form API testing tool Postman\",\n  \"tags\": \"B2B\",\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ],\n  \"birthday\": \"1980-02-15\",\n  \"personalIdNumber\": \"38002280000\",\n  \"gender\": \"male\",\n  \"customFields\": {\n    \"{{CFPeopleTextId}}\": \"Trumpas tekstas\",\n    \"{{CFPeopleSelectId}}\": \"{{CFPeopleSelectValue2Id}}\",\n\t\"{{CFProductsMultiSelectId}}\": [\"CFProductsMultiSelectValue1Id\", \"CFProductsMultiSelectValue2Id\"]\n  }\n}"},"url":"https://api.teamgate.com/v4/people","description":"<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String <strong>Required</strong></td>\n<td><strong>Example:</strong>  <code>\"name\": \"Smith John\"</code></td>\n</tr>\n<tr>\n<td><strong>companyId</strong> <br />Integer</td>\n<td><strong>Example:</strong>   <code>\"companyId\": \"5\"</code></td>\n</tr>\n<tr>\n<td><strong>jobTitle</strong> <br />String</td>\n<td>The field will be set only if <code>companyId</code> is not empty. <br /> <strong>Example:</strong>  <code>\"jobTitle\": \"CEO\"</code></td>\n</tr>\n<tr>\n<td><strong>customerStatusId</strong> <br /> String</td>\n<td>Possible Values: <ul><li> 0 - Non Customer </li><li> 1 - Past Customer </li><li> 2 - Customer </li></ul></td>\n</tr>\n<tr>\n<td><strong>prospectStatusId</strong> <br /> Integer</td>\n<td>Possible Values: <ul><li>0 - Non Prospect  </li><li> 1 -Lost Prospect </li><li> 2 - Prospect </li></ul></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong>    <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong> <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br /> integer</td>\n<td><strong>Example:</strong> <code>\"industryId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br /> string</td>\n<td>If the industry does not exist it will be created. <br /> <strong>Example:</strong> <code>\"industry\": \"Computer software\"</code></td>\n</tr>\n<tr>\n<td><strong>industryDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>  <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"email\": \"john@example.net\"</code></li><li> <code>\"emails\": \"{'value':'john@example.net','type':'work'}\"</code></li><li>  <code>\"emails\": \"[{'value':'john@example.net','type':'work'},{'value':'john.brown@example.net','type':'home'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"phone\": \"+44 123 456 7890\"</code> </li><li> <code>\"phones\": \"{'value':'+44 123 456 7890','type':'mobile'}\"</code> </li><li> <code>\"phones\": \"[{'value':'+44 123 456 7890','type':'mobile'},{'value':'+44 123 456 7800','type':'fax'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"url\": \"http://example.com\"</code> </li><li> <code>\"urls\": \"{'value':'http://example.com','type':'website'}\"</code> </li><li> <code>\"urls\": \"[{'value':'http://example.com','type':'website'},{'value':'https://facebook.com/example','type':'facebook'}]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  <code>\"address\": \"{'city':'Chicago','countryIso':'USA'}\"</code> </li><li><code>\"addresses\": \"[{'city':'Chicago','countryIso':'USA'},{'longitude':'51.5109393','latitude':'0.030166'}]\"</code></li></ul></td>\n</tr>\n<tr>\n<td><strong>birthday</strong> <br /> Date</td>\n<td>Person's date of birth in YYY-MM-DD format. <br /> <strong>Example:</strong> <code>\"birthday\": \"1980-02-29\"</code></td>\n</tr>\n<tr>\n<td><strong>personalNumber</strong> <br /> String</td>\n<td>Unique personal identification code. <br /> <strong>Example:</strong> <code>\"personalIdNumber\": \"38002290000\"</code></td>\n</tr>\n<tr>\n<td><strong>gender</strong> <br />string</td>\n<td>The person's gender. <strong>Possible Values:</strong><ul><li>male</li><li>female</li></ul><strong>Example</strong> <code>\"gender\": \"male\"</code></td>\n</tr>\n<tr>\n<td><strong>customFields</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li>Example for select (fieldID : valueId): <code>\"customFields\": \"{'3':'5'}\"</code></li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"d2516594-dd9c-4462-aab2-0c8861337a5d","name":"Create Person","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Person Name\",\n  \"companyId\": \"{{firstGlobalCompanyId}}\",\n  \"jobTitle\": \"CEO\",\n  \"customerStatusId\": \"1\",\n  \"prospectStatusId\": \"1\",\n  \"starred\": \"yes\",\n  \"ownerId\": \"{{firstUserId}}\",\n  \"ownerUsername\": \"PostmanUser@example.com\",\n  \"sourceId\": \"111\",\n  \"source\": \"Postman\",\n  \"sourceDescription\": \"Source form API testing tool Postman\",\n  \"industryId\": \"113\",\n  \"industry\": \"Software Testing\",\n  \"industryDescription\": \"Industry form API testing tool Postman\",\n  \"tags\": \"B2B\",\n  \"emails\": [\n    {\n      \"value\":\"john@example.net\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"john.brown@example.net\",\n      \"type\":\"personal\"\n    },\n    {\n      \"value\":\"j.brown@example.net\",\n      \"type\":\"support\"\n    },\n    {\n      \"value\":\"john.b@example.net\",\n      \"type\":\"accounting\"\n    },\n    {\n      \"value\":\"j.b@example.net\",\n      \"type\":\"other\"\n    }\n  ],\n  \"phone\": [\n    {\n      \"value\":\"+44 123 456 7890\",\n      \"type\":\"work\"\n    },\n    {\n      \"value\":\"+44 123 456 7891\",\n      \"type\":\"home\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7892\",\n      \"type\":\"mobile\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7893\",\n      \"type\":\"fax\"\n      \n    },\n    {\n      \"value\":\"+44 123 456 7894\",\n      \"type\":\"other\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"value\":\"http://example.com\",\n      \"type\":\"website\"\n    },\n    {\n      \"value\":\"https://facebook.com/example\",\n      \"type\":\"facebook\"\n      \n    },\n    {\n      \"value\":\"https://linkedin.com/example\",\n      \"type\":\"linkedin\"\n      \n    },\n    {\n      \"value\":\"https://twitter.com/example\",\n      \"type\":\"twitter\"\n      \n    },\n    {\n      \"value\":\"skype_example\",\n      \"type\":\"skype\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"type\":\"billing\",\n      \"value\": {\n        \"street\": \"Long st. 12-34\",\n        \"zip\": \"123456\",\n        \"city\": \"London\",\n        \"state\": \"London region\",\n        \"country\": \"GBR\",\n        \"latitude\": \"51.5296099\",\n        \"longitude\": \"-0.0778148\"\n      }\n    }\n  ],\n  \"birthday\": \"1980-02-15\",\n  \"personalIdNumber\": \"38002280000\",\n  \"gender\": \"male\",\n  \"customFields\": {\n  \t\"27\":\"Customer to business C2B\"\n  }\n}"},"url":"https://api.teamgate.com/v4/people"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:12:14 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9937","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9661,\"name\":\"Postman API Test Person Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-20T08:12:39+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:12:13+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"birthday\":\"1980-02-15\",\"personalIdNumber\":\"38002280000\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"gender\":\"male\",\"company\":{\"id\":7093,\"name\":\"Postman API Test First Company Name\",\"jobTitle\":\"CEO\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},\"vatCode\":\"LT1234567890\",\"code\":\"1234567890\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":51265,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":51267,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":51269,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":51271,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":51273,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":51163,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":51165,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":51167,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":51169,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":51171,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":51237,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":51239,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":51241,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":51243,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":51245,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10357,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"6a612101-c0cb-404c-9442-29d07c352185"},{"name":"Get People Collection","event":[{"listen":"test","script":{"id":"76e6e7c1-6b80-47bb-bdec-cdc6e9f1d562","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"converted\": JSON.parse(pm.environment.get('converted_schema')),","                    \"updated\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('updated_schema')),],","                    \"isDeleted\": { \"type\": \"string\" },","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"company\": JSON.parse(pm.environment.get('company_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid People Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}}],"id":"7eb019a9-9168-4056-a507-75bd32c105e0","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/people","description":"<p>Returns a paginated list of either deleted people or all people.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>ids</strong> <br />String</td>\n<td>Returns a collection of people by specific ids.<br />Example: <code>?ids[in]=1,2,3,4,5</code></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Person. You can search by full name or by fragment of name. Maximum length is 255 characters. <br />Example for strict search: <code>?name=John%20Smith</code> <br />And search by text fragment: <code>?name[like]=John</code></td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>createdUserId</strong> <br />Integer</td>\n<td>Unique identifier of the user who created the person. <br />Example: <code>?updatedUserId=6</code></td>\n</tr>\n<tr>\n<td><strong>updatedTime</strong> <br />DateTime</td>\n<td>Date and time of the update in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>updatedUserId</strong> <br />Integer</td>\n<td>Unique identifier of the user who updated the person. <br />Example: <code>?updatedUserId=6</code></td>\n</tr>\n<tr>\n<td><strong>convertedTime</strong> <br />DateTime</td>\n<td>Date and time of the convertion from lead in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td>Unique identifier of the user who is person owner. <br />Example: <code>?ownerId=6</code></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong> <br />Boolean</td>\n<td>Indicator the person is deleted or not. In responses deleted values are not displayed <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> Example: <code>?deleted=no</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br />Boolean</td>\n<td>Indicator the person is starred or not. <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> Example: <code>?starred=yes</code></td>\n</tr>\n<tr>\n<td><strong>customerStatus</strong> <br />Integer</td>\n<td>Customer status of the person. <br />Example: <code>?customerStatus=1</code></td>\n</tr>\n<tr>\n<td><strong>prospectStatus</strong> <br />Integer</td>\n<td>Prospect status of the person. <br />Example: <code>?prosperctStatus=2</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br />String</td>\n<td>Source of the person. <br />Example:  <code>?source=google.com</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br />Intiger</td>\n<td>Unique identifier of the source. <br />Example:  <code>?sourceId=123</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br />String</td>\n<td>Industry of the person. <br />Example:  <code>?industry=Banking</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br />Intiger</td>\n<td>Unique identifier of the industry. <br />Example:  <code>?industryId=234</code></td>\n</tr>\n<tr>\n<td><strong>phone</strong> <br />String</td>\n<td>Phone number of the person. The minimum number of characters for the search is 3. The search is performed by the last characters. <br />Example:  <code>?phone=556664</code></td>\n</tr>\n<tr>\n<td><strong>email</strong> <br />String</td>\n<td>Email address of the person. The minimum number of characters for the search is 3. <br />Example:  <code>?email=@gmail.com</code></td>\n</tr>\n<tr>\n<td><strong>birthday</strong> <br />Date</td>\n<td>Person's date of birth in YYY-MM-DD format. <br />Example: <code>?birthday=1980-01-01</code></td>\n</tr>\n<tr>\n<td><strong>personalIdNumber</strong> <br />String</td>\n<td>Unique personal identification code. <br />Example: <code>?personalIdNumber=38001010000</code></td>\n</tr>\n<tr>\n<td><strong>gender</strong> <br />String</td>\n<td>The person's gender.<br />Possible values: <ul><li>male</li><li>female</li></ul> Example: <code> ?gender=male</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <br />Possible values:  <ul><li>name</li><li>createdTime</li><li>updatedTime</li><li>convertedTime</li></ul> Example:<code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people"],"host":["api","teamgate","com"],"query":[{"disabled":true,"key":"limit","value":"50"},{"disabled":true,"key":"fields","value":"created"}],"variable":[]}},"response":[],"_postman_id":"7eb019a9-9168-4056-a507-75bd32c105e0"},{"name":"Search For People","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('updated_schema')),],","                    \"isDeleted\": { \"type\": \"string\" },","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","     }","};","","tests[\"Valid Person Search Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"7708cc10-52d4-4ec3-bcc5-1222f21480bb","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people?name[like]=Post","description":"<p>Returns a paginated list of people that meet your search criteria.</p>\n","urlObject":{"protocol":"https","path":["v4","people"],"host":["api","teamgate","com"],"query":[{"key":"name[like]","value":"Post"}],"variable":[]}},"response":[],"_postman_id":"7708cc10-52d4-4ec3-bcc5-1222f21480bb"},{"name":"Get details of a Person","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","           \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"birthday\": {\"type\": \"string\"},","                    \"personalIdNumber\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"gender\": {\"type\": \"string\"},","                    \"tags\":{\"type\": \"array\"},","                    \"company\": JSON.parse(pm.environment.get('company_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","     }","};","","tests[\"Valid Person Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"c9850d4a-77f9-411f-8652-b924b6160723","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}","description":"<p>Returns the data of specific person.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Person. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{personId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"69ff25ed-4f1f-4006-906f-a686e5ff271b","name":"Get Person","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:12:38 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9935","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9661,\"name\":\"Postman API Test Person Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-20T08:12:39+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:12:13+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"birthday\":\"1980-02-15\",\"personalIdNumber\":\"38002280000\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"gender\":\"male\",\"company\":{\"id\":7093,\"name\":\"Postman API Test First Company Name\",\"jobTitle\":\"CEO\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},\"vatCode\":\"LT1234567890\",\"code\":\"1234567890\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":51265,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":51267,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":51269,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":51271,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":51273,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":51163,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":51165,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":51167,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":51169,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":51171,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":51237,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":51239,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":51241,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":51243,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":51245,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10357,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"c9850d4a-77f9-411f-8652-b924b6160723"},{"name":"Get merge history of a Person","event":[{"listen":"test","script":{"id":"9e22d3c9-ebd1-4530-b33f-0cf30243b2d9","exec":["/*tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","           \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"birthday\": {\"type\": \"string\"},","                    \"personalIdNumber\": {\"type\": \"string\"},","                    \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                    \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                    \"gender\": {\"type\": \"string\"},","                    \"tags\":{\"type\": \"array\"},","                    \"company\": JSON.parse(pm.environment.get('company_schema')),","                    \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                    \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                    \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                    \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","     }","};","","tests[\"Valid Person Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}*/"],"type":"text/javascript"}}],"id":"91ff891f-55a0-4bbb-9fdf-21a89b1b4edb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/people/{{personId}}/merge","description":"<p>Returns merge history of a specific person.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <strong>Required</strong></td>\n<td>Unique key of the Person. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{personId}}","merge"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"de69d78e-9b7f-4e9a-86cc-bc3d8bbf4de5","name":"Get Person","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"url":"https://api.teamgate.com/v4/people/{{personId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:12:38 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9935","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":9661,\"name\":\"Postman API Test Person Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}},\"starred\":\"yes\",\"source\":{\"id\":111,\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},\"industry\":{\"id\":113,\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"},\"created\":{\"time\":\"2018-07-20T08:12:39+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-20T08:12:13+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"birthday\":\"1980-02-15\",\"personalIdNumber\":\"38002280000\",\"customerStatus\":{\"id\":1,\"name\":\"past_customer\"},\"prospectStatus\":{\"id\":1,\"name\":\"lost_prospect\"},\"gender\":\"male\",\"company\":{\"id\":7093,\"name\":\"Postman API Test First Company Name\",\"jobTitle\":\"CEO\",\"phone\":{\"value\":\"+44 123 456 7890\",\"type\":\"work\"},\"email\":{\"value\":\"john@example.net\",\"type\":\"work\"},\"address\":{\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"},\"url\":{\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},\"vatCode\":\"LT1234567890\",\"code\":\"1234567890\"},\"tags\":[\"B2B\"],\"emails\":[{\"id\":51265,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":51267,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":51269,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":51271,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":51273,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":51163,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":51165,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":51167,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":51169,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":51171,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":51237,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":51239,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":51241,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":51243,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":51245,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":10357,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"91ff891f-55a0-4bbb-9fdf-21a89b1b4edb"},{"name":"Get all deals of a Person","event":[{"listen":"test","script":{"id":"20c0eddd-360b-47ba-a167-c7955cbf3696","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"c6e6df8c-e097-4d8a-b060-2d2b5d08fde4","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/people/{{personId}}/deals","description":"<p>Returns the deals associated with a person.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of person \"deals\" is used the same parameters as with resource \"deals\".</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{personId}}","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"226808e4-6e32-4280-bb41-08b965b90198","name":"Get Person Deals [NO RESPONSE]","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/deals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:23:43 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9939","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":0,\"data\":[]}"}],"_postman_id":"c6e6df8c-e097-4d8a-b060-2d2b5d08fde4"},{"name":"Get activites by a Person","event":[{"listen":"test","script":{"id":"a679b31d-3c6a-4311-946c-e4b270c2ecc8","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": {\"type\": \"integer\"},","        \"data\": {","            \"type\": \"array\",","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"canEdit\", \"canView\", \"type\", \"isDeleted\", \"created\", \"updated\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"canEdit\": {\"type\": \"string\"},","                    \"canView\": {\"type\": \"string\"},","                    \"type\": {\"type\": \"string\"},","                    \"name\": {\"type\": \"string\"},","                    \"isDeleted\": {\"type\": \"string\"},","                    \"start\": {\"type\": \"string\"},","                    \"end\": {\"type\": \"string\"},","                    \"status\": {\"type\": \"string\"},","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"completed\": {","                        \"properties\": {","                            \"type\": \"object\",","                            \"time\": {\"type\": \"string\"}","                        }","                    },","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"deals\": JSON.parse(pm.environment.get('deals_schema')),","                    \"companies\": JSON.parse(pm.environment.get('companies_schema')),","                }","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Person Events Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"3ba40257-35ad-47ad-a259-3661479a2352","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/people/{{personId}}/events","description":"<p>Returns a list of Tasks, Appointments or Custom Activity.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of person \"events\" is used the same parameters as with resource \"events\".</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{personId}}","events"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"b646f097-a37a-437a-8a6f-8b4b42e5943a","name":"Get Single Person Events","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{firstUserId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:12:54 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9933","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":3,\"data\":[{\"id\":155,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"appointment\",\"isDeleted\":\"no\",\"start\":\"2018-02-13T08:30:00+00:00\",\"end\":\"2018-02-13T10:00:00+00:00\",\"allDay\":\"no\",\"isSecret\":\"no\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"created\":{\"time\":\"2018-02-02T08:51:39+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-02-02T08:51:39+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"deals\":[{\"id\":27,\"name\":\"Skambu\\u010di\\u0173 centro paslauga (30 d.)\"}],\"people\":[{\"id\":13,\"name\":\"Jonas Basanavi\\u010dius\"}]},{\"id\":3773,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"appointment\",\"name\":\"Don't miss this meeting\",\"isDeleted\":\"no\",\"description\":\"You missed it\",\"start\":\"2018-06-22T21:00:00+00:00\",\"end\":\"2018-06-23T21:00:00+00:00\",\"allDay\":\"yes\",\"place\":\"Lauke\",\"isSecret\":\"no\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"created\":{\"time\":\"2018-06-22T11:27:40+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-06-22T11:27:40+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"people\":[{\"id\":13,\"name\":\"Jonas Basanavi\\u010dius\"},{\"id\":23,\"name\":\"Jonas Bili\\u016bnas\"}],\"companies\":[{\"id\":6515,\"name\":\"My test company\"}],\"attendees\":[{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}]},{\"id\":3871,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"appointment\",\"name\":\"This is my activiyty title\",\"isDeleted\":\"no\",\"start\":\"2018-06-27T21:00:00+00:00\",\"end\":\"2018-06-28T20:59:59+00:00\",\"allDay\":\"yes\",\"place\":\"Vilnius\",\"isSecret\":\"no\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"created\":{\"time\":\"2018-06-26T07:52:54+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-06-26T07:52:54+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"deals\":[{\"id\":1,\"name\":\"Programin\\u0117s \\u012frangos nuoma\"},{\"id\":3,\"name\":\"Svetain\\u0117s suk\\u016brimas\"},{\"id\":5,\"name\":\"Pardavim\\u0173 mokymai\"}],\"people\":[{\"id\":5,\"name\":\"Jurgis Baltru\\u0161aitis\"},{\"id\":9,\"name\":\"Antanas Baranauskas\"},{\"id\":13,\"name\":\"Jonas Basanavi\\u010dius\"}],\"companies\":[{\"id\":5329,\"name\":\"Integromat company\"},{\"id\":5331,\"name\":\"Integromat testas, komapnijai\"}],\"leads\":[{\"id\":107,\"name\":\"Balys Sruoga\"},{\"id\":111,\"name\":\"Antanas Strazdas\"},{\"id\":115,\"name\":\"Pranas Vai\\u010daitis\"}],\"attendees\":[{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},{\"id\":5,\"name\":\"John\",\"surname\":\"Johnensen\",\"username\":\"j.john@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/big.jpg\"}},{\"id\":7,\"name\":\"Sarah\",\"surname\":\"Sarahsen\",\"username\":\"s.sarah@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/7\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/7\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/7\\/big.jpg\"}},{\"id\":9,\"name\":\"Bob\",\"surname\":\"Bobler\",\"username\":\"b.bobso@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/9\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/9\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/9\\/big.jpg\"}},{\"id\":11,\"name\":\"Marie\",\"surname\":\"Merinson\",\"username\":\"m.merinson@topbuisnes.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/11\\/big.jpg\"}},{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"username\":\"p.peterson@topbuisness.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"}}],\"resources\":[{\"id\":1,\"name\":\"Meeting room\"}]}]}"}],"_postman_id":"3ba40257-35ad-47ad-a259-3661479a2352"},{"name":"Get customer statuses of a Person","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('customer_statuses_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Person Customer Statues Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"d1bc4f53-c40d-4192-9bdc-aef6ab50aa41","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/customerStatuses","description":"<p>Returns a list of customer status values.</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{personId}}","customerStatuses"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"56401ef7-9e55-41f7-8b37-bae57c21ee3f","name":"Get Person Customer Statuses","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/customerStatuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:35:46 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9992","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525769100","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":3,\"data\":[{\"id\":0,\"name\":\"non_customer\"},{\"id\":1,\"name\":\"past_customer\",\"selected\":\"yes\"},{\"id\":2,\"name\":\"customer\"}]}"}],"_postman_id":"d1bc4f53-c40d-4192-9bdc-aef6ab50aa41"},{"name":"Get prospect statuses of a Person","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('prospect_statuses_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Person Prospect Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"0238a175-e66f-4b67-b654-e46be9a2387f","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/prospectStatuses","description":"<p>Returns a list of prospect status values.</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{personId}}","prospectStatuses"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"2592b5e7-8966-41a2-be08-6f7d00e0adca","name":"Get Person Prospect Statuses","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/prospectStatuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:35:58 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9991","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525769100","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":3,\"data\":[{\"id\":0,\"name\":\"non_prospect\"},{\"id\":1,\"name\":\"lost_prospect\",\"selected\":\"yes\",\"disabled\":\"yes\"},{\"id\":2,\"name\":\"prospect\",\"disabled\":\"yes\"}]}"}],"_postman_id":"0238a175-e66f-4b67-b654-e46be9a2387f"},{"name":"Get industries of a Person","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('industry_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Person Industries Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"472a6791-b19c-4d3d-9fd9-cb82285a53c4","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/industries","description":"<p>Returns a list of assigned person industries.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of person \"industries\" is used the same parameters as with resource \"industries\".</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{personId}}","industries"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"420e64ce-fd84-4935-bdee-9e6208498498","name":"Get Person Industries","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/industries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:13:21 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9930","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":31,\"data\":[{\"id\":26,\"name\":\"Farming\"},{\"id\":27,\"name\":\"Clothing, footwear\"},{\"id\":32,\"name\":\"Construction, NT\"},{\"id\":34,\"name\":\"Education, culture, science\"},{\"id\":35,\"name\":\"Electronics\"},{\"id\":36,\"name\":\"Energy, raw materials\"},{\"id\":37,\"name\":\"Engineering\"},{\"id\":38,\"name\":\"Entertainment, tourism\"},{\"id\":39,\"name\":\"Landscaping, environmental management\"},{\"id\":40,\"name\":\"Finance, insurance, law\"},{\"id\":42,\"name\":\"State institutions\"},{\"id\":43,\"name\":\"Health and beauty\"},{\"id\":47,\"name\":\"Industry, production\"},{\"id\":48,\"name\":\"Advertising, media\"},{\"id\":52,\"name\":\"Technologies\"},{\"id\":53,\"name\":\"IT, communications\"},{\"id\":54,\"name\":\"Transport, machinery\"},{\"id\":56,\"name\":\"Kita\"},{\"id\":61,\"name\":\"Furniture\"},{\"id\":62,\"name\":\"E-commerce\"},{\"id\":63,\"name\":\"Food\"},{\"id\":64,\"name\":\"Services\"},{\"id\":65,\"name\":\"Restaurants\"},{\"id\":81,\"name\":\"Environmental protection\"},{\"id\":113,\"selected\":\"yes\",\"name\":\"Software Testing\",\"description\":\"Industry form API testing tool Postman\"}]}"}],"_postman_id":"472a6791-b19c-4d3d-9fd9-cb82285a53c4"},{"name":"Get sources of a Person","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('sources_schema'))","    }","};","","tests[\"Valid Person Sources Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"026fd273-6e47-41c6-afcc-195aeff83070","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/sources","description":"<p>Returns a list of assigned person sources.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of person \"sources\" is used the same parameters as with resource \"sources\".</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{personId}}","sources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"2151ed96-bde2-494f-80f1-483e993a0b00","name":"Get Person sources","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/sources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:13:30 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9929","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":24,\"data\":[{\"id\":1,\"name\":\"Advertising\"},{\"id\":2,\"name\":\"Cold call\"},{\"id\":4,\"name\":\"External recommendation\"},{\"id\":5,\"name\":\"E. shop\"},{\"id\":7,\"name\":\"Public Relations\"},{\"id\":8,\"name\":\"Newsletters\"},{\"id\":12,\"name\":\"Web search\"},{\"id\":79,\"name\":\"Unspecified\"},{\"id\":83,\"name\":\"Internal recommendation\"},{\"id\":84,\"name\":\"Registration on the site\"},{\"id\":111,\"selected\":\"yes\",\"name\":\"Postman\",\"description\":\"Source form API testing tool Postman\"},{\"id\":115,\"name\":\"Postman Source Change\",\"description\":\"Postman Source Change Description Test\"},{\"id\":119,\"name\":\"www.postman.com\",\"description\":\"Postman Source description\"},{\"id\":121,\"name\":\"sourceById\"},{\"id\":123,\"name\":\"Array\"},{\"id\":127,\"name\":\"Testassss\",\"description\":\"integromattttt\"},{\"id\":131,\"name\":\"wooo\",\"description\":\"ooow\"},{\"id\":139,\"name\":\"zis is za source\",\"description\":\"souuurce\"},{\"id\":143,\"name\":\"Naujas sourcas\",\"description\":\"Labai naujas sourcas\"},{\"id\":145,\"name\":\"TEstttt\",\"description\":\"testsetetw\"},{\"id\":147,\"name\":\"143\"},{\"id\":149,\"name\":\"Kompletely new\",\"description\":\"nuja, ziurim ar veikia description\"},{\"id\":151,\"name\":\"Web search\",\"description\":\"Found by web search\"},{\"id\":155,\"name\":\"Website sale\",\"description\":\"Selling trough website\"}]}"}],"_postman_id":"026fd273-6e47-41c6-afcc-195aeff83070"},{"name":"Get all Custom Data of a Person","event":[{"listen":"test","script":{"id":"4eced59b-9e0b-406e-94fb-989191bb94bd","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('custom_field_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Person Custom Data Schema\"] = tv4.validate(jsonData, schema);","","pm.environment.set(\"lastFieldId\", jsonData.data[0].id);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"9472f21f-3d73-4868-97d3-309b91f63faa","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/people/{{personId}}/customFields","description":"<p>Returns a set of person custom field values.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of person \"customFields\" is used the same parameters as with resource \"customFields\".</p>\n","urlObject":{"protocol":"https","path":["v4","people","{{personId}}","customFields"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"9d956baf-11b4-4cee-ac6c-f5253596fbb0","name":"Get Person Custom Data","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}/customFields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:13:40 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9928","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":27,\"name\":\"Buisness model\",\"module\":\"people\",\"isActive\":\"yes\",\"value\":\"Customer to business C2B\",\"isFilter\":\"no\",\"isList\":\"yes\",\"type\":\"text\"}]}"}],"_postman_id":"9472f21f-3d73-4868-97d3-309b91f63faa"},{"name":"Update a Person","event":[{"listen":"test","script":{"id":"a7c0ee9b-9e0b-4894-845f-03e6a48d0d0a","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Person Name\"] = jsonData.data.name == \"Postman API Test Person Changed Name\";","tests[\"Person Small Picture\"] = jsonData.data.picture.small.has(\".svg\");","tests[\"Person Medium Picture\"] = jsonData.data.picture.medium.has(\".svg\");","tests[\"Person Large Picture\"] = jsonData.data.picture.large.has(\".svg\");","","tests[\"Person Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"secondUserId\");","tests[\"Person Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person Starred YES\"] = jsonData.data.starred == \"no\";","tests[\"Person Source Id\"] = jsonData.data.source.id == \"8\";","","tests[\"Person Industry Id\"] = jsonData.data.industry.id == \"48\";","","tests[\"Person Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Person Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Person Creator Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Creator Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Creator Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person Updated Time\"] = jsonData.data.updated.time.has(\"T\");","tests[\"Person Updator\"] = jsonData.data.updated.user.id == pm.environment.get(\"firstUserId\");","tests[\"Person Updator Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Person Updator Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Person Updator Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Person is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Person Birthday\"] = jsonData.data.birthday == \"1990-04-20\";","tests[\"Person PersonalIdNumber\"] = jsonData.data.personalIdNumber == \"38002280001\";","tests[\"Person Customer Status Id\"] = jsonData.data.customerStatus.id == 2;","tests[\"Person Customer Status Name\"] = jsonData.data.customerStatus.name == \"customer\";","","tests[\"Person Prospect Status Id\"] = jsonData.data.prospectStatus.id == 2;","tests[\"Person Prospect Status Name\"] = jsonData.data.prospectStatus.name == \"prospect\";","","tests[\"Person is Gender\"] = jsonData.data.gender == \"female\";","tests[\"Person is Tags\"] = jsonData.data.tags == \"B2C\";","","tests[\"Person Email 1 Value\"] = jsonData.data.emails[0].value == \"john@example.net\";","tests[\"Person Email 1 Type\"] = jsonData.data.emails[0].type == \"work\";","tests[\"Person Email 2 Value\"] = jsonData.data.emails[1].value == \"john.brown@example.net\";","tests[\"Person Email 2 Type\"] = jsonData.data.emails[1].type == \"personal\";","tests[\"Person Email 3 Value\"] = jsonData.data.emails[2].value == \"j.brown@example.net\";","tests[\"Person Email 3 Type\"] = jsonData.data.emails[2].type == \"support\";","tests[\"Person Email 4 Value\"] = jsonData.data.emails[3].value == \"john.b@example.net\";","tests[\"Person Email 4 Type\"] = jsonData.data.emails[3].type == \"accounting\";","tests[\"Person Email 5 Value\"] = jsonData.data.emails[4].value == \"j.b@example.net\";","tests[\"Person Email 5 Type\"] = jsonData.data.emails[4].type == \"other\";","","tests[\"Person URL 1 Value (website)\"] = jsonData.data.urls[0].value == \"http://example.com\";","tests[\"Person URL 1 Type (website)\"] = jsonData.data.urls[0].type == \"website\";","tests[\"Person URL 2 Value (facebook)\"] = jsonData.data.urls[1].value == \"https://facebook.com/example\";","tests[\"Person URL 2 Type (facebook)\"] = jsonData.data.urls[1].type == \"facebook\";","tests[\"Person URL 3 Value (linkedin)\"] = jsonData.data.urls[2].value == \"https://linkedin.com/example\";","tests[\"Person URL 3 Type (linkedin)\"] = jsonData.data.urls[2].type == \"linkedin\";","tests[\"Person URL 4 Value (twitter)\"] = jsonData.data.urls[3].value == \"https://twitter.com/example\";","tests[\"Person URL 4 Type (twitter)\"] = jsonData.data.urls[3].type == \"twitter\";","tests[\"Person URL 5 Value (skype)\"] = jsonData.data.urls[4].value == \"skype_example\";","tests[\"Person URL 5 Type (skype)\"] = jsonData.data.urls[4].type == \"skype\";","","tests[\"Person Phone 1 Value\"] = jsonData.data.phones[0].value == \"+44 123 456 7890\";","tests[\"Person Phone 1 Type\"] = jsonData.data.phones[0].type == \"work\";","tests[\"Person Phone 2 Value\"] = jsonData.data.phones[1].value == \"+44 123 456 7891\";","tests[\"Person Phone 2 Type\"] = jsonData.data.phones[1].type == \"home\";","tests[\"Person Phone 3 Value\"] = jsonData.data.phones[2].value == \"+44 123 456 7892\";","tests[\"Person Phone 3 Type\"] = jsonData.data.phones[2].type == \"mobile\";","tests[\"Person Phone 4 Value\"] = jsonData.data.phones[3].value == \"+44 123 456 7893\";","tests[\"Person Phone 4 Type\"] = jsonData.data.phones[3].type == \"fax\";","tests[\"Person Phone 5 Value\"] = jsonData.data.phones[4].value == \"+44 123 456 7894\";","tests[\"Person Phone 5 Type\"] = jsonData.data.phones[4].type == \"other\";","","tests[\"Person Address 1 Street\"] = jsonData.data.addresses[0].value.street == \"Long st. 12-34\";","tests[\"Person Address 1 London\"] = jsonData.data.addresses[0].value.city == \"London\";","tests[\"Person Address 1 Zip\"] = jsonData.data.addresses[0].value.zip == \"123456\";","tests[\"Person Address 1 State\"] = jsonData.data.addresses[0].value.state == \"London region\";","tests[\"Person Address 1 Latitude\"] = jsonData.data.addresses[0].value.latitude == \"51.529610\";","tests[\"Person Address 1 Longitude\"] = jsonData.data.addresses[0].value.longitude == \"-0.077815\";","tests[\"Person Address 1 Country ISO Code\"] = jsonData.data.addresses[0].value.country.iso == \"GBR\";","tests[\"Person Address 1 Country Name\"] = jsonData.data.addresses[0].value.country.name == \"United Kingdom\" || \"Didžioji Britanija\";;","tests[\"Person Address 1 Type\"] = jsonData.data.addresses[0].type == \"billing\";","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"birthday\": {\"type\": \"string\"},","                \"personalIdNumber\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"gender\": {\"type\": \"string\"},","                \"tags\":{\"type\": \"array\"},","                \"company\": JSON.parse(pm.environment.get('company_schema')),","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","     }","};","tests[\"Valid Person Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"39163c34-52c9-440d-ba20-6067160c3812","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman API Test Person Changed Name\",\n  \"prospectStatusId\": \"2\",\n  \"customerStatusId\": \"2\",\n  \"starred\": \"false\",\n  \"ownerId\": \"{{secondUserId}}\",\n  \"ownerUsername\": \"PostmanUser2@example.com\",\n  \"ownerRandom\": {\n  \t\t\"0\": \"{{firstUserId}}\",\n  \t\t\"1\": \"{{secondUserId}}\",\n\t\t\"groups\":[\"{{groupId}}\"]\n  },\n  \"sourceId\": \"8\",\n  \"industryId\": \"48\",\n  \"tags\": \"B2C\",\n  \"birthday\": \"1990-04-20\",\n  \"personalIdNumber\": \"38002280001\",\n  \"gender\": \"female\",\n  \"customFields\": \"test\"\n}"},"url":"https://api.teamgate.com/v4/people/{{personId}}","description":"<p>Update a person</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"name\": \"JOHN Smith\"</code></td>\n</tr>\n<tr>\n<td><strong>customerStatusId</strong> <br /> String</td>\n<td>Possible Values: <ul><li> 0 - Non Customer </li><li> 1 - Past Customer </li><li> 2 - Customer </li></ul></td>\n</tr>\n<tr>\n<td><strong>prospectStatusId</strong> <br /> Integer</td>\n<td>Possible Values: <ul><li>0 - Non Prospect  </li><li> 1 -Lost Prospect </li><li> 2 - Prospect </li></ul></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"ownerId\": \"1\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerUsername</strong> <br /> String</td>\n<td><strong>Example:</strong>    <code>\"ownerUsername\": \"john@example.com\"</code></td>\n</tr>\n<tr>\n<td><strong>ownerRandom</strong> <br /> Array/Object</td>\n<td>Pull the list of users/user groups to select the random owner.<br /><strong>Example 1:</strong>   <code>\"ownerRandom\": [\"5\", \"6\"]</code><br /><strong>Example 2:</strong>   <code>\"ownerRandom\": {\"groups\":[\"1\"]}</code><br /><strong>Example 3:</strong>   <code>\"ownerRandom\": {\"0\":\"5\",\"1\":\"6\",\"groups\":[\"1\"]}</code></td>\n</tr>\n<tr>\n<td><strong>sourceId</strong> <br /> integer</td>\n<td><strong>Example:</strong>   <code>\"sourceId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>source</strong> <br /> string</td>\n<td>If the source does not exist it will be created. <br /> <strong>Example:</strong> <code>\"source\": \"www.bing.com\"</code></td>\n</tr>\n<tr>\n<td><strong>sourceDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new source. <br /> <strong>Example:</strong>     <code>\"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"</code></td>\n</tr>\n<tr>\n<td><strong>industryId</strong> <br /> Integer</td>\n<td><strong>Example:</strong>   <code>\"industryId\": \"123\"</code></td>\n</tr>\n<tr>\n<td><strong>industry</strong><br />String</td>\n<td>If the industry does not exist it will be created.<br /><strong>Example:</strong> <code>\"industry\": \"Computer software\"</code></td>\n</tr>\n<tr>\n<td><strong>industryDescription</strong> <br /> string</td>\n<td>Will be set only if will be created new industry. <strong>Example:</strong>    <code>\"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"</code></td>\n</tr>\n<tr>\n<td><strong>tags</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li> <code>\"tags\": \"B2B\"</code> </li><li>  <code>\"tags\": \"[B2B, B2C]\"</code> </li></ul></td>\n</tr>\n<tr>\n<td><strong>birthday</strong> <br /> Date</td>\n<td>Person's date of birth in YYY-MM-DD format. <br /> <strong>Example:</strong>  <code>\"birthday\": \"1980-02-29\"</code></td>\n</tr>\n<tr>\n<td><strong>personalNumber</strong> <br />String</td>\n<td>Unique personal identification code. <br /> <strong>Example:</strong> <code>\"personalIdNumber\": \"38002290000\"</code></td>\n</tr>\n<tr>\n<td><strong>gender</strong> <br /> string<br /></td>\n<td>The person's gender. <strong>Possible Values:</strong>  <ul><li>  male </li><li>  female </li></ul> <strong>Example</strong>   <code>\"gender\": \"male\"</code></td>\n</tr>\n<tr>\n<td><strong>customFields</strong> <br /> string/array<br /></td>\n<td><strong>Example:</strong>  <ul><li>  Example for string value (fieldId : value): <code>\"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\"</code> </li><li>Example for select (fieldID : valueId): <code>\"customFields\": \"{'3':'5'}\"</code></li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{personId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"be835d33-160c-4ac0-9334-26f418afbf90","name":"Update Person","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Postman API Test Person Changed Name","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|name <br>String **Required**      | **Example:**  \"name\": \"JOHN Smith\"   |"},{"key":"prospectStatusId","value":"2","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|customerStatusId <br> String |Possible Values: <ul><li> 0 - Non Customer </li><li> 1 - Past Customer </li><li> 2 - Customer </li></ul>  |"},{"key":"customerStatusId","value":"2","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|prospectStatusId <br> Integer |Possible Values: <ul><li>0 - Non Prospect  </li><li> 1 -Lost Prospect </li><li> 2 - Prospect </li></ul> |"},{"key":"starred","value":"false","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|starred <br> Boolean |Indicator the company is starred or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul>  |"},{"key":"ownerId","value":"{{secondUserId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|ownerId <br> Integer |**Example:**   \"ownerId\": \"1\"   |"},{"key":"ownerUsername","value":"PostmanUser2@example.com","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|ownerUsername <br> String |**Example:**    \"ownerUsername\": \"john@example.com\"   |","type":"text"},{"key":"sourceId","value":"115","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|sourceId <br> integer |**Example:**    \"sourceId\": \"123\"    |","type":"text"},{"key":"source","value":"Postman Source Change","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|source <br> string |If the source does not exist it will be created. <br> **Example:**    \"source\": \"www.bing.com\"     |"},{"key":"sourceDescription","value":"Postman Source Change Description Test","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|sourceDescription <br> string |Will be set only if will be created new source. <br> **Example:**     \"sourceDescription\": \"Bing is a web search engine owned and operated by Microsoft.\"      |"},{"key":"industryId","value":"117","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|industryId <br> integer |**Example:**    \"industryId\": \"123\"    |","type":"text"},{"key":"industry","value":"Postman Industry Change","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|industry <br> string |If the industry does not exist it will be created. <br> **Example:**    \"industry\": \"Computer software\"     |"},{"key":"industryDescription","value":"Postman Industry Change Description Test\"","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|industryDescription <br> string | Will be set only if will be created new industry. **Example:**    \"industryDescription\": \"Computer software (often called just software) is a set of instructions and associated documentation\"     |"},{"key":"tags","value":"B2C","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|tags <br> string/array<br> |**Example:**  <ul><li>  \"tags\": \"B2B\" </li><li>  \"tags\": \"[B2B, B2C]\" </li></ul>    |"},{"key":"birthday","value":"1990-04-20","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|birthday <br> Date |Person's date of birth in YYY-MM-DD format. <br> **Example:**    birthday\": \"1980-02-29\"     |"},{"key":"personalIdNumber","value":"38002280001","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|personalNumber <br> String |Unique personal identification code. <br> **Example:**     \"personalIdNumber\": \"38002290000\"      |"},{"key":"gender","value":"female","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|gender <br> string<br> | The person's gender. **Possible Values:**  <ul><li>  male </li><li>  female </li></ul> **Example**   \"gender\": \"male\"    |"},{"key":"customFields","value":"[{'3':'5'},{'4':['8','9']}]","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|address <br> string/array<br> |**Example:**  <ul><li>  Example for string value (fieldId : value): \"customFields\": \"[{'1':'Test value for field with Id 1'},{'2':'Value for field with Id 2'}]\" </li><li>Example for select (fieldID : valueId): \"customFields\": \"{'3':'5'}\"</li></ul>|","type":"text"}]},"url":"https://api.teamgate.com/v4/people/{{personId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:26:37 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9920","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":4249,\"name\":\"Postman API Test Person Changed Name\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/64\\/GBR.svg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/128\\/GBR.svg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/css\\/images\\/flags\\/256\\/GBR.svg\"},\"owner\":{\"id\":5,\"name\":\"Jonas\",\"surname\":\"Petrauskis\",\"username\":\"j.petrauskis@topimone.lt\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/5\\/big.jpg\"}},\"starred\":\"no\",\"source\":{\"id\":115,\"name\":\"Postman Source Change\",\"description\":\"Postman Source Change Description Test\"},\"industry\":{\"id\":117,\"name\":\"Postman Industry Change\",\"description\":\"Postman Industry Change Description Test\"},\"created\":{\"time\":\"2018-05-08T11:23:14+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-05-08T11:23:14+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"birthday\":\"1990-04-20\",\"personalIdNumber\":\"38002280001\",\"customerStatus\":{\"id\":2,\"name\":\"customer\"},\"prospectStatus\":{\"id\":2,\"name\":\"prospect\"},\"gender\":\"female\",\"tags\":[\"B2C\"],\"emails\":[{\"id\":22959,\"value\":\"john@example.net\",\"type\":\"work\"},{\"id\":22961,\"value\":\"john.brown@example.net\",\"type\":\"personal\"},{\"id\":22963,\"value\":\"j.brown@example.net\",\"type\":\"support\"},{\"id\":22965,\"value\":\"john.b@example.net\",\"type\":\"accounting\"},{\"id\":22967,\"value\":\"j.b@example.net\",\"type\":\"other\"}],\"urls\":[{\"id\":22871,\"value\":\"http:\\/\\/example.com\",\"type\":\"website\"},{\"id\":22873,\"value\":\"https:\\/\\/facebook.com\\/example\",\"type\":\"facebook\"},{\"id\":22875,\"value\":\"https:\\/\\/linkedin.com\\/example\",\"type\":\"linkedin\"},{\"id\":22877,\"value\":\"https:\\/\\/twitter.com\\/example\",\"type\":\"twitter\"},{\"id\":22879,\"value\":\"skype_example\",\"type\":\"skype\"}],\"phones\":[{\"id\":22939,\"value\":\"+44 123 456 7890\",\"type\":\"work\"},{\"id\":22941,\"value\":\"+44 123 456 7891\",\"type\":\"home\"},{\"id\":22943,\"value\":\"+44 123 456 7892\",\"type\":\"mobile\"},{\"id\":22945,\"value\":\"+44 123 456 7893\",\"type\":\"fax\"},{\"id\":22947,\"value\":\"+44 123 456 7894\",\"type\":\"other\"}],\"addresses\":[{\"id\":4709,\"value\":{\"street\":\"Long st. 12-34\",\"city\":\"London\",\"zip\":\"123456\",\"state\":\"London region\",\"latitude\":\"51.529610\",\"longitude\":\"-0.077815\",\"country\":{\"iso\":\"GBR\",\"name\":\"United Kingdom\"}},\"type\":\"billing\"}]}}"}],"_postman_id":"39163c34-52c9-440d-ba20-6067160c3812"},{"name":"Change a photo for a Person","event":[{"listen":"test","script":{"id":"0b14e6a6-455a-49be-aeea-2d36c1534551","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","tests[\"Person Medium Picture\"] = jsonData.data.picture.medium.has(\".jpg\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": {","            \"required\": [\"id\", \"name\", \"owner\", \"starred\", \"created\", \"updated\", \"isDeleted\", \"customerStatus\", \"prospectStatus\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"starred\": { \"type\": \"string\" },","                \"source\": JSON.parse(pm.environment.get('source_schema')),","                \"industry\": JSON.parse(pm.environment.get('industry_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                \"isDeleted\": { \"type\": \"string\" },","                \"birthday\": {\"type\": \"string\"},","                \"personalIdNumber\": {\"type\": \"string\"},","                \"customerStatus\": JSON.parse(pm.environment.get('customer_status_schema')),","                \"prospectStatus\": JSON.parse(pm.environment.get('prospect_status_schema')),","                \"gender\": {\"type\": \"string\"},","                \"tags\":{\"type\": \"array\"},","                \"company\": JSON.parse(pm.environment.get('company_schema')),","                \"emails\": JSON.parse(pm.environment.get('emails_schema')),","                \"urls\": JSON.parse(pm.environment.get('urls_schema')),","                \"phones\": JSON.parse(pm.environment.get('phones_schema')),","                \"addresses\": JSON.parse(pm.environment.get('address_schema'))","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Person Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"bfd313cc-5934-4924-aa55-18330a2145d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-App-Key","type":"text","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"content\": \"iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAXnRFWHRSYXcgcHJvZmlsZSB0eXBlIDhiaW0ACjhiaW0KICAgICAgMjgKMzg0MjQ5NGQwM2VkMDAwMDAwMDAwMDEwMDEyYzAwMDAwMDAxMDAwMTAxMmMw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9tg5MUAAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAyLHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMXgxLDF4MSwxeDHplfxwAAAAOXRFWHRzdFJlZjpkb2N1bWVudElEAHhtcC5kaWQ6NjA1QkMwMDYyRTBDRTQxMThFNTZENzk5ODg0REUyOTbi9LrWAAAAQXRFWHRzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQAeG1wLmRpZDo1RjVCQzAwNjJFMENFNDExOEU1NkQ3OTk4ODRERTI5NjaMk0MAAAAedEVYdHN0UmVmOnJlbmRpdGlvbkNsYXNzAHByb29mOnBkZi6gIiYAAAAodEVYdHhtcDpDcmVhdGVEYXRlADIwMTQtMDctMTVUMTc6NDQ6MTIrMDM6MDBI7hELAAAAKnRFWHR4bXA6TWV0YWRhdGFEYXRlADIwMTQtMDctMTVUMTc6NDQ6MTIrMDM6MDDAtH6MAAAAI3RFWHR4bXA6TW9kaWZ5RGF0ZQAyMDE0LTA3LTE1VDE0OjQ0OjI0Wio2/foAAAA5dEVYdHhtcE1NOkRvY3VtZW50SUQAeG1wLmRpZDo2MjVCQzAwNjJFMENFNDExOEU1NkQ3OTk4ODRERTI5NjUJM6YAAAA5dEVYdHhtcE1NOkluc3RhbmNlSUQAeG1wLmlpZDo2MjVCQzAwNjJFMENFNDExOEU1NkQ3OTk4ODRERTI5Nogb8xMAAABBdEVYdHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRAB4bXAuZGlkOjVGNUJDMDA2MkUwQ0U0MTE4RTU2RDc5OTg4NERFMjk2iJkTLgAAAB50RVh0eG1wTU06UmVuZGl0aW9uQ2xhc3MAcHJvb2Y6cGRmhKbfiQAAAABJRU5ErkJggg==\",\n\"size\": \"33268\"\n}"},"url":"https://api.teamgate.com/v4/people/{{personId}}/avatar","description":"<p>To add or update a photo for a person, send an authorized PUT request to the person's photo URL with the photo data bytes in the body.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>size</strong> <br />Integer</td>\n<td>File size in bytes  <strong>Example:</strong>   <code>\"size\": \"457\"</code></td>\n</tr>\n<tr>\n<td><strong>content</strong> <br />String</td>\n<td>The file content as base64 encoded string.<br />Note: Base64 encoding makes file sizes roughly 33-37% larger than their original binary representations! <br /> <strong>Example:</strong>  <code>\"content\": \"dGVhbWdhdGU=\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{personId}}","avatar"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfd313cc-5934-4924-aa55-18330a2145d7"},{"name":"Delete a Person","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"6792ed0c-bdb7-41ae-b298-a205a54a6fbf","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{personId}}","description":"<p>Delete a person</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Person. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","people","{{personId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6792ed0c-bdb7-41ae-b298-a205a54a6fbf"}],"id":"c17cb4ef-40f8-4123-b5c7-8d12a3f5a38b","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported people properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />integer <em>Read only</em></td>\n<td>Unique key of the Person.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Person. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>picture</strong> <br />String</td>\n<td>The person's picture. For the person picture is using Picture object. Read more information about Picture object <a href=\"./#8641c2c6-121b-4ba4-8fa2-905a7aeb2be7\">here</a></td>\n</tr>\n<tr>\n<td><strong>customerStatus</strong> <br />Object</td>\n<td>Customer status of the person. Read more information about <code>Contact</code> object <a href=\"./#1e203079-0b00-4587-b17d-736416e0aa65\">here</a></td>\n</tr>\n<tr>\n<td><strong>prospectStatus</strong> <br />Object</td>\n<td>Prospect status of the person. Read more information about deals <code>Stage</code> object <a href=\"./#1e203079-0b00-4587-b17d-736416e0aa65\">here</a></td>\n</tr>\n<tr>\n<td><strong>owner</strong> <br />Object</td>\n<td>For the owner is using User object. Read more information about <code>User</code> object <a href=\"./#8641c2c6-121b-4ba4-8fa2-905a7aeb2be7\">here</a></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br />Boolean</td>\n<td>Indicator of whether or not the person is important and marked by star.</td>\n</tr>\n<tr>\n<td><strong>source</strong> <br />Object</td>\n<td>The person’s source. Source are assigned from a common sources list. Read more information about <code>Source</code> object <a href=\"./#97d6de6d-c09a-4f65-8a32-c38639914e5c\">here</a></td>\n</tr>\n<tr>\n<td><strong>industry</strong> <br />Object</td>\n<td>The person's industry. Industry are assigned from a common industry list. Read more information about <code>Industry</code> object <a href=\"./#e006b7b3-ccf4-4d66-8d86-0c6715f700fe\">here</a></td>\n</tr>\n<tr>\n<td><strong>created</strong> <br />Object <em>Read only</em></td>\n<td>User, date and time Person record was created. information is read only, because automatically generated by the server. Read more information about <code>Created</code> object <a href=\"./#7d49fe80-3c31-48d7-addb-aec4afc7a9aa\">here</a></td>\n</tr>\n<tr>\n<td><strong>converted</strong> <br />Object <em>Read only</em></td>\n<td>Date and time Person was converted from lead. Information is read only, because automatically generated by the server. Read more information about <code>Converted</code> object <a href=\"./#ae94dfe6-6989-45a7-ab92-272bc9f02d67\">here</a></td>\n</tr>\n<tr>\n<td><strong>updated</strong> <br />Object <em>Read only</em></td>\n<td>User, date and time Person record was updated. information is read only, because automatically generated by the server. Read more information about <code>Updated</code> object <a href=\"/#aa47147c-6b42-4176-8565-30c52ef76c9a\">here</a></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong> <br />Boolean</td>\n<td>Indicator the person is deleted or not. In responses deleted values are not displayed</td>\n</tr>\n<tr>\n<td><strong>birthday</strong> <br />Date</td>\n<td>The person's birthday. Format: YYYY-MM-DD.</td>\n</tr>\n<tr>\n<td><strong>personalIdNumber</strong> <br />String</td>\n<td>Personal code of the person.</td>\n</tr>\n<tr>\n<td><strong>gender</strong> <br />String</td>\n<td>The person's gender.</td>\n</tr>\n<tr>\n<td><strong>company</strong> <br />Object</td>\n<td>The person primary company. For the person company is using Company object. Read more information about leads <code>Company</code> object <a href=\"./#badc7a7b-2a88-404e-9c42-5a8ec8b13b58\">here</a></td>\n</tr>\n<tr>\n<td><strong>emails</strong> <br />Array</td>\n<td>An array of email objects for the person. Read more information about <code>Email</code> object <a href=\"./#c3d764d8-af9b-46e6-be97-cc8d0264a376\">here</a></td>\n</tr>\n<tr>\n<td><strong>phones</strong> <br />Array</td>\n<td>An array of phone objects for the person. Read more information about <code>Phone</code> object <a href=\"./#6a9c4d1a-c72a-4409-8041-afe30c64314c\">here</a></td>\n</tr>\n<tr>\n<td><strong>urls</strong> <br />Array</td>\n<td>An array of url objects for the person. Read more information about <code>Url</code> object <a href=\"./#c4d7bd78-8b18-4b2e-9505-82f66f786455\">here</a></td>\n</tr>\n<tr>\n<td><strong>addresses</strong> <br />Array</td>\n<td>An array of address objects for the person. Read more information about <code>Address</code> object <a href=\"/#f1511aad-d3dc-4118-98d6-bed247321ea3\">here</a></td>\n</tr>\n<tr>\n<td><strong>customFields</strong> <br />Array</td>\n<td>An array of custom Fields for the person.  <br /> Example: <code>/?embed=customFields</code> Read more information about <code>customFields</code> object <a href=\"./#4a68703e-4ec2-4e60-a941-9142d32d92d5\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"ffe35257-f27f-47ab-96c7-1d49300fdc75","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"92bb25b4-3527-4425-acca-a644427ff520","type":"text/javascript","exec":[""]}}],"_postman_id":"c17cb4ef-40f8-4123-b5c7-8d12a3f5a38b"},{"name":"14. Products","item":[{"name":"Files","item":[{"name":"Add Product Files","event":[{"listen":"test","script":{"id":"9e44a3f5-1e7c-4c76-a1de-ee47035d7f1e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Values Test","tests[\"File Attached\"] = jsonData.count == \"1\";","tests[\"File Full Name\"] = jsonData.data[0].fullName == \"commercialOffer.txt\";","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"1b330937-b2d2-4c85-9a0c-254bed69bfb7","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"{{firstGlobalFileId}}","type":"text","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value <br /> integer<br /></td>\n<td><strong>Example:</strong>  <ul><li> <code>\"value\": \"[1, 3, 7, 12]\"</code> </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>"}]},"url":"https://api.teamgate.com/v4/products/{{firstGlobalProductId}}/files","description":"<p>Attach Product Files</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> array <br /></td>\n<td><strong>Example:</strong> <code>\"value\": \"[1, 3, 7, 8, 12]\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products","{{firstGlobalProductId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"cef7db30-21d6-4218-95bc-01fc262496b9","name":"Add Product Files","originalRequest":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/x-www-form-urlencoded","disabled":false}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"{{firstGlobalFileId}}","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|value <br> integer<br> |**Example:**  <ul><li> `\"value\": \"[1, 3, 7, 12]\"` </li></ul>    |"}]},"url":"https://api.teamgate.com/v4/products/{{productId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Jul 2018 12:18:08 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamgate","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"1000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"990","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532521800","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":1,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-07-25T12:15:50+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"alzarkaitis22@gmail.com\",\"picture\":{\"small\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"products\":[{\"id\":13,\"name\":\"My Postman Product Nr...\",\"isDeleted\":\"no\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/eu2.teamgate.com\\/?r=teamgate\\/externalFiles\\/get&id=1&hash=dc27f9cda629bbba2eaf9ccb522ce011cffcf06a\",\"time\":\"2018-07-25T13:18:37+00:00\"}}]}"}],"_postman_id":"1b330937-b2d2-4c85-9a0c-254bed69bfb7"},{"name":"Edit Product Files","event":[{"listen":"test","script":{"id":"55bec5d0-59b5-47d7-ac67-0db87319d82b","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Response Value Test","tests[\"File Attached\"] = jsonData.count == \"2\";","tests[\"File Full Name1\"] = jsonData.data[0].fullName == \"commercialOffer.txt\";","tests[\"File Full Name2\"] = jsonData.data[1].fullName == \"commercialOffer2.txt\";","","//Set a new Variable","pm.environment.set(\"lastFileId\", jsonData.data[0].id);","","//SchemaTest","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"aa1f5942-a8c7-49b0-9124-305e4a2a0917","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"value\": [\"{{secondGlobalFileId}}\", \"{{firstGlobalFileId}}\"]\n}\n"},"url":"https://api.teamgate.com/v4/products/{{firstGlobalProductId}}/files","description":"<p>Detach all product files and atach new ones</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br /> array <br /></td>\n<td><strong>Example:</strong> <code>\"value\": \"[1, 3, 7, 8, 12]\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products","{{firstGlobalProductId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"4ef2a099-c5b8-4f5e-94f4-757ad336fbcc","name":"Edit Product Files","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"value\": [\"{{secondGlobalFileId}}\", \"{{firstGlobalFileId}}\"]\n}\n"},"url":"https://api.teamgate.com/v4/products/{{productId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Jul 2018 12:18:28 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamgate","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"1000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"989","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532521800","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-07-25T12:15:50+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"alzarkaitis22@gmail.com\",\"picture\":{\"small\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"products\":[{\"id\":13,\"name\":\"My Postman Product Nr...\",\"isDeleted\":\"no\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/eu2.teamgate.com\\/?r=teamgate\\/externalFiles\\/get&id=1&hash=a29c5d3c5582c31af104b5f7038d49cef4c10177\",\"time\":\"2018-07-25T13:18:57+00:00\"}},{\"id\":3,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-07-25T12:15:53+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"alzarkaitis22@gmail.com\",\"picture\":{\"small\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"products\":[{\"id\":13,\"name\":\"My Postman Product Nr...\",\"isDeleted\":\"no\"}],\"tags\":[\"offering\",\"test\",\"B2C\"],\"download\":{\"url\":\"https:\\/\\/eu2.teamgate.com\\/?r=teamgate\\/externalFiles\\/get&id=3&hash=e86aa4d0858b394194867cd1a086e1c76d42233f\",\"time\":\"2018-07-25T13:18:57+00:00\"}}]}"}],"_postman_id":"aa1f5942-a8c7-49b0-9124-305e4a2a0917"},{"name":"Get Product Files","event":[{"listen":"test","script":{"id":"9d7fd5bc-ea0d-4e6d-b0bd-a40efa29adec","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"1217af0d-4312-4854-987c-576810578f8d","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"url":"https://api.teamgate.com/v4/products/{{firstGlobalProductId}}/files","description":"<p>Get all product files</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of company \"Files\" is used the same parameters as with resource \"Files\".</p>\n","urlObject":{"protocol":"https","path":["v4","products","{{firstGlobalProductId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"a8158da2-442d-4508-b486-82e734fd5b64","name":"Get Product Files","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{productId}}/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 25 Jul 2018 12:18:47 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamgate","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"1000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"988","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532521800","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1,\"fullName\":\"commercialOffer.txt\",\"name\":\"commercialOffer\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 1st upload\",\"created\":{\"time\":\"2018-07-25T12:15:50+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"alzarkaitis22@gmail.com\",\"picture\":{\"small\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"products\":[{\"id\":13,\"name\":\"My Postman Product Nr...\",\"isDeleted\":\"no\"}],\"tags\":[\"offers\",\"testing\",\"B2B\"],\"download\":{\"url\":\"https:\\/\\/eu2.teamgate.com\\/?r=teamgate\\/externalFiles\\/get&id=1&hash=e541d8a7f7aa4d5eecded3418f1933fa493a2dff\",\"time\":\"2018-07-25T13:19:16+00:00\"}},{\"id\":3,\"fullName\":\"commercialOffer2.txt\",\"name\":\"commercialOffer2\",\"extension\":\"txt\",\"size\":8,\"mimeType\":\"text\\/plain\",\"description\":\"my 2nd upload\",\"created\":{\"time\":\"2018-07-25T12:15:53+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"alzarkaitis22@gmail.com\",\"picture\":{\"small\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-eu2.teamgate.com\\/images\\/teamgate\\/users_photos\\/3\\/big.jpg\"}}},\"isDeleted\":\"no\",\"products\":[{\"id\":13,\"name\":\"My Postman Product Nr...\",\"isDeleted\":\"no\"}],\"tags\":[\"offering\",\"test\",\"B2C\"],\"download\":{\"url\":\"https:\\/\\/eu2.teamgate.com\\/?r=teamgate\\/externalFiles\\/get&id=3&hash=7219325a438ff3894c372b0d0da529b4fb43a11c\",\"time\":\"2018-07-25T13:19:16+00:00\"}}]}"}],"_postman_id":"1217af0d-4312-4854-987c-576810578f8d"},{"name":"Detach Product File","event":[{"listen":"test","script":{"id":"32bd33c1-777b-42d0-8d27-50a7f18ffc0b","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Response Value Id","//tests[\"File Attached\"] = jsonData.count == \"1\";","//tests[\"File Full Name\"] = jsonData.data[0].fullName == \"commercialOffer2.txt\";","tests[\"Was Detached Successfully\"] = jsonData.success;","","//Schema Deal","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\": JSON.parse(pm.environment.get('files_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"53859a41-b693-41f6-8d94-7e09c351917d","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{firstGlobalProductId}}/files/{{secondGlobalFileId}}","description":"<p>Detach a single product file</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> integer <em>required</em><br /></td>\n<td>Unique key of the File. <br />Example <code>?id=1</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products","{{firstGlobalProductId}}","files","{{secondGlobalFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"53859a41-b693-41f6-8d94-7e09c351917d"},{"name":"Detach Product Files","event":[{"listen":"test","script":{"id":"2ffedf80-e425-4271-9cb4-e651c13aeb9b","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","//Response Values Test","tests[\"File Attached\"] = jsonData.count === 0;","tests[\"Was Detached Successfully\"] = jsonData.success;","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\"","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Files Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"de80c39b-d277-449f-b6d0-fd09108f520f","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{firstGlobalProductId}}/files","description":"<p>Detach all product files</p>\n","urlObject":{"protocol":"https","path":["v4","products","{{firstGlobalProductId}}","files"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"de80c39b-d277-449f-b6d0-fd09108f520f"}],"id":"81731b06-34ef-4830-8c6d-42e54e356f1d","_postman_id":"81731b06-34ef-4830-8c6d-42e54e356f1d","description":""},{"name":"Create Product","event":[{"listen":"test","script":{"id":"c3f373ca-d8ae-4c08-9e68-30f318bd7d99","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Product Name\"] = jsonData.data.name == \"My Postman Product Nr...\";","tests[\"Product SKU\"] = jsonData.data.sku == \"mpp1\";","tests[\"Product Description\"] = jsonData.data.description == \"It is new test product created with Postman\";","tests[\"Category Name\"] = jsonData.data.category.name == \"Software\",","","tests[\"Product Cost Value\"] = jsonData.data.cost.value == 1250;","tests[\"Product Cost Currency\"] = jsonData.data.cost.currency == \"USD\";","","tests[\"Product Price Value #1\"] = jsonData.data.prices[0].value == 1600;","tests[\"Product Price Currency #1\"] = jsonData.data.prices[0].currency == \"EUR\";","","tests[\"Product Price Value #2\"] = jsonData.data.prices[1].value == 1735;","tests[\"Product Price Currency #2\"] = jsonData.data.prices[1].currency == \"USD\";","","tests[\"Product is Active YES\"] = jsonData.data.isActive == \"yes\";","tests[\"Product is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Product Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Product Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Product Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Product Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Product Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","pm.environment.set(\"productId\", jsonData.data.id);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\":[\"id\", \"name\", \"sku\", \"description\", \"cost\", \"prices\", \"isActive\", \"isDeleted\", \"created\"],","            \"properties\":{","                \"id\": {\"type\": \"integer\"},","                \"name\": {\"type\": \"string\"},","                \"sku\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"category\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"integer\"},","                        \"name\": {\"type\": \"string\"}","                    }","                },","                \"cost\": JSON.parse(pm.environment.get('cost_schema')),","                \"prices\": JSON.parse(pm.environment.get('prices_schema')),","                \"isActive\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"customFields\": JSON.parse(pm.environment.get('custom_field_list_schema'))","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Product Schema\"] = tv4.validate(jsonData, schema, false, true);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"873140c7-0c14-4461-a9c9-88c8e6c39adc","request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"My Postman Product Nr...\",\n  \"sku\": \"mpp1\",\n  \"description\": \"It is new test product created with Postman\",\n  \"category\": \"Software\",\n  \"isActive\": \"yes\",\n  \"cost\": {\n    \"value\": \"1250\",\n    \"currency\": \"USD\"\n  },\n  \"prices\": [\n    {\n      \"value\": \"1600\",\n      \"currency\": \"EUR\"\n    },\n    {\n      \"value\": \"1735\",\n      \"currency\": \"USD\"\n    }\n  ],\n  \"customFields\": {\n    \"{{CFProductsTextId}}\": \"Short text\",\n    \"{{CFProductsSelectId}}\": \"{{CFProductsSelectValue1Id}}\",\n    \"{{CFProductsMultiSelectId}}\": [\"{{CFProductsMultiSelectValue1Id}}\", \"{{CFProductsMultiSelectValue2Id}}\"]\n  }\n}"},"url":"https://api.teamgate.com/v4/products?embed=customFields","description":"<p>Add a new product</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"name\": \"My 1st Product\"</code></td>\n</tr>\n<tr>\n<td><strong>sku</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"sku\": \"m1p\"</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td><strong>Example:</strong>   <code>\"description\": \"My product description\"</code></td>\n</tr>\n<tr>\n<td><strong>category</strong> <br /> String</td>\n<td><strong>Example:</strong> <code>\"category\": \"Software\"</code></td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br />Boolean</td>\n<td><strong>Example:</strong>    <code>\"isActive\": \"yes\"</code></td>\n</tr>\n<tr>\n<td><strong>cost</strong> <br />Object</td>\n<td><strong>Example:</strong>    <code>\"cost[value]\": 750</code> <code>\"cost[currency]\": \"EUR\"</code></td>\n</tr>\n<tr>\n<td><strong>prices</strong> <br />Array</td>\n<td><strong>Example:</strong>    <code>\"cost[0][value]\": 995</code> <code>\"cost[0][currency]\": \"EUR\"</code> <code>\"cost[1][value]\": 1200</code> <code>\"cost[1][currency]\": \"USD\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products"],"host":["api","teamgate","com"],"query":[{"key":"embed","value":"customFields"}],"variable":[]}},"response":[{"id":"f8615bc1-a280-4333-b7ab-976c9840bfa3","name":"Create Product","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"My Postman Product Nr...\",\n  \"sku\": \"mpp1\",\n  \"description\": \"It is new test product created with Postman\",\n  \"isActive\": \"yes\",\n  \"cost\": {\n    \"value\": \"1250\",\n    \"currency\": \"USD\"\n  },\n  \"prices\": [\n    {\n      \"value\": \"1600\",\n      \"currency\": \"EUR\"\n    },\n    {\n      \"value\": \"1735\",\n      \"currency\": \"USD\"\n    }\n  ],\n  \"customFields\": {\n  \t\"25\":\"89\"\n  }\n}"},"url":"https://api.teamgate.com/v4/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:39:33 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9981","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":709,\"name\":\"My Postman Product Nr...\",\"sku\":\"mpp1\",\"description\":\"It is new test product created with Postman\",\"cost\":{\"value\":\"1250.0000\",\"currency\":\"USD\"},\"prices\":[{\"value\":\"1600.0000\",\"currency\":\"EUR\"},{\"value\":\"1735.0000\",\"currency\":\"USD\"}],\"isActive\":\"yes\",\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-07-17T10:39:55+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}}}}"}],"_postman_id":"873140c7-0c14-4461-a9c9-88c8e6c39adc"},{"name":"Get Products Collection","event":[{"listen":"test","script":{"id":"3547e64e-64d9-4871-8a2c-8d45a26ad18e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"nextPage\": {\"type\": [\"string\", \"boolean\"] },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\":[\"id\", \"name\", \"isActive\", \"isDeleted\", \"created\"],","                \"properties\":{","                    \"id\": {\"type\": \"integer\"},","                    \"name\": {\"type\": \"string\"},","                    \"sku\": {\"type\": \"string\"},","                    \"description\": {\"type\": \"string\"},","                    \"category\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"id\": {\"type\": \"integer\"},","                            \"name\": {\"type\": \"string\"}","                        }","                    },","                    \"cost\": JSON.parse(pm.environment.get('cost_schema')),","                    \"prices\": JSON.parse(pm.environment.get('prices_schema')),","                    \"isActive\": {\"type\": \"string\"},","                    \"isDeleted\": {\"type\": \"string\"},","                    \"created\": JSON.parse(pm.environment.get('created_schema'))","                },","                \"additionalProperties\": false","            }","        }","    }","};","","tests[\"Valid Products Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"95a7d362-2789-4608-9ea4-b3c72f1a6406","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/products","description":"<p>Returns a paginated list products</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong><br />String</td>\n<td>Name of the Product. You can search by full name or by fragment of name. Maximum length is 255 characters.<br />Example for strict search: <code>?name=Professional%plan</code><br />And search by text fragment: <code>?name[like]=Professional</code></td>\n</tr>\n<tr>\n<td><strong>sku</strong><br />String</td>\n<td>SKU of product.<br /><strong>Example</strong>: <code>?type=pro55</code></td>\n</tr>\n<tr>\n<td><strong>description</strong><br />String</td>\n<td>The pruduct’s description.<br /><strong>Example</strong>: <code>?description[like]=Professional</code></td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br />Boolean</td>\n<td>Indicator the product is active or not. <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> <strong>Example</strong>: <code>?isActive=yes</code></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong> <br />Boolean</td>\n<td>Indicator the product is deleted or not. In responses deleted values are not displayed <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> <strong>Example</strong>: <code>?deleted=no</code></td>\n</tr>\n<tr>\n<td><strong>createdUserId</strong> <br />Integer</td>\n<td>Unique identifier of the user who created the product. <br />Example: <code>?updatedUserId=6</code></td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>costValue</strong> <br />Number</td>\n<td>The pruduct’s cost value. <br /> Example <code>?costValue=1500</code></td>\n</tr>\n<tr>\n<td><strong>costCurrency</strong> <br />String</td>\n<td>The pruduct’s cost currency. <br /> Example <code>?costCurrency=USD</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <br />Possible values:  <ul><li>name</li><li>sku</li><li>description</li><li>createdUserId</li><li>convertedTime</li><li>costValue</li><li>costCurrency</li><li>isActive</li><li>isDeleted</li></ul> Example:<code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products"],"host":["api","teamgate","com"],"query":[{"disabled":true,"key":"fields","value":"created"},{"disabled":true,"key":"limit","value":"100"}],"variable":[]}},"response":[],"_postman_id":"95a7d362-2789-4608-9ea4-b3c72f1a6406"},{"name":"Get Product","event":[{"listen":"test","script":{"id":"85c12d3f-0a83-4723-bc68-b6833d6c90c9","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\":[\"id\", \"name\", \"sku\", \"description\", \"cost\", \"prices\", \"isActive\", \"isDeleted\", \"created\"],","            \"properties\":{","                \"id\": {\"type\": \"integer\"},","                \"name\": {\"type\": \"string\"},","                \"sku\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"category\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"integer\"},","                        \"name\": {\"type\": \"string\"}","                    }","                },","                \"cost\": JSON.parse(pm.environment.get('cost_schema')),","                \"prices\": JSON.parse(pm.environment.get('prices_schema')),","                \"isActive\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"created\": JSON.parse(pm.environment.get('created_schema'))","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Product Schema\"] = tv4.validate(jsonData, schema, false, true);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"e441d13b-9cee-48e0-8f08-31ab107e8df9","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/products/:product_id","description":"<p>Returns the data of specific product.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Product. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products",":product_id"],"host":["api","teamgate","com"],"query":[],"variable":[{"type":"any","value":"{{firstGlobalProductId}}","key":"product_id"}]}},"response":[{"id":"a99b95be-f2a6-4b26-b460-c6ea2f936e97","name":"Get Product","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{productId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:27:24 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9914","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":215,\"name\":\"My Postman Product Nr...\",\"sku\":\"mpp1\",\"description\":\"It is new test product created with Postman\",\"cost\":{\"value\":\"1250.0000\",\"currency\":\"USD\"},\"prices\":[{\"value\":\"1600.0000\",\"currency\":\"EUR\"},{\"value\":\"1735.0000\",\"currency\":\"USD\"}],\"isActive\":\"yes\",\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-05-08T11:27:31+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}}}}"}],"_postman_id":"e441d13b-9cee-48e0-8f08-31ab107e8df9"},{"name":"Get Product Categories Collection","event":[{"listen":"test","script":{"id":"453bca44-6289-4048-9f28-41411e96467d","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"nextPage\": {\"type\": [\"string\", \"null\"] },","        \"data\": JSON.parse(pm.environment.get('resources_schema')),","    },","    \"additionalProperties\": false","};","","tests[\"Valid Resources Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"1ebe869d-ec7d-4297-85ed-6e4240637c29","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/productsCategories","description":"<p>Get a list of all product Categories</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer</td>\n<td>Unique key of the Category. <strong>Example:</strong> <code>?id=1</code></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Category. <strong>Example:</strong> <code>?name=MeetingRoom</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","productsCategories"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"25221ec9-c901-4105-ab39-2fcae2a5c7b6","name":"Get Resources Collection","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/resources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:14:22 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9924","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1,\"name\":\"Meeting room\"},{\"id\":3,\"name\":\"Coffee place\"}]}"}],"_postman_id":"1ebe869d-ec7d-4297-85ed-6e4240637c29"},{"name":"Get Product Deals","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"count\": {\"type\": \"integer\"},","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"array\",","            \"items\":{","                \"required\": [\"id\", \"name\", \"price\", \"starred\", \"source\", \"created\", \"isDeleted\", \"status\", \"owner\", \"stage\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"price\": JSON.parse(pm.environment.get('price_schema')),","                    \"starred\": { \"type\": \"string\" },","                    \"source\": JSON.parse(pm.environment.get('source_schema')),","                    \"isDeleted\": { \"type\": \"string\" },","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"estimatedClosureDate\": { \"type\": \"string\" },","                    \"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"stage\": JSON.parse(pm.environment.get('deal_stage_schema')),","                    \"pipeline\": JSON.parse(pm.environment.get('pipeline_schema')),","                    \"status\": JSON.parse(pm.environment.get('deal_status_schema')),","                    \"tags\": {\"type\": \"array\"}","                }","            },","            \"additionalProperties\": false","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Company Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message);","} catch (e) {}"]}}],"id":"06137de5-e277-47ff-9ee2-cdba1e113d31","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{secondGlobalProductId}}/deals","description":"<p>Get all product deals</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of product \"deals\" is used the same parameters as with resource \"deals\".</p>\n","urlObject":{"protocol":"https","path":["v4","products","{{secondGlobalProductId}}","deals"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"d806998d-2ad2-4c6e-8471-d99613d2c0f1","name":"Get Company Deals Copy","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/821/deals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 27 Jul 2018 05:22:07 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9994","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532669400","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":4063,\"name\":\"algirdas Deal\",\"price\":{\"value\":200,\"currency\":\"EUR\",\"symbol\":\"\\u20ac\",\"rate\":1,\"baseValue\":200,\"baseCurrency\":\"EUR\",\"baseSymbol\":\"\\u20ac\"},\"starred\":\"no\",\"source\":{\"id\":147,\"name\":\"143\"},\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-07-27T05:16:11+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"estimatedClosureDate\":\"2018-08-25T21:00:00+00:00\",\"owner\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}},\"stage\":{\"id\":3,\"name\":\"Needs analysis\",\"pipeline\":\"Sales\",\"probability\":20},\"pipeline\":{\"id\":5,\"name\":\"Sales\",\"stage\":{\"id\":3,\"name\":\"Needs analysis\",\"probability\":20}},\"status\":{\"name\":\"active\",\"time\":\"2018-07-27T05:18:44+00:00\",\"changed\":null}}]}"}],"_postman_id":"06137de5-e277-47ff-9ee2-cdba1e113d31"},{"name":"Get Product Events","event":[{"listen":"test","script":{"id":"3ab2c174-1fef-48c8-8935-935b0fe82b27","type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schame Test","var schema = {"," \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"canEdit\": {\"type\": \"string\"},","                    \"canView\": {\"type\": \"string\"},","                    \"type\": {\"type\": \"string\"},","                    \"name\": { \"type\": \"string\" },","                    \"isDeleted\": { \"type\": \"string\"},","                    //\"owner\": JSON.parse(pm.environment.get('user_schema')),","                    \"created\": JSON.parse(pm.environment.get('created_schema')),","                    \"updated\": JSON.parse(pm.environment.get('updated_schema')),","                    \"products\": {","                        \"type\": \"array\",","                        \"items\":{","                            \"type\": \"object\",","                            \"properties\":{","                                \"id\": { \"type\": \"integer\" },","                                \"name\": { \"type\": \"string\" },","                                \"description\": { \"type\": \"string\" },","                            }  ","                        }","                    },","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid Event Deals Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"6b3e81cb-20b9-46ec-843a-770e517f2871","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"<p>This value is taken from the enviroment</p>\n"},{"key":"X-Auth-Token","value":"{{authToken}}","description":"<p>This value is taken from the enviroment</p>\n"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{productId}}/events","description":"<p>Check all events attached to this product</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of product \"events\" is used the same parameters as with resource \"events\".</p>\n","urlObject":{"protocol":"https","path":["v4","products","{{productId}}","events"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"50457667-6548-4ab5-a205-ed2dbf1a4adf","name":"Get Product Events","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","description":"This value is taken from the enviroment","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","description":"This value is taken from the enviroment","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{productId}}/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 27 Jul 2018 07:17:06 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9999","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532676600","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":5323,\"canEdit\":\"yes\",\"canView\":\"yes\",\"type\":\"note\",\"isDeleted\":\"no\",\"value\":\"testass\",\"created\":{\"time\":\"2018-07-27T07:06:12+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"updated\":{\"time\":\"2018-07-27T07:06:12+00:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}},\"products\":[{\"id\":913,\"name\":\"My Postman Product Nr...\",\"isDeleted\":\"no\"}]}]}"}],"_postman_id":"6b3e81cb-20b9-46ec-843a-770e517f2871"},{"name":"Get Product Custom Fields","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('custom_field_schema'))","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Product Custom Fields Schema\"] = tv4.validate(jsonData, schema);","","postman.setGlobalVariable(\"firstCustomFieldId\", jsonData.data[0].id);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"40ecca76-9ca2-45bb-8e32-8b83e0de795e","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{productId}}/customFields","description":"<p>Returns a set of product custom field values.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of product \"customFields\" is used the same parameters as with resource \"customFields\".</p>\n","urlObject":{"protocol":"https","path":["v4","products","{{productId}}","customFields"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"6234aa82-a765-4952-bbed-45757d79519f","name":"Get Product Custom Fields","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{productId}}/customFields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:39:37 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9980","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":1,\"data\":[{\"id\":25,\"name\":\"VIP service?\",\"module\":\"products\",\"isActive\":\"yes\",\"value\":89,\"isFilter\":\"yes\",\"isList\":\"yes\",\"type\":\"single_option\",\"items\":[{\"id\":89,\"name\":\"Yes\",\"selected\":\"yes\"},{\"id\":91,\"name\":\"No\"}]}]}"}],"_postman_id":"40ecca76-9ca2-45bb-8e32-8b83e0de795e"},{"name":"Get Product Custom Field","event":[{"listen":"test","script":{"id":"7595b6cd-d8ed-4345-9c7a-ce8b401f1984","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": JSON.parse(pm.environment.get('custom_field_schema'))","    },","    \"additionalProperties\": false","};","","tests[\"Valid Product Custom Field Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"6af6bb04-3b71-470a-9228-ad60c3cf07eb","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/products/{{productId}}/customFields/{{CFProductsMultiSelectId}}","description":"<p>Returns a set of product custom field value.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>With a sub-resource of product \"customFields\" is used the same parameters as with resource \"customFields\".</p>\n","urlObject":{"protocol":"https","path":["v4","products","{{productId}}","customFields","{{CFProductsMultiSelectId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"76cb48f0-d511-4638-8624-1366ac2b4701","name":"Get Product Custom Field","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{productId}}/customFields/{{firstCustomFieldId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:40:19 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9979","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":25,\"name\":\"VIP service?\",\"module\":\"products\",\"isActive\":\"yes\",\"value\":89,\"isFilter\":\"yes\",\"isList\":\"yes\",\"type\":\"single_option\",\"items\":[{\"id\":89,\"name\":\"Yes\",\"selected\":\"yes\"},{\"id\":91,\"name\":\"No\"}]}}"},{"id":"ef2051e2-b695-4c43-b0d8-9a368769db76","name":"Get Product Custom Field","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{productId}}/customFields/{{firstCustomFieldId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:40:19 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9979","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":25,\"name\":\"VIP service?\",\"module\":\"products\",\"isActive\":\"yes\",\"value\":89,\"isFilter\":\"yes\",\"isList\":\"yes\",\"type\":\"single_option\",\"items\":[{\"id\":89,\"name\":\"Yes\",\"selected\":\"yes\"},{\"id\":91,\"name\":\"No\"}]}}"}],"_postman_id":"6af6bb04-3b71-470a-9228-ad60c3cf07eb"},{"name":"Update product","event":[{"listen":"test","script":{"id":"bbe2412b-1c4f-4fa2-a6b0-345b3f91c8dc","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Product Name\"] = jsonData.data.name == \"Updated Postman Product Nr2\";","tests[\"Product SKU\"] = jsonData.data.sku == \"umpp1\";","tests[\"Product Descrioption\"] = jsonData.data.description == \"It is updated test product created with Postman\";","tests[\"Category Name\"] = jsonData.data.category.name == \"Hardware\",","","tests[\"Product Cost Value\"] = jsonData.data.cost.value == 1333;","tests[\"Product Cost Currency\"] = jsonData.data.cost.currency == \"EUR\";","","tests[\"Product Price Value #1\"] = jsonData.data.prices[0].value == 1000;","tests[\"Product Price Currency #1\"] = jsonData.data.prices[0].currency == \"EUR\";","","tests[\"Product Price Value #2\"] = jsonData.data.prices[1].value == 2000;","tests[\"Product Price Currency #2\"] = jsonData.data.prices[1].currency == \"USD\";","","tests[\"Product is Active NO\"] = jsonData.data.isActive == \"no\";","tests[\"Product is Deleted NO\"] = jsonData.data.isDeleted == \"no\";","tests[\"Product Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Product Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Product Creator Small Picture\"] = jsonData.data.created.user.picture.small.has(\".jpg\");","tests[\"Product Creator Medium Picture\"] = jsonData.data.created.user.picture.medium.has(\".jpg\");","tests[\"Product Creator Large Picture\"] = jsonData.data.created.user.picture.large.has(\".jpg\");","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": {","            \"type\": \"object\",","            \"required\":[\"id\", \"name\", \"sku\", \"description\", \"cost\", \"prices\", \"isActive\", \"isDeleted\", \"created\"],","            \"properties\":{","                \"id\": {\"type\": \"integer\"},","                \"name\": {\"type\": \"string\"},","                \"sku\": {\"type\": \"string\"},","                \"description\": {\"type\": \"string\"},","                \"category\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"integer\"},","                        \"name\": {\"type\": \"string\"}","                    }","                },","                \"cost\": JSON.parse(pm.environment.get('cost_schema')),","                \"prices\": JSON.parse(pm.environment.get('prices_schema')),","                \"isActive\": {\"type\": \"string\"},","                \"isDeleted\": {\"type\": \"string\"},","                \"created\": JSON.parse(pm.environment.get('created_schema'))","            },","            \"additionalProperties\": false","        }","    }","};","","tests[\"Valid Product Schema\"] = tv4.validate(jsonData, schema, false, true);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"82be4c41-a3f2-4f8a-90f0-f8c88f1e4927","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Updated Postman Product Nr2\",\n    \"sku\": \"umpp1\",\n    \"description\": \"It is updated test product created with Postman\",\n    \"category\": \"Hardware\",\n    \"isActive\": \"no\",\n    \"cost\": {\n        \"value\": \"1333\",\n        \"currency\": \"EUR\"\n    },\n    \"prices\": [\n        {\n            \"value\": 1000,\n            \"currency\": \"EUR\"\n        },\n        {\n            \"value\": 2000,\n            \"currency\": \"USD\"\n        }\n    ]\n}"},"url":"https://api.teamgate.com/v4/products/:product_id","description":"<p>Update a product</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"name\": \"My 1st Product\"</code></td>\n</tr>\n<tr>\n<td><strong>sku</strong> <br />String</td>\n<td><strong>Example:</strong> <code>\"sku\": \"m1p\"</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td><strong>Example:</strong>   <code>\"description\": \"My product description\"</code></td>\n</tr>\n<tr>\n<td><strong>category</strong> <br /> String</td>\n<td><strong>Example:</strong> <code>\"category\": \"Software\"</code></td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br />Boolean</td>\n<td><strong>Example:</strong>    <code>\"isActive\": \"yes\"</code></td>\n</tr>\n<tr>\n<td><strong>cost</strong> <br />Object</td>\n<td><strong>Example:</strong>    <code>\"cost[value]\": 750</code> <code>\"cost[currency]\": \"EUR\"</code></td>\n</tr>\n<tr>\n<td><strong>prices</strong> <br />Array</td>\n<td><strong>Example:</strong>    <code>\"cost[0][value]\": 995</code> <code>\"cost[0][currency]\": \"EUR\"</code> <code>\"cost[1][value]\": 1200</code> <code>\"cost[1][currency]\": \"USD\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products",":product_id"],"host":["api","teamgate","com"],"query":[],"variable":[{"description":{"content":"<p>Product ID to update</p>\n","type":"text/plain"},"type":"any","value":"{{firstGlobalProductId}}","key":"product_id"}]}},"response":[{"id":"39c99cee-f7f5-47ca-ab0b-caa1b63f8156","name":"Update product","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Updated Postman Product Nr2","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|name <br>String **Required**      | **Example:**  \"name\": \"Product\"   |"},{"key":"sku","value":"umpp1","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|sku <br>String | **Example:**  \"sku\": \"m1p\"   |"},{"key":"description","value":"It is updated test product created with Postman","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|description <br>String | **Example:**   \"description\": \"My product description\"    |"},{"key":"isActive","value":"no","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|isActive <br>Boolean | **Example:**    \"isActive\": \"yes\" |"},{"key":"cost[value]","value":"1333","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|cost[value] <br>float | **Example:**    \"cost[value]\": 750|"},{"key":"cost[currency]","value":"EUR","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|cost[currency] <br>string | **Example:**    \"cost[currency]\": \"EUR\"|"}]},"url":"https://api.teamgate.com/v4/products/{{productId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:27:46 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9911","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":215,\"name\":\"Updated Postman Product Nr2\",\"sku\":\"umpp1\",\"description\":\"It is updated test product created with Postman\",\"cost\":{\"value\":\"1333.0000\",\"currency\":\"EUR\"},\"prices\":[{\"value\":\"1600.0000\",\"currency\":\"EUR\"},{\"value\":\"1735.0000\",\"currency\":\"USD\"}],\"isActive\":\"no\",\"isDeleted\":\"no\",\"created\":{\"time\":\"2018-05-08T11:27:31+03:00\",\"user\":{\"id\":3,\"name\":\"Algirdas\",\"surname\":\"\",\"username\":\"algirdas@teamgate.com\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/3\\/big.jpg\"}}}}}"}],"_postman_id":"82be4c41-a3f2-4f8a-90f0-f8c88f1e4927"},{"name":"Delete product","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"458452d7-d06b-4fc8-bd10-f5127edcfd4e","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/products/{{productId}}","description":"<p>Deletes a product</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the Product. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","products","{{productId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"458452d7-d06b-4fc8-bd10-f5127edcfd4e"}],"id":"959004d9-4723-4f7e-bb8f-4e82d20dd2c9","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported products properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong>  <br />Intiger <em>Read only</em></td>\n<td>Unique key of the Product.</td>\n</tr>\n<tr>\n<td><strong>name</strong>  <br />String</td>\n<td>Name of the Product. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>sku</strong>  <br />String</td>\n<td>Stock keeping unit (SKU) code of the Product.</td>\n</tr>\n<tr>\n<td><strong>category</strong>  <br />Object</td>\n<td>Product category details.</td>\n</tr>\n<tr>\n<td><strong>category.id</strong>  <br />Integer</td>\n<td>Unique key of the Category.</td>\n</tr>\n<tr>\n<td><strong>category.name</strong>  <br />String</td>\n<td>Name of the category.</td>\n</tr>\n<tr>\n<td><strong>description</strong>  <br />Text</td>\n<td>The product’s description.</td>\n</tr>\n<tr>\n<td><strong>cost</strong>  <br />Object</td>\n<td>The product cost.</td>\n</tr>\n<tr>\n<td><strong>cost.value</strong>  <br />String (Decimal)</td>\n<td>The amount of cost.</td>\n</tr>\n<tr>\n<td><strong>cost.currency</strong>  <br />String</td>\n<td><a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217</a>, currency identifier.</td>\n</tr>\n<tr>\n<td><strong>prices</strong>  <br />Array</td>\n<td>An array of prices objects for the product. Read more information about <code>Price</code> object <a href=\"./#ec82024b-42a3-48eb-a048-f36f477724f6\">here</a></td>\n</tr>\n<tr>\n<td><strong>isActive</strong>  <br />Boolean</td>\n<td>Indicator the product is active or not.</td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong>  <br />String</td>\n<td>Indicator the product is deleted or not. In responses deleted values are not displayed</td>\n</tr>\n<tr>\n<td><strong>created</strong>  <br />Object <em>Read only</em></td>\n<td>User, date and time File record was uploaded. Information is read only, because automatically generated by the server. Read more information about <code>Created</code> object <a href=\"./#7d49fe80-3c31-48d7-addb-aec4afc7a9aa\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"d98a0004-da8a-45b8-b293-72b0186ebda9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"23d51860-7af1-4bfb-9abb-1f0f157e6a3a","type":"text/javascript","exec":[""]}}],"_postman_id":"959004d9-4723-4f7e-bb8f-4e82d20dd2c9"},{"name":"15. Carts","item":[{"name":"Get Carts Collection","event":[{"listen":"test","script":{"id":"3547e64e-64d9-4871-8a2c-8d45a26ad18e","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","const jsonData = JSON.parse(responseBody);","","pm.globals.set(\"list_all_carts_request\", responseBody);","","const discountSchema = {","    \"type\": \"object\",","    \"required\": [\"type\", \"value\"],","    \"properties\": {","        \"type\": {\"type\": \"string\", \"enum\": [\"percentage\", \"fixed\"]},","        \"value\": {\"type\": \"string\", \"pattern\": \"^\\d+(\\.\\d+)?$\"}","    }","};","","const schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"nextPage\": {\"type\": [\"string\", \"boolean\", \"null\"] },","        \"data\": { ","            \"type\": \"array\",","            \"uniqueItems\": true,","            \"items\": {","                \"id\": {\"type\": \"integer\"},","                \"currency\": {\"type\": \"string\", \"maxLength\": 3, \"minLength\": 3},","                \"cost\": {\"type\": [\"string\", \"number\"], \"pattern\": \"^\\d+(\\.\\d+)?$\"},","                \"subtotal\": {\"type\": [\"string\", \"number\"], \"pattern\": \"^\\d+(\\.\\d+)?$\"},","                \"discount\": discountSchema,","                \"total\": {\"type\": [\"string\", \"number\"], \"pattern\": \"^\\d+(\\.\\d+)?$\"},","                \"items\": {","                    \"type\": \"array\",","                    \"required\":[\"id\"],","                    \"uniqueItems\": true,","                    \"items\":{","                        \"id\": {\"type\": \"integer\"},","                        \"product\": {","                            \"type\": \"object\",","                            \"required\": [\"id\"],","                            \"properties\": {","                                \"id\": {\"type\": \"integer\"},","                            }","                        },","                        \"name\": {\"type\": \"string\"},","                        \"currency\": {\"type\": \"string\", \"maxLength\": 3, \"minLength\": 3},","                        \"cost\": JSON.parse(pm.environment.get('cost_schema')),","                        \"unit_price\": {\"type\": \"string\", \"pattern\": \"^\\d+(\\.\\d+)?$\"},","                        \"discount\": discountSchema,","                        \"selling_price\": {\"type\": \"string\", \"pattern\": \"^\\d+(\\.\\d+)?$\"},","                        \"quantity\": {\"type\": \"string\", \"pattern\": \"^\\d+(\\.\\d+)?$\"},","                        \"total\": {\"type\": \"string\", \"pattern\": \"^\\d+(\\.\\d+)?$\"},","                    },","                    \"additionalProperties\": true","                },","                \"additionalProperties\": true","            },","        },","    }","};","","tests[\"Valid Products Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"44777aee-0524-4982-8d16-b8b0a3396570","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/carts","description":"<p>Returns a paginated list of carts. Carts cannot be sorted.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<p>You can use following operators in combination with <strong>and</strong> or <strong>or</strong> operator. By specifying operator parameter, like this <code>?operator=or</code>. Or by specifying next to each parameter <code>?parameter[operator]=and</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>currency</strong>  <br />Number</td>\n<td>The cart’s cost value.  <br />Example <code>?currency=EUR</code></td>\n</tr>\n<tr>\n<td><strong>cost</strong>  <br />String</td>\n<td>Filter carts by cost.  <br />Example for cost comparison: <code>?</code>  <br /><code>cost[lt]=500&amp;cost[gt]=100</code>.</td>\n</tr>\n<tr>\n<td><strong>subtotal</strong>  <br />Number</td>\n<td>The cart’s cost value.  <br />Example <code>?subtotal=1500</code></td>\n</tr>\n<tr>\n<td><strong>discountValue</strong>  <br />Number</td>\n<td>The product’s cost value.  <br />Example <code>?discountValue=1500</code></td>\n</tr>\n<tr>\n<td><strong>total</strong>  <br />Number</td>\n<td>The cart’s cost value.  <br />Example <code>?total=1500</code></td>\n</tr>\n<tr>\n<td><strong>fields</strong>  <br />String</td>\n<td>Comma separated fields list to show in the list.  <br />Example <code>?fields=currency,total</code></td>\n</tr>\n<tr>\n<td><strong>order</strong>  <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>.<br />Possible values:<ul><li><p>currency</p></li><li><p>cost</p></li><li><p>subtotal</p></li><li><p>discountValue</p></li><li><p>total</p></li></ul><br />Example:<code>order[cost] = desc</code>, <code>order[discountValue] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong>  <br />Integer</td>\n<td>Response items count.  <br />Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong>  <br />Integer</td>\n<td>Returned result first value number.  <br />Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","carts"],"host":["api","teamgate","com"],"query":[{"disabled":true,"description":{"content":"<p>Amount of items per page</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"disabled":true,"description":{"content":"<p>Sorting of items by given field in a given direction, can add multiple order paramters with different fields</p>\n","type":"text/plain"},"key":"order[cost]","value":"desc"},{"disabled":true,"description":{"content":"<p>How many fields per items should be shown in results</p>\n","type":"text/plain"},"key":"fields","value":"currency,total"},{"disabled":true,"description":{"content":"<p>Filter by cost of an item</p>\n","type":"text/plain"},"key":"cost[lt]","value":"10000"},{"disabled":true,"description":{"content":"<p>Choose logic operator betwee cost multiple value comparisons</p>\n","type":"text/plain"},"key":"cost[operator]","value":"and"},{"disabled":true,"description":{"content":"<p>Filter by cost of an item</p>\n","type":"text/plain"},"key":"cost[gt]","value":"1000"},{"disabled":true,"key":"operator","value":"and"},{"disabled":true,"key":"subtotal[gte]","value":"20000"},{"disabled":true,"key":"total[lt]","value":"40000"},{"disabled":true,"key":"currency","value":"EUR"}],"variable":[]}},"response":[{"id":"e6e9bef9-442e-4072-9daf-9325d37a6c19","name":"Get Carts Collection","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":{"raw":"https://api.teamgate.com/v4/carts","protocol":"https","host":["api","teamgate","com"],"path":["v4","carts"],"query":[{"key":"fields","value":"created","type":"text","disabled":true},{"key":"limit","value":"100","type":"text","disabled":true}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"count\": 2,\n    \"nextPage\": \"https://api.teamgate.com/v4/carts?offset=25\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"currency\": \"EUR\",\n            \"cost\": \"0.0000\",\n            \"subtotal\": \"0.0000\",\n            \"discount\": {\n                \"type\": \"percentage\",\n                \"value\": \"0.0000\"\n            },\n            \"total\": \"1250.0000\",\n            \"items\": [\n                {\n                    \"id\": 1,\n                    \"product\": {\n                        \"id\": 2\n                    },\n                    \"name\": \"Tinklapių optimizavimas paieškos sistemoms\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"EUR\",\n                        \"value\": \"115.0000\"\n                    },\n                    \"unit_price\": \"325.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"325.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"650.0000\"\n                },\n                {\n                    \"id\": 2,\n                    \"product\": {\n                        \"id\": 4\n                    },\n                    \"name\": \"Rinkodara el. paštu\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"EUR\",\n                        \"value\": \"289.0000\"\n                    },\n                    \"unit_price\": \"600.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 12,\n            \"currency\": \"EUR\",\n            \"cost\": \"0.0000\",\n            \"subtotal\": \"0.0000\",\n            \"discount\": {\n                \"type\": \"percentage\",\n                \"value\": \"0.0000\"\n            },\n            \"total\": \"820.0000\",\n            \"items\": [\n                {\n                    \"id\": 3,\n                    \"product\": {\n                        \"id\": 2\n                    },\n                    \"name\": \"Tinklapių optimizavimas paieškos sistemoms\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"EUR\",\n                        \"value\": \"115.0000\"\n                    },\n                    \"unit_price\": \"320.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"320.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"320.0000\"\n                },\n                {\n                    \"id\": 4,\n                    \"product\": {\n                        \"id\": 3\n                    },\n                    \"name\": \"Rinkodara socialiniuose tinkluose\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"EUR\",\n                        \"value\": \"227.0000\"\n                    },\n                    \"unit_price\": \"500.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"500.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"500.0000\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"c9169b9a-d2f2-4807-a442-eb61252551dc","name":"Get Carts that cost less then 10000 and more than 1000","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":{"raw":"https://api.teamgate.com/v4/carts?cost[lt]=10000&cost[operator]=and&cost[gt]=1000","protocol":"https","host":["api","teamgate","com"],"path":["v4","carts"],"query":[{"key":"limit","value":"100","type":"text","disabled":true},{"key":"order[cost]","value":"desc","disabled":true},{"key":"fields","value":"currency,total","disabled":true},{"key":"cost[lt]","value":"10000","type":"text"},{"key":"cost[operator]","value":"and","type":"text"},{"key":"cost[gt]","value":"1000","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 Jun 2022 09:24:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Account-Id","value":"teamgateapitesti"},{"key":"X-Rate-Limit-Limit","value":"10000"},{"key":"X-Rate-Limit-Remaining","value":"9993"},{"key":"X-Rate-Limit-Reset","value":"1654594200"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=gh0wOHzGxnl8qVWdtjphOOaNSk9aIkD4TBka%2BwNo0%2BSdhLyFQ%2Fk2mK5sN5cvE9Z4mCGBja07bbIeShaCrQuXmTPimWcWme%2BHrwpdTgM1LALkK3llSRH17EYTxY4FIxPpTW27\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7178554a2fdd7278-HAM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"count\": 77,\n    \"nextPage\": \"https://api.teamgate.com/v4/carts?cost%5Blt%5D=10000&cost%5Boperator%5D=and&cost%5Bgt%5D=1000&offset=25\",\n    \"data\": [\n        {\n            \"id\": 23,\n            \"currency\": \"EUR\",\n            \"cost\": \"3494.8742\",\n            \"subtotal\": \"26800.0000\",\n            \"discount\": {\n                \"type\": \"percentage\",\n                \"value\": \"0.0000\"\n            },\n            \"total\": \"26800.0000\",\n            \"items\": [\n                {\n                    \"id\": 5,\n                    \"product\": {\n                        \"id\": 5\n                    },\n                    \"name\": \"Skaitmeninė reklama\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"EUR\",\n                        \"value\": \"311.0000\"\n                    },\n                    \"unit_price\": \"625.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"625.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"625.0000\"\n                },\n                {\n                    \"id\": 6,\n                    \"product\": {\n                        \"id\": 1\n                    },\n                    \"name\": \"Rinkodara socialiniuose tinkluose\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"EUR\",\n                        \"value\": \"50.0000\"\n                    },\n                    \"unit_price\": \"125.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"125.0000\",\n                    \"quantity\": \"3.0000\",\n                    \"total\": \"375.0000\"\n                },\n                {\n                    \"id\": 7381,\n                    \"product\": {\n                        \"id\": 11046\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"10000.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"20.0000\"\n                    },\n                    \"selling_price\": \"12000.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"24000.0000\"\n                },\n                {\n                    \"id\": 7382,\n                    \"product\": {\n                        \"id\": 11047\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"2500.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"300.0000\"\n                    },\n                    \"selling_price\": \"2800.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"2800.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 100,\n            \"currency\": \"EUR\",\n            \"cost\": \"2204.3911\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 59,\n                    \"product\": {\n                        \"id\": 50\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 102,\n            \"currency\": \"EUR\",\n            \"cost\": \"2204.3911\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 60,\n                    \"product\": {\n                        \"id\": 50\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 348,\n            \"currency\": \"EUR\",\n            \"cost\": \"2189.9089\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 219,\n                    \"product\": {\n                        \"id\": 310\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 351,\n            \"currency\": \"EUR\",\n            \"cost\": \"2189.9089\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 220,\n                    \"product\": {\n                        \"id\": 312\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 615,\n            \"currency\": \"EUR\",\n            \"cost\": \"5524.6177\",\n            \"subtotal\": \"8000.0000\",\n            \"discount\": {\n                \"type\": \"percentage\",\n                \"value\": \"0.0000\"\n            },\n            \"total\": \"8000.0000\",\n            \"items\": [\n                {\n                    \"id\": 418,\n                    \"product\": {\n                        \"id\": 598\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"5.0000\",\n                    \"total\": \"8000.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 767,\n            \"currency\": \"EUR\",\n            \"cost\": \"2242.1525\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 491,\n                    \"product\": {\n                        \"id\": 713\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 3103,\n            \"currency\": \"EUR\",\n            \"cost\": \"2284.7743\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 2028,\n                    \"product\": {\n                        \"id\": 3026\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 3196,\n            \"currency\": \"EUR\",\n            \"cost\": \"2283.1050\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 2089,\n                    \"product\": {\n                        \"id\": 3117\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 3915,\n            \"currency\": \"EUR\",\n            \"cost\": \"2109.8827\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 2566,\n                    \"product\": {\n                        \"id\": 3826\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 7259,\n            \"currency\": \"EUR\",\n            \"cost\": \"2055.5830\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 4769,\n                    \"product\": {\n                        \"id\": 7111\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 7537,\n            \"currency\": \"EUR\",\n            \"cost\": \"2102.9610\",\n            \"subtotal\": \"3200.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"3150.0000\",\n            \"items\": [\n                {\n                    \"id\": 4947,\n                    \"product\": {\n                        \"id\": 7383\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11018,\n            \"currency\": \"EUR\",\n            \"cost\": \"1182.5922\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7251,\n                    \"product\": {\n                        \"id\": 10865\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11021,\n            \"currency\": \"EUR\",\n            \"cost\": \"1182.5922\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7253,\n                    \"product\": {\n                        \"id\": 10868\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11024,\n            \"currency\": \"EUR\",\n            \"cost\": \"1182.5922\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7255,\n                    \"product\": {\n                        \"id\": 10871\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11027,\n            \"currency\": \"EUR\",\n            \"cost\": \"1182.5922\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7257,\n                    \"product\": {\n                        \"id\": 10874\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11030,\n            \"currency\": \"EUR\",\n            \"cost\": \"1183.8242\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7259,\n                    \"product\": {\n                        \"id\": 10877\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11033,\n            \"currency\": \"EUR\",\n            \"cost\": \"1183.8242\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7261,\n                    \"product\": {\n                        \"id\": 10880\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11036,\n            \"currency\": \"EUR\",\n            \"cost\": \"1184.3851\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7263,\n                    \"product\": {\n                        \"id\": 10883\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11039,\n            \"currency\": \"EUR\",\n            \"cost\": \"1184.3851\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7265,\n                    \"product\": {\n                        \"id\": 10886\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11042,\n            \"currency\": \"EUR\",\n            \"cost\": \"1184.4973\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7267,\n                    \"product\": {\n                        \"id\": 10889\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11045,\n            \"currency\": \"EUR\",\n            \"cost\": \"1184.4973\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7269,\n                    \"product\": {\n                        \"id\": 10892\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11048,\n            \"currency\": \"EUR\",\n            \"cost\": \"1200.9992\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7271,\n                    \"product\": {\n                        \"id\": 10895\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11051,\n            \"currency\": \"EUR\",\n            \"cost\": \"1200.9992\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7273,\n                    \"product\": {\n                        \"id\": 10898\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11054,\n            \"currency\": \"EUR\",\n            \"cost\": \"1200.9992\",\n            \"subtotal\": \"1600.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-100.0000\"\n            },\n            \"total\": \"1500.0000\",\n            \"items\": [\n                {\n                    \"id\": 7275,\n                    \"product\": {\n                        \"id\": 10901\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"1600.0000\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"0c85b122-0299-4ff4-abb3-49d19ea963ef","name":"Get Carts With complex filtering","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":{"raw":"https://api.teamgate.com/v4/carts?cost[lt]=10000&cost[operator]=and&cost[gt]=1000&operator=and&subtotal[gte]=20000&total[lt]=40000&currency=EUR","protocol":"https","host":["api","teamgate","com"],"path":["v4","carts"],"query":[{"key":"limit","value":"100","type":"text","disabled":true},{"key":"order[cost]","value":"desc","disabled":true},{"key":"fields","value":"currency,total","disabled":true},{"key":"cost[lt]","value":"10000"},{"key":"cost[operator]","value":"and"},{"key":"cost[gt]","value":"1000"},{"key":"operator","value":"and"},{"key":"subtotal[gte]","value":"20000"},{"key":"total[lt]","value":"40000"},{"key":"currency","value":"EUR"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 Jun 2022 09:27:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Account-Id","value":"teamgateapitesti"},{"key":"X-Rate-Limit-Limit","value":"10000"},{"key":"X-Rate-Limit-Remaining","value":"9986"},{"key":"X-Rate-Limit-Reset","value":"1654594200"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=qMpiwQOzxoLlaN%2FwNgC%2FZlXEe8U8UXQLFQRhBprWyh7M%2FVvbluIAdzlr3Rzf3EfnM3s4X1R%2FVkbMYZmqrDShwWSBKOwCFi36ECq%2B3lF5OSyO4Kf19SvB2Z9L71ido5aloEUs\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"717859c43a2a7278-HAM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"count\": 2,\n    \"nextPage\": null,\n    \"data\": [\n        {\n            \"id\": 23,\n            \"currency\": \"EUR\",\n            \"cost\": \"3494.8742\",\n            \"subtotal\": \"26800.0000\",\n            \"discount\": {\n                \"type\": \"percentage\",\n                \"value\": \"0.0000\"\n            },\n            \"total\": \"26800.0000\",\n            \"items\": [\n                {\n                    \"id\": 5,\n                    \"product\": {\n                        \"id\": 5\n                    },\n                    \"name\": \"Skaitmeninė reklama\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"EUR\",\n                        \"value\": \"311.0000\"\n                    },\n                    \"unit_price\": \"625.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"625.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"625.0000\"\n                },\n                {\n                    \"id\": 6,\n                    \"product\": {\n                        \"id\": 1\n                    },\n                    \"name\": \"Rinkodara socialiniuose tinkluose\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"EUR\",\n                        \"value\": \"50.0000\"\n                    },\n                    \"unit_price\": \"125.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"125.0000\",\n                    \"quantity\": \"3.0000\",\n                    \"total\": \"375.0000\"\n                },\n                {\n                    \"id\": 7381,\n                    \"product\": {\n                        \"id\": 11046\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"10000.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"20.0000\"\n                    },\n                    \"selling_price\": \"12000.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"24000.0000\"\n                },\n                {\n                    \"id\": 7382,\n                    \"product\": {\n                        \"id\": 11047\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"2500.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"300.0000\"\n                    },\n                    \"selling_price\": \"2800.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"2800.0000\"\n                }\n            ]\n        },\n        {\n            \"id\": 11205,\n            \"currency\": \"EUR\",\n            \"cost\": \"6989.7484\",\n            \"subtotal\": \"32800.0000\",\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": \"-50.0000\"\n            },\n            \"total\": \"32750.0000\",\n            \"items\": [\n                {\n                    \"id\": 7386,\n                    \"product\": {\n                        \"id\": 11046\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"1600.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"0.0000\"\n                    },\n                    \"selling_price\": \"1600.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"3200.0000\"\n                },\n                {\n                    \"id\": 7387,\n                    \"product\": {\n                        \"id\": 417\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"2500.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"300.0000\"\n                    },\n                    \"selling_price\": \"2800.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"2800.0000\"\n                },\n                {\n                    \"id\": 7388,\n                    \"product\": {\n                        \"id\": 8\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"10000.0000\",\n                    \"discount\": {\n                        \"type\": \"percentage\",\n                        \"value\": \"20.0000\"\n                    },\n                    \"selling_price\": \"12000.0000\",\n                    \"quantity\": \"2.0000\",\n                    \"total\": \"24000.0000\"\n                },\n                {\n                    \"id\": 7389,\n                    \"product\": {\n                        \"id\": 18\n                    },\n                    \"name\": \"Software for CRM\",\n                    \"currency\": \"EUR\",\n                    \"cost\": {\n                        \"currency\": \"USD\",\n                        \"value\": \"1250.0000\"\n                    },\n                    \"unit_price\": \"2500.0000\",\n                    \"discount\": {\n                        \"type\": \"fixed\",\n                        \"value\": \"300.0000\"\n                    },\n                    \"selling_price\": \"2800.0000\",\n                    \"quantity\": \"1.0000\",\n                    \"total\": \"2800.0000\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"44777aee-0524-4982-8d16-b8b0a3396570"},{"name":"Get Cart","event":[{"listen":"test","script":{"id":"85c12d3f-0a83-4723-bc68-b6833d6c90c9","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","const discountSchema = {","    \"type\": \"object\",","    \"required\": [\"type\", \"value\"],","    \"properties\": {","        \"type\": {\"type\": \"string\", \"enum\": [\"percentage\", \"fixed\"]},","        \"value\": {\"type\": \"string\", \"pattern\": \"^\\\\-?\\\\d+(\\\\.\\\\d+)?$\"}","    }","};","","const schema = {","    \"type\": \"object\",","    \"required\": [\"success\", \"data\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\"],","            \"properties\": {","                \"id\": {\"type\": \"integer\"},","                \"currency\": {\"type\": \"string\", \"maxLength\": 3, \"minLength\": 3},","                \"cost\": {\"type\": [\"string\", \"number\"], \"pattern\": \"^\\\\d+(\\\\.\\\\d+)?$\"},","                \"subtotal\": {\"type\": [\"string\", \"number\"], \"pattern\": \"^\\\\d+(\\\\.\\\\d+)?$\"},","                \"discount\": discountSchema,","                \"total\": {\"type\": [\"string\", \"number\"], \"pattern\": \"^\\\\d+(\\\\.\\\\d+)?$\"},","                \"items\": {","                    \"type\": \"array\",","                    \"required\":[\"id\"],","                    \"items\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"id\": {\"type\": \"integer\"},","                            \"product\": {","                                \"type\": \"object\",","                                \"required\": [\"id\"],","                                \"properties\": {","                                    \"id\": {\"type\": \"integer\"},","                                }","                            },","                            \"name\": {\"type\": \"string\"},","                            \"currency\": {\"type\": \"string\", \"maxLength\": 3, \"minLength\": 3},","                            \"cost\": JSON.parse(pm.environment.get('cost_schema')),","                            \"unit_price\": {\"type\": \"string\", \"pattern\": \"^\\\\d+(\\\\.\\\\d+)?$\"},","                            \"discount\": discountSchema,","                            \"selling_price\": {\"type\": \"string\", \"pattern\": \"^\\\\d+(\\\\.\\\\d+)?$\"},","                            \"quantity\": {\"type\": \"string\", \"pattern\": \"^\\\\d+(\\\\.\\\\d+)?$\"},","                            \"total\": {\"type\": \"string\", \"pattern\": \"^\\\\d+(\\\\.\\\\d+)?$\"},","                        },","                    },","                    \"additionalProperties\": true","                },","                \"additionalProperties\": true","            }","        }","    }","};","","console.log(JSON.stringify(jsonData), JSON.stringify(schema));","tests[\"Valid Product Schema\"] = tv4.validate(jsonData, schema, false, true);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"a29337b6-e400-49c0-b116-908b60343085","exec":[""],"type":"text/javascript","packages":{}}}],"id":"ea1307b0-29c3-4a2d-ada0-721f750e7af6","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/carts/:deal_id","description":"<p>Returns the data of specific deal cart.</p>\n","urlObject":{"protocol":"https","path":["v4","carts",":deal_id"],"host":["api","teamgate","com"],"query":[],"variable":[{"type":"any","value":"{{firstDealId}}","key":"deal_id"}]}},"response":[{"id":"48aba6ae-9a7c-4e39-bdd2-dcd85387ed09","name":"Get Product","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/products/{{productId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:27:24 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9914","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 11205,\n        \"currency\": \"EUR\",\n        \"cost\": \"6989.7484\",\n        \"subtotal\": \"32800.0000\",\n        \"discount\": {\n            \"type\": \"fixed\",\n            \"value\": \"-50.0000\"\n        },\n        \"total\": \"32750.0000\",\n        \"items\": [\n            {\n                \"id\": 7386,\n                \"product\": {\n                    \"id\": 11046\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"1600.0000\",\n                \"discount\": {\n                    \"type\": \"fixed\",\n                    \"value\": \"0.0000\"\n                },\n                \"selling_price\": \"1600.0000\",\n                \"quantity\": \"2.0000\",\n                \"total\": \"3200.0000\"\n            },\n            {\n                \"id\": 7387,\n                \"product\": {\n                    \"id\": 417\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"2500.0000\",\n                \"discount\": {\n                    \"type\": \"fixed\",\n                    \"value\": \"300.0000\"\n                },\n                \"selling_price\": \"2800.0000\",\n                \"quantity\": \"1.0000\",\n                \"total\": \"2800.0000\"\n            },\n            {\n                \"id\": 7388,\n                \"product\": {\n                    \"id\": 8\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"10000.0000\",\n                \"discount\": {\n                    \"type\": \"percentage\",\n                    \"value\": \"20.0000\"\n                },\n                \"selling_price\": \"12000.0000\",\n                \"quantity\": \"2.0000\",\n                \"total\": \"24000.0000\"\n            },\n            {\n                \"id\": 7389,\n                \"product\": {\n                    \"id\": 18\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"2500.0000\",\n                \"discount\": {\n                    \"type\": \"fixed\",\n                    \"value\": \"300.0000\"\n                },\n                \"selling_price\": \"2800.0000\",\n                \"quantity\": \"1.0000\",\n                \"total\": \"2800.0000\"\n            }\n        ]\n    }\n}"}],"_postman_id":"ea1307b0-29c3-4a2d-ada0-721f750e7af6"},{"name":"Update Cart Items","event":[{"listen":"test","script":{"id":"c3f373ca-d8ae-4c08-9e68-30f318bd7d99","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"6c61ba30-7c7f-413f-9d68-d9bbd58bf381","exec":["const allCarts = JSON.parse(pm.globals.get('list_all_carts_request'));","","const firstCart = allCarts.data[0];","pm.variables.set('dealId', firstCart.id);","function onlyUnique(value, index, self) {","  return self.indexOf(value) === index;","}","","const uniqueProducts = allCarts.data.map(cart => cart.items).flatten(1).filter(onlyUnique);","","function randomKey() {","    return Math.floor(Math.random() * uniqueProducts.length);","}","","pm.variables.set('productOneId', uniqueProducts[randomKey()].id)","pm.variables.set('productTwoId', uniqueProducts[randomKey()].id)"],"type":"text/javascript"}}],"id":"82e6f849-0471-460f-be3e-0e205c39b33a","request":{"method":"PATCH","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"value\": [\n        {\n            \"productId\": {{productOneId}},\n            \"price\": {\n                \"currency\": \"EUR\",\n                \"value\": \"10000.0000\"\n            },\n            \"discount\": {\n                \"type\": \"percentage\",\n                \"value\": \"20.0000\"\n            },\n            \"quantity\": 2\n        },\n        {\n            \"productId\": {{productTwoId}},\n            \"price\": {\n                \"currency\": \"EUR\",\n                \"value\": 2500\n            },\n            \"discount\": {\n                \"type\": \"fixed\",\n                \"value\": 300\n            },\n            \"quantity\": 1\n        }\n    ]\n}"},"url":"https://api.teamgate.com/v4/carts/:deal_id/items","description":"<p>Add/Append given products and their details to cart.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>values</strong>  <br />Array</td>\n<td>Array of products and their specifications in the cart.</td>\n</tr>\n<tr>\n<td><strong>values[].productId</strong>  <br />Integer</td>\n<td>Unique identifier of the cart item.</td>\n</tr>\n<tr>\n<td><strong>values[].price</strong>  <br />String (Decimal)</td>\n<td>How much it costs company to aquire item to sell, object.</td>\n</tr>\n<tr>\n<td><strong>values[].price.currency</strong>  <br />String</td>\n<td><a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217</a>, currency code.</td>\n</tr>\n<tr>\n<td><strong>values[].price.value</strong>  <br />String (Decimal)</td>\n<td>Price amount.</td>\n</tr>\n<tr>\n<td><strong>values[].discount</strong>  <br />Object</td>\n<td>Discount.</td>\n</tr>\n<tr>\n<td><strong>values[].discount.type</strong>  <br />Enum(procents, fixed)</td>\n<td>Whether its percentage or fixed.</td>\n</tr>\n<tr>\n<td><strong>values[].discount.value</strong>  <br />String (Decimal)</td>\n<td>The amount of the discount.</td>\n</tr>\n<tr>\n<td><strong>values[].quantity</strong>  <br />String (Decimal)</td>\n<td>Units of item in the cart.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","carts",":deal_id","items"],"host":["api","teamgate","com"],"query":[],"variable":[{"type":"any","value":"{{firstDealId}}","key":"deal_id"}]}},"response":[{"id":"d258c380-ece3-4aec-9e1d-b75dcf05f86f","name":"Create Cart","originalRequest":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"name\": \"My Postman Product Nr...\",\n  \"sku\": \"mpp1\",\n  \"description\": \"It is new test product created with Postman\",\n  \"isActive\": \"yes\",\n  \"cost\": {\n    \"value\": \"1250\",\n    \"currency\": \"USD\"\n  },\n  \"prices\": [\n    {\n      \"value\": \"1600\",\n      \"currency\": \"EUR\"\n    },\n    {\n      \"value\": \"1735\",\n      \"currency\": \"USD\"\n    }\n  ],\n  \"customFields\": {\n  \t\"25\":\"89\"\n  }\n}"},"url":"https://api.teamgate.com/v4/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 17 Jul 2018 10:39:33 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9981","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1531824300","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 11205,\n        \"currency\": \"EUR\",\n        \"cost\": \"6989.7484\",\n        \"subtotal\": \"32800.0000\",\n        \"discount\": {\n            \"type\": \"fixed\",\n            \"value\": \"-50.0000\"\n        },\n        \"total\": \"32750.0000\",\n        \"items\": [\n            {\n                \"id\": 7386,\n                \"product\": {\n                    \"id\": 11046\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"1600.0000\",\n                \"discount\": {\n                    \"type\": \"fixed\",\n                    \"value\": \"0.0000\"\n                },\n                \"selling_price\": \"1600.0000\",\n                \"quantity\": \"2.0000\",\n                \"total\": \"3200.0000\"\n            },\n            {\n                \"id\": 7387,\n                \"product\": {\n                    \"id\": 417\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"2500.0000\",\n                \"discount\": {\n                    \"type\": \"fixed\",\n                    \"value\": \"300.0000\"\n                },\n                \"selling_price\": \"2800.0000\",\n                \"quantity\": \"1.0000\",\n                \"total\": \"2800.0000\"\n            },\n            {\n                \"id\": 7388,\n                \"product\": {\n                    \"id\": 8\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"10000.0000\",\n                \"discount\": {\n                    \"type\": \"percentage\",\n                    \"value\": \"20.0000\"\n                },\n                \"selling_price\": \"12000.0000\",\n                \"quantity\": \"2.0000\",\n                \"total\": \"24000.0000\"\n            },\n            {\n                \"id\": 7389,\n                \"product\": {\n                    \"id\": 18\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"2500.0000\",\n                \"discount\": {\n                    \"type\": \"fixed\",\n                    \"value\": \"300.0000\"\n                },\n                \"selling_price\": \"2800.0000\",\n                \"quantity\": \"1.0000\",\n                \"total\": \"2800.0000\"\n            }\n        ]\n    }\n}"}],"_postman_id":"82e6f849-0471-460f-be3e-0e205c39b33a"},{"name":"Update cart","event":[{"listen":"test","script":{"id":"bbe2412b-1c4f-4fa2-a6b0-345b3f91c8dc","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"e522a9d8-10f6-44ad-934f-e8f7a2c40ab5","exec":[""],"type":"text/javascript"}}],"id":"75b14b70-375e-45bf-9b63-ed183592c8bb","request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"isActive\": true\n}"},"url":"https://api.teamgate.com/v4/carts/:deal_id/products","description":"<p>This endpoint is meant for setting all products in cart active or inactive, which is same as in-stock or out-of-stock.</p>\n<p><code>\"isActive\": true</code>, means product is in-stock.</p>\n<p><code>\"isActive\": false</code>, mean product is out of stock.</p>\n","urlObject":{"protocol":"https","path":["v4","carts",":deal_id","products"],"host":["api","teamgate","com"],"query":[],"variable":[{"description":{"content":"<p>Cart of deal id</p>\n","type":"text/plain"},"type":"any","value":"{{firstDealId}}","key":"deal_id"}]}},"response":[{"id":"9d0fd9d6-5d8e-4b6d-ab16-58d57f59da0e","name":"Update product","originalRequest":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Updated Postman Product Nr2","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|name <br>String **Required**      | **Example:**  \"name\": \"Product\"   |"},{"key":"sku","value":"umpp1","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|sku <br>String | **Example:**  \"sku\": \"m1p\"   |"},{"key":"description","value":"It is updated test product created with Postman","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|description <br>String | **Example:**   \"description\": \"My product description\"    |"},{"key":"isActive","value":"no","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|isActive <br>Boolean | **Example:**    \"isActive\": \"yes\" |"},{"key":"cost[value]","value":"1333","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|cost[value] <br>float | **Example:**    \"cost[value]\": 750|"},{"key":"cost[currency]","value":"EUR","type":"text","description":"| Attribute       | Parameters          | \n| ------------- |:-------------:|\n|cost[currency] <br>string | **Example:**    \"cost[currency]\": \"EUR\"|"}]},"url":"https://api.teamgate.com/v4/products/{{productId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 08 May 2018 08:27:46 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9911","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1525768200","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": 11205,\n        \"currency\": \"EUR\",\n        \"cost\": \"6989.7484\",\n        \"subtotal\": \"32800.0000\",\n        \"discount\": {\n            \"type\": \"fixed\",\n            \"value\": \"-50.0000\"\n        },\n        \"total\": \"32750.0000\",\n        \"items\": [\n            {\n                \"id\": 7386,\n                \"product\": {\n                    \"id\": 11046\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"1600.0000\",\n                \"discount\": {\n                    \"type\": \"fixed\",\n                    \"value\": \"0.0000\"\n                },\n                \"selling_price\": \"1600.0000\",\n                \"quantity\": \"2.0000\",\n                \"total\": \"3200.0000\"\n            },\n            {\n                \"id\": 7387,\n                \"product\": {\n                    \"id\": 417\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"2500.0000\",\n                \"discount\": {\n                    \"type\": \"fixed\",\n                    \"value\": \"300.0000\"\n                },\n                \"selling_price\": \"2800.0000\",\n                \"quantity\": \"1.0000\",\n                \"total\": \"2800.0000\"\n            },\n            {\n                \"id\": 7388,\n                \"product\": {\n                    \"id\": 8\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"10000.0000\",\n                \"discount\": {\n                    \"type\": \"percentage\",\n                    \"value\": \"20.0000\"\n                },\n                \"selling_price\": \"12000.0000\",\n                \"quantity\": \"2.0000\",\n                \"total\": \"24000.0000\"\n            },\n            {\n                \"id\": 7389,\n                \"product\": {\n                    \"id\": 18\n                },\n                \"name\": \"Software for CRM\",\n                \"currency\": \"EUR\",\n                \"cost\": {\n                    \"currency\": \"USD\",\n                    \"value\": \"1250.0000\"\n                },\n                \"unit_price\": \"2500.0000\",\n                \"discount\": {\n                    \"type\": \"fixed\",\n                    \"value\": \"300.0000\"\n                },\n                \"selling_price\": \"2800.0000\",\n                \"quantity\": \"1.0000\",\n                \"total\": \"2800.0000\"\n            }\n        ]\n    }\n}"}],"_postman_id":"75b14b70-375e-45bf-9b63-ed183592c8bb"},{"name":"Delete cart","event":[{"listen":"test","script":{"id":"5021b371-2b42-4e99-8705-55278ddb89c8","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"0979e6de-fef6-4975-82d7-f8598c786746","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/carts/:deal_id","description":"<p>Deletes a cart</p>\n","urlObject":{"protocol":"https","path":["v4","carts",":deal_id"],"host":["api","teamgate","com"],"query":[],"variable":[{"type":"any","value":"{{firstDealId}}","key":"deal_id"}]}},"response":[{"id":"8eb643e2-e6a9-4c11-bbd9-f5f5d28660a8","name":"Delete cart","originalRequest":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://api.teamgate.com/v4/carts/:deal_id","protocol":"https","host":["api","teamgate","com"],"path":["v4","carts",":deal_id"],"variable":[{"key":"deal_id","value":"{{firstDealId}}"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": 1\n}"}],"_postman_id":"0979e6de-fef6-4975-82d7-f8598c786746"}],"id":"f317518c-b7fc-4b83-a934-99081bd2e1e3","description":"<h2 id=\"properties\">Properties</h2>\n<p>Available cart properties, for reading and writing</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong>  <br />Intiger <em>Read only</em></td>\n<td>Unique key of the Deal.</td>\n</tr>\n<tr>\n<td><strong>currency</strong>  <br />String</td>\n<td><a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217</a>, currency code.</td>\n</tr>\n<tr>\n<td><strong>cost</strong>  <br />String (Decimal)</td>\n<td>What is the cost of the cart for the company.</td>\n</tr>\n<tr>\n<td><strong>subtotal</strong>  <br />String (Decimal)</td>\n<td>What is the subtotal of the cart.</td>\n</tr>\n<tr>\n<td><strong>discount</strong>  <br />Object</td>\n<td>What is the discount of the cart</td>\n</tr>\n<tr>\n<td><strong>discount.type</strong>  <br />Enum</td>\n<td>Whether the discount is percentage or fixed.</td>\n</tr>\n<tr>\n<td><strong>discount.value</strong>  <br />String (Decimal)</td>\n<td>The amount of the discount.</td>\n</tr>\n<tr>\n<td><strong>total</strong>  <br />String (Decimal)</td>\n<td>The total price of the cart.</td>\n</tr>\n<tr>\n<td><strong>items</strong>  <br />Array</td>\n<td>Array of products and their specifications in the cart.</td>\n</tr>\n<tr>\n<td><strong>items[].id</strong>  <br />Integer</td>\n<td>Unique identifier of the cart item.</td>\n</tr>\n<tr>\n<td><strong>items[].product</strong>  <br />Object</td>\n<td>Product itself object</td>\n</tr>\n<tr>\n<td><strong>items[].product.id</strong>  <br />Integer</td>\n<td>Product uniqueue identifier.</td>\n</tr>\n<tr>\n<td><strong>items[].name</strong>  <br />String</td>\n<td>Name of the cart items, usually product name</td>\n</tr>\n<tr>\n<td><strong>items[].currency</strong>  <br />String</td>\n<td><a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217</a>, currency code.</td>\n</tr>\n<tr>\n<td><strong>items[].cost</strong>  <br />String (Decimal)</td>\n<td>How much it costs company to aquire item to sell, object.</td>\n</tr>\n<tr>\n<td><strong>items[].cost.currency</strong>  <br />String</td>\n<td><a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217</a>, currency code.</td>\n</tr>\n<tr>\n<td><strong>items[].cost.value</strong>  <br />String (Decimal)</td>\n<td>Cost amount.</td>\n</tr>\n<tr>\n<td><strong>items[].unit_price</strong>  <br />String (Decimal)</td>\n<td>how much single cart item or product costs.</td>\n</tr>\n<tr>\n<td><strong>items[].discount</strong>  <br />Object</td>\n<td>Discount.</td>\n</tr>\n<tr>\n<td><strong>items[].discount.type</strong>  <br />Enum(procents, fixed)</td>\n<td>Whether its percentage or fixed.</td>\n</tr>\n<tr>\n<td><strong>items[].discount.value</strong>  <br />String (Decimal)</td>\n<td>The amount of the discount.</td>\n</tr>\n<tr>\n<td><strong>items[].selling_price</strong>  <br />String (Decimal)</td>\n<td>With what price item will be sold.</td>\n</tr>\n<tr>\n<td><strong>items[].quantity</strong>  <br />String (Decimal)</td>\n<td>Units of item in the cart.</td>\n</tr>\n<tr>\n<td><strong>items[].total</strong>  <br />String (Decimal)</td>\n<td>Total price of the item.</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"d98a0004-da8a-45b8-b293-72b0186ebda9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"23d51860-7af1-4bfb-9abb-1f0f157e6a3a","type":"text/javascript","exec":[""]}}],"_postman_id":"f317518c-b7fc-4b83-a934-99081bd2e1e3"},{"name":"16. Resources","item":[{"name":"Get Resources Collection","event":[{"listen":"test","script":{"id":"2c30cc87-4999-4012-a747-9b2ae0efce96","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"nextPage\": {\"type\": [\"string\", \"null\"] },","        \"data\": JSON.parse(pm.environment.get('resources_schema')),","    },","    \"additionalProperties\": false","};","","tests[\"Valid Resources Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"32643b9c-70c8-49df-842d-fb3681c70bf9","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/resources","description":"<p>Get a list of all resources</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer</td>\n<td>Unique key of the Resource. <strong>Example:</strong> <code>?id=1</code></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Sources. <strong>Example:</strong> <code>?name=MeetingRoom</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","resources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"f0cd3893-b0d1-4f97-a96d-7bd1ee429483","name":"Get Resources Collection","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/resources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:14:22 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9924","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"count\":2,\"data\":[{\"id\":1,\"name\":\"Meeting room\"},{\"id\":3,\"name\":\"Coffee place\"}]}"}],"_postman_id":"32643b9c-70c8-49df-842d-fb3681c70bf9"}],"id":"51957625-a8d5-416d-afdb-b3ae6e383c9c","_postman_id":"51957625-a8d5-416d-afdb-b3ae6e383c9c","description":""},{"name":"17. Sources","item":[{"name":"Get Sources Collection","event":[{"listen":"test","script":{"id":"73b38640-7e5f-40f1-a18c-1b9079cad664","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"nextPage\": {\"type\": [\"string\", \"null\"] },","        \"data\": JSON.parse(pm.environment.get('sources_schema'))","    },","    \"additionalProperties\": false","};","","tests[\"Valid Sources Collection Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"1071580d-c1b8-41ef-b1b3-2c73f3bc5723","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"url":"https://api.teamgate.com/v4/sources","description":"<p>Get a list of all sources</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Source. You can search by full name or by fragment of name.<br />Example for strict search: <code>name=google.com</code> <br />And search by text fragment: <code>?name[like]=google</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Source. You can search by full description or by fragment of surame. <br />Example for strict search: <code>?description=Search</code> <br /> And search by text fragment: <code>?name[like]=Search</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <ul><li> name </li><li> description </li></ul> Example: <code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","sources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1071580d-c1b8-41ef-b1b3-2c73f3bc5723"}],"id":"ef608bb2-ea49-4dac-b162-f6e93d16a042","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported sources properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <em>Read only</em></td>\n<td>Unique key of the Source.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Source.</td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Source.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"ef608bb2-ea49-4dac-b162-f6e93d16a042"},{"name":"18. Tags","item":[{"name":"Get Tags Collection","event":[{"listen":"test","script":{"id":"353580d1-01c3-4af6-bf69-597bc2ce8d72","type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": JSON.parse(pm.environment.get('tags_schema')),","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"4f50161c-a509-4676-be8a-e4861fcb681b","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/sources","description":"<p>Retrieve all tags</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Tag. You can search by full name or by fragment of name.<br />Example for strict search: <code>?name=green</code> <br />And search by text fragment: <code>?name[like]=green</code></td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Tag. You can search by full description or by fragment of name. <br />Example for strict search: <code>?description=Search</code> <br /> And search by text fragment: <code>?name[like]=Search</code></td>\n</tr>\n<tr>\n<td><strong>order</strong> <br />String</td>\n<td>A field to sort by. You can sort by multiple fields. You can specify the sort order to descending, append <code>desc</code> or to ascending, append <code>asc</code>. <ul><li> name </li><li> description </li></ul> Example: <code>order[name] = asc</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","sources"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f50161c-a509-4676-be8a-e4861fcb681b"}],"id":"1170b2ba-a012-4cf0-8bb2-9d356ca94930","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported tags properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <em>Read only</em></td>\n<td>Unique key of the Tag.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Tag.</td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Tag.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"1170b2ba-a012-4cf0-8bb2-9d356ca94930"},{"name":"19. Users","item":[{"name":"Get Users Collection","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"username\", \"email\", \"picture\", \"role\", \"isActive\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"name\": { \"type\": \"string\" },","                    \"surname\": { \"type\": \"string\" },","                    \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                    \"username\": { \"type\": \"string\" },","                    \"email\": { \"type\": \"string\" },","                    \"language\": JSON.parse(pm.environment.get('language_schema')),","                    \"locale\": {\"type\": \"string\"},","                    \"timeZone\": {\"type\": \"string\"},","                    \"updated\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('updated_schema')),],","                    \"defaultCurrency\": {\"type\": \"string\"},","                    \"currencies\": JSON.parse(pm.environment.get('currencies_schema')),","                    \"role\": { \"type\": \"string\" },","                    \"isActive\": { \"type\": \"string\" },","                    \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema'))","                },","                \"additionalProperties\": true","            }","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid Users Collection Schema\"] = tv4.validate(jsonData, schema);","","postman.setGlobalVariable(\"firstUserId\", jsonData.data[0].id);","postman.setGlobalVariable(\"secondUserId\", jsonData.data[1].id);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"9f5e25bd-ad02-4d73-a912-24216c525cb9","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/users?order[name]=desc","description":"<p>Returns a paginated list of either deleted users or all users.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the User. You can search by full name or by fragment of name.<br />Example for strict search: <code>?name=Jonathan</code> <br />And search by text fragment: <code>?name[like]=Jon</code></td>\n</tr>\n<tr>\n<td><strong>surname</strong> <br />String</td>\n<td>Surame of the User. You can search by full surname or by fragment of surame.<br />Example for strict search: <code>?name=Brown</code> <br />And search by text fragment: <code>?name[like]=Bro</code></td>\n</tr>\n<tr>\n<td><strong>email</strong> <br />String</td>\n<td>Email of the user.<br /><strong>Example:</strong> <code>?email=jonathan@example.com</code></td>\n</tr>\n<tr>\n<td><strong>username</strong> <br />String</td>\n<td>Username of the user.<br /><strong>Example:</strong> <code>username=jonathan@example.com</code></td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br />Boolean</td>\n<td>Indicator the product is active or not. <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul> <strong>Example</strong>: <code>?isActive=yes</code></td>\n</tr>\n<tr>\n<td><strong>position</strong> <br />String</td>\n<td>Posotion of the user.<br /><strong>Example:</strong> <code>?position=CEO</code></td>\n</tr>\n<tr>\n<td><strong>lastLoginTime</strong> <br />String</td>\n<td>User last login time.<br /><strong>Example:</strong> for strict search: <code>?lastLoginTime=2016-11-22T11:53:53+02:00</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","users"],"host":["api","teamgate","com"],"query":[{"key":"order[name]","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"9f5e25bd-ad02-4d73-a912-24216c525cb9"},{"name":"Get User","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"data\": { ","            \"type\": \"object\",","            \"required\": [\"id\", \"username\", \"email\", \"picture\", \"role\", \"isActive\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"name\": { \"type\": \"string\" },","                \"surname\": { \"type\": \"string\" },","                \"picture\": JSON.parse(pm.environment.get('picture_schema')),","                \"username\": { \"type\": \"string\" },","                \"email\": { \"type\": \"string\" },","                \"phone\": { \"type\": \"string\" },","                \"position\": { \"type\": \"string\" },","                \"language\": JSON.parse(pm.environment.get('language_schema')),","                \"locale\": {\"type\": \"string\"},","                \"timeZone\": {\"type\": \"string\"},","                    \"updated\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('updated_schema')),],","                \"role\": { \"type\": \"string\" },","                \"isActive\": { \"type\": \"string\" },","                \"lastLogin\": JSON.parse(pm.environment.get('last_login_schema')),","                \"defaultCurrency\": {\"type\": \"string\"},","                \"currencies\": JSON.parse(pm.environment.get('currencies_schema'))","            },","            \"additionalProperties\": true","        },","        \"additionalProperties\": false","    }","};","tests[\"Valid User Schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"2c6fc109-22d9-40c8-ae40-3d5b4438c595","request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/users/{{firstUserId}}","description":"<p>Returns the data of specific user.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the User. <br /> <strong>Example:</strong> <code>?id=1\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","users","{{firstUserId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[{"id":"7dff4145-43a2-4f9c-8036-da6e8521c230","name":"Get User","originalRequest":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}","disabled":false},{"key":"X-Auth-Token","value":"{{authToken}}","disabled":false}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/users/{{firstUserId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"X-App-Key,X-Auth-Token","name":"Access-Control-Allow-Headers","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE,PATCH,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jul 2018 08:14:36 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Account-Id","value":"teamga01","name":"X-Account-Id","description":"Custom header"},{"key":"X-Rate-Limit-Limit","value":"10000","name":"X-Rate-Limit-Limit","description":"Custom header"},{"key":"X-Rate-Limit-Remaining","value":"9922","name":"X-Rate-Limit-Remaining","description":"Custom header"},{"key":"X-Rate-Limit-Reset","value":"1532074500","name":"X-Rate-Limit-Reset","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"data\":{\"id\":13,\"name\":\"Peter\",\"surname\":\"Peterson\",\"picture\":{\"small\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/small.jpg\",\"medium\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/middle.jpg\",\"large\":\"https:\\/\\/ws-us1.teamgate.com\\/images\\/teamga01\\/users_photos\\/13\\/big.jpg\"},\"username\":\"p.peterson@topbuisness.com\",\"email\":\"p.peterson@topbuisness.com\",\"language\":{\"code\":\"en\",\"name\":\"english\"},\"locale\":\"lt\",\"timeZone\":\"Europe\\/Vilnius\",\"created\":{\"time\":\"2018-03-13T09:09:23+00:00\"},\"role\":\"Admin\",\"isActive\":\"yes\",\"defaultCurrency\":\"EUR\",\"currencies\":[{\"iso\":\"EUR\",\"rate\":\"1.0000\",\"fullRate\":\"1.000000000\",\"name\":\"Euro\",\"symbol\":\"\\u20ac\"},{\"iso\":\"LTL\",\"rate\":\"0.2896\",\"fullRate\":\"0.289620019\",\"name\":\"Lithuanian Litas\",\"symbol\":\"Lt\"},{\"iso\":\"USD\",\"rate\":\"0.8630\",\"fullRate\":\"0.862961685\",\"name\":\"United States Dollar\",\"symbol\":\"$\"}],\"permissions\":{\"leads\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"people\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"companies\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"deals\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"events\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]],\"settingsUsersGroups\":[[\"view\",\"list\",\"create\",\"edit\",\"delete\"]]}}}"}],"_postman_id":"2c6fc109-22d9-40c8-ae40-3d5b4438c595"}],"id":"b332c8c5-be3d-417e-8b61-ce47064ac7d7","description":"<h2 id=\"properties\">Properties</h2>\n<p>Supported users properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <em>Read only</em></td>\n<td>Unique key of the User.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the User.</td>\n</tr>\n<tr>\n<td><strong>surname</strong> <br />String</td>\n<td>Surname of the User.</td>\n</tr>\n<tr>\n<td><strong>username</strong> <br />String <em>Read only</em></td>\n<td>Username of the User.</td>\n</tr>\n<tr>\n<td><strong>email</strong> <br />String <em>Read only</em></td>\n<td>Email of the User.</td>\n</tr>\n<tr>\n<td><strong>position</strong> <br />String</td>\n<td>Position of the User.</td>\n</tr>\n<tr>\n<td><strong>picture</strong> <br />Object</td>\n<td>The user pictures. For the user picture is using <code>Picture</code> object. Read more information about Picture object <a href=\"./#8641c2c6-121b-4ba4-8fa2-905a7aeb2be7\">here</a></td>\n</tr>\n<tr>\n<td><strong>language</strong> <br />Object</td>\n<td>The user language. Read more information about users <code>Language</code> object <a href=\"./#91e1a356-26e2-43fc-9703-bf71cc6b5a8e\">here</a></td>\n</tr>\n<tr>\n<td><strong>locale</strong> <br />String</td>\n<td>User locale code.</td>\n</tr>\n<tr>\n<td><strong>timeZone</strong> <br />String</td>\n<td>User's time zone.</td>\n</tr>\n<tr>\n<td><strong>role</strong> <br />Object</td>\n<td>The role of the user in Teamgate system.</td>\n</tr>\n<tr>\n<td><strong>created</strong> <br />Object <em>Read only</em></td>\n<td>Date and time User was created. Information is read only, because automatically generated by the server.</td>\n</tr>\n<tr>\n<td><strong>isActive</strong> <br />Boolean</td>\n<td>Indicator the user is active or not.</td>\n</tr>\n<tr>\n<td><strong>lastLogin</strong> <br />Array <em>Read only</em></td>\n<td>Date and time of the last user login. Information is read only, because automatically generated by the server.</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"ce2e8586-6b7b-45e5-b421-ca5be7bf9df0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"084d6339-bd15-4c38-bac3-f09855cb0d8d","type":"text/javascript","exec":[""]}}],"_postman_id":"b332c8c5-be3d-417e-8b61-ce47064ac7d7"},{"name":"20. Emails","item":[{"name":"Create a New Email","event":[{"listen":"test","script":{"id":"d43729bf-0041-431e-b017-0cce1be39bb2","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","var postData = JSON.parse(request.data);","","//Response Values Test","tests[\"Email Subject is not empty\"] = pm.expect(postData.subject).not.eql('') && pm.expect(postData.subject).not.eql(null) ;","","tests[\"Email FROM is not empty\"] = pm.expect(postData.from).not.eql('') && pm.expect(postData.from).not.eql(null);","tests[\"Email FROM is valid\"] = pm.expect(postData.from).to.match(/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/);","","tests[\"Email TO is not empty\"] = pm.expect(postData.to).not.eql('') && pm.expect(postData.to).not.eql(null);","tests[\"Email TO is valid\"] = pm.expect(postData.to).to.match(/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/);","","tests[\"Email CC is not empty\"] = pm.expect(postData.cc).not.eql('') && pm.expect(postData.cc).not.eql(null);","tests[\"Email CC is valid\"] = pm.expect(postData.cc).to.match(/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/);","","tests[\"Email BCC is not empty\"] = pm.expect(postData.bcc).not.eql('') && pm.expect(postData.bcc).not.eql(null);","tests[\"Email BCC is valid\"] = pm.expect(postData.bcc).to.match(/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/);","","tests[\"Email TEXT is not empty\"] = pm.expect(postData.text).not.eql('') && pm.expect(postData.text).not.eql(null);","","tests[\"Email HTML TEXT is not empty\"] = pm.expect(postData.html).not.eql('') && pm.expect(postData.html).not.eql(null);","","tests[\"Is Email public\"] = jsonData.data.visibility == postData.visibility;","tests[\"Is Email deleted\"] = jsonData.data.isDeleted == postData.isDeleted;","tests[\"If Starred parameter is string\"] = pm.expect(postData.starred).to.be.a('string');","tests[\"Is Email starred\"] = jsonData.data.starred == postData.starred;","tests[\"If Unread parameter is string\"] = pm.expect(postData.unread).to.be.a('string');","tests[\"Is Email unread\"] = jsonData.data.unread == postData.unread;","tests[\"Is Email Type Correct\"] = jsonData.data.type == postData.type;","","tests[\"Email Owner Id\"] = jsonData.data.owner.id == pm.environment.get(\"firstUserId\");","tests[\"Email Owner Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Email Owner Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Email Owner Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","tests[\"Email Created Time\"] = jsonData.data.created.time.has(\"T\");","tests[\"Email Creator\"] = jsonData.data.created.user.id == pm.environment.get(\"firstUserId\");","tests[\"Email Creator Small Picture\"] = jsonData.data.owner.picture.small.has(\".jpg\");","tests[\"Email Creator Medium Picture\"] = jsonData.data.owner.picture.medium.has(\".jpg\");","tests[\"Email Creator Large Picture\"] = jsonData.data.owner.picture.large.has(\".jpg\");","","//tests[\"Valid Event Schema\"] = tv4.validate(jsonData, schema);","pm.environment.set(\"firstEmailId\", jsonData.data.id);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"78c74196-1339-4f0a-a110-9614524a0c6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"subject\": \"Test Email From Postman\",\n\t\"from\": \"john@example.com\",\n\t\"to\": \"info@example.com\",\n\t\"cc\": \"anthony@example.com\",\n\t\"bcc\": \"johnanna@example.com\",\n\t\"text\": \"Test text with lorem ipsum.\",\n\t\"html\": \"<strong>Email title</strong><p>Test text with lorem ipsum.</p>\",\n\t\"visibility\": \"public\",\n\t\"isDeleted\": \"no\",\n\t\"unread\": \"no\",\n\t\"starred\": \"no\",\n\t\"type\": \"incoming\"\n}"},"url":"https://api.teamgate.com/v4/emails","description":"<p>Create a New Email</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>subject</strong> <br />String</td>\n<td><strong>Example:</strong>  <code>\"subject\": \"Postman Test Email\"</code></td>\n</tr>\n<tr>\n<td><strong>text</strong> <br /> String</td>\n<td><strong>Example:</strong>  <code>\"text\": Test text with lorem ipsum.\"</code></td>\n</tr>\n<tr>\n<td><strong>html</strong> <br /> String</td>\n<td><strong>Example:</strong>  <code>\"html\": &lt;strong&gt;Email title&lt;/strong&gt;&lt;p&gt;Test text with lorem ipsum.&lt;/p&gt;\"</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br /> String</td>\n<td>Default <code>type</code> value is <code>incoming</code>. Possible Values: <ul><li> <code>incoming</code> - incoming emails </li><li> <code>outgoing</code> - outgoing emails </li></ul></td>\n</tr>\n<tr>\n<td><strong>from</strong> <br /> String/Object</td>\n<td><strong>Example 1:</strong>    <code>\"from\": \"john@example.com\"</code><br /><strong>Example 2:</strong>  <code>\"from\": {\"email\":\"john@example.com\"}</code></td>\n</tr>\n<tr>\n<td><strong>to</strong> <br /> String/Array</td>\n<td>Set the list of recipient emails.<br /><strong>Example 1:</strong>   <code>\"to\": \"john@example.net\"</code><br /><strong>Example 2:</strong>   <code>\"to\": [\"info@example.net\", \"john@example.net\"]</code><br /><strong>Example 3:</strong>   <code>\"to\": [\"info@example.net\", {\"email\":\"john@example.com\"}]</code></td>\n</tr>\n<tr>\n<td><strong>cc</strong> <br /> String/Array</td>\n<td>Set the list of recipient copy emails.<br /><strong>Example 1:</strong>   <code>\"cc\": \"john@example.net\"</code><br /><strong>Example 2:</strong>   <code>\"cc\": [\"info@example.net\", \"john@example.net\"]</code><br /><strong>Example 3:</strong>   <code>\"cc\": [\"info@example.net\", {\"email\":\"john@example.com\"}]</code></td>\n</tr>\n<tr>\n<td><strong>bcc</strong> <br /> String/Array</td>\n<td>Set the list of hidden recipient copy emails.<br /><strong>Example 1:</strong>   <code>\"bcc\": \"john@example.net\"</code><br /><strong>Example 2:</strong>   <code>\"bcc\": [\"info@example.net\", \"john@example.net\"]</code><br /><strong>Example 3:</strong>   <code>\"bcc\": [\"info@example.net\", {\"email\":\"john@example.com\"}]</code></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Default is <code>false</code>.<br /><strong>Example:</strong>   <code>\"starred\": \"false\"</code></td>\n</tr>\n<tr>\n<td><strong>isUnread</strong> <br /> Boolean</td>\n<td>Default is <code>true</code>.<br /><strong>Example:</strong>   <code>\"isUnread\": \"true\"</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","emails"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"78c74196-1339-4f0a-a110-9614524a0c6a"},{"name":"Get Emails Collection","event":[{"listen":"test","script":{"id":"e811359a-fbeb-4ff9-9947-4913ab08d1b0","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"count\": { \"type\": \"integer\" },","        \"nextPage\": {\"type\": [\"string\", \"boolean\", \"null\"] },","        \"data\": { ","            \"type\": \"array\", ","            \"items\": {","                \"type\": \"object\",","                \"required\": [\"id\", \"subject\", \"owner\", \"created\", \"visibility\", \"isDeleted\", \"unread\", \"starred\", \"type\"],","                \"properties\": {","                    \"id\": { \"type\": \"integer\" },","                    \"subject\": { \"type\": \"string\" },","                    \"text\": { \"type\": \"string\" },","                    \"html\": { \"type\": \"string\" },","                    \"from\": { \"type\": \"string\" },","                    \"created\": [{ \"type\": \"object\",","                        \"properties\": {","                            \"time\": { \"type\": \"string\" },","                        }","                    }, JSON.parse(pm.environment.get('created_schema'))],","                    \"visibility\": { \"type\": \"string\" },","                    \"isDeleted\": { \"type\": \"string\" },","                    \"unread\": { \"type\": \"string\" },","                    \"starred\": { \"type\": \"string\" },","                    \"type\": { \"type\": \"string\" },","                },","                \"additionalProperties\": true","            },","        },","        \"additionalProperties\": true","    }","};","","tests[\"Valid email collection schema\"] = tv4.validate(jsonData, schema);","","try { console.log(tv4.error.message); }","catch (e) {}"],"type":"text/javascript"}}],"id":"a27d15f9-1af2-461a-b787-87f67286eeb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.teamgate.com/v4/emails","description":"<p>Get a list of all emails</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>subject</strong> <br />String</td>\n<td>Subject of the Email. You can search by full subject or by fragment of subject. Maximum length is 255 characters. <br />Example for strict search: <code>?subject=My%201st%20email</code> <br />And search by text fragment: <code>?subject[like]=email</code></td>\n</tr>\n<tr>\n<td><strong>createdTime</strong> <br />DateTime</td>\n<td>Date and time of the creation in RFC3339 format. For the strictly search use the string. For date range use array and parameters <code>lt</code> and <code>gt</code>, or <code>lte</code>, or <code>gte</code>.</td>\n</tr>\n<tr>\n<td><strong>ownerId</strong> <br /> Intiger</td>\n<td>Unique identifier of the user who is email owner. <br /><strong>Example</strong> <code>?ownerId=6</code></td>\n</tr>\n<tr>\n<td><strong>type</strong> <br />String</td>\n<td>Indicator the email is incoming or outgoing.<br /><strong>Possible Values</strong>: <ul><li> <code>incoming</code></li><li> <code>outgoing</code></li></ul></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br />Boolean</td>\n<td>Indicator the email is starred or not.<br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul><br /> Example: <code>?starred=true</code></td>\n</tr>\n<tr>\n<td><strong>isUnread</strong> <br />Boolean</td>\n<td>Indicator the email is read or not. <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul><br /> Example: <code>?isUnread=true</code></td>\n</tr>\n<tr>\n<td><strong>isDeleted</strong> <br /> Boolean</td>\n<td>Indicator the email is deleted or not. In responses deleted values are not displayed <br /><strong>Possible Values</strong>: <ul><li> <code>yes</code> or <code>no</code> </li><li> <code>true</code> or <code>false</code> </li><li> <code>1</code> or <code>0</code></li></ul><br /> Example: <code>?isDeleted=true</code></td>\n</tr>\n<tr>\n<td><strong>limit</strong> <br />Integer</td>\n<td>Response items count. <br /> Example: <code>?limit=10</code></td>\n</tr>\n<tr>\n<td><strong>offset</strong> <br />Integer</td>\n<td>Returned result first value number. <br /> Example: <code>?offset=0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","emails"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a27d15f9-1af2-461a-b787-87f67286eeb6"},{"name":"Get an Email Details","event":[{"listen":"test","script":{"id":"52a50e67-29ef-48d6-bd57-e55a579f59e0","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","","//Schema Test","var schema = {","    \"type\": \"object\",","    \"required\": [\"success\"],","    \"properties\": {","        \"success\": { \"type\": \"boolean\" },","        \"data\": { ","            \"type\": \"object\", ","            \"required\": [\"id\", \"subject\", \"from\", \"to\", \"owner\", \"created\", \"visibility\", \"isDeleted\", \"unread\", \"starred\", \"type\"],","            \"properties\": {","                \"id\": { \"type\": \"integer\" },","                \"subject\": { \"type\": \"string\" },","                \"text\": { \"type\": \"string\" },","                \"html\": { \"type\": \"string\" },","                \"from\": { \"type\": \"string\" },","                \"owner\": JSON.parse(pm.environment.get('user_schema')),","                \"created\": JSON.parse(pm.environment.get('created_schema')),","                \"visibility\": { \"type\": \"string\" },","                \"isDeleted\": { \"type\": \"string\" },","                \"unread\": { \"type\": \"string\" },","                \"starred\": { \"type\": \"string\" },","                \"type\": { \"type\": \"string\" }","            },","            \"additionalProperties\": true","        },","        \"additionalProperties\": false","    }","};","","tests[\"Valid email collection schema\"] = tv4.validate(jsonData, schema);",""],"type":"text/javascript"}}],"id":"956ebdb9-7a61-4de8-a753-1dcb5fdd856b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.teamgate.com/v4/emails/{{firstEmailId}}","description":"<p>Get single Email id</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Intiger <strong>Required</strong></td>\n<td>Unique key of the email. <br /> <strong>Example:</strong> <code>?id=2</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","emails","{{firstEmailId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"956ebdb9-7a61-4de8-a753-1dcb5fdd856b"},{"name":"Update an Email","event":[{"listen":"test","script":{"id":"ce8e9c37-6cee-45e5-87c1-d392f1dbe636","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","var postData = JSON.parse(request.data);","","tests[\"Starred response value is equals with posted data value\"] = jsonData.data.starred == postData.starred;","tests[\"Unread response value is equals with posted data value\"] = jsonData.data.unread == postData.starred;","",""],"type":"text/javascript"}}],"id":"1131efbc-10eb-4e2c-a049-aeb8c625fdc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"starred\": \"yes\",\n  \"unread\": \"yes\"\n}"},"url":"https://api.teamgate.com/v4/emails/{{firstEmailId}}","description":"<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>unread</strong> <br /> Boolean</td>\n<td>Used to mark an email as read or unread. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n<tr>\n<td><strong>starred</strong> <br /> Boolean</td>\n<td>Used to mark an email as important or not. Possible Values: <ul><li>  yes or no </li><li> true or false </li><li> 1 or 0 </li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["v4","emails","{{firstEmailId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1131efbc-10eb-4e2c-a049-aeb8c625fdc7"}],"id":"e9421349-2dcc-4550-8178-d77bec04d1b4","_postman_id":"e9421349-2dcc-4550-8178-d77bec04d1b4","description":""},{"name":"21. Finishing","item":[{"name":"Delete First Global File","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"bbbdc662-1750-4248-8a2b-998992f78ffd","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/files/{{firstGlobalFileId}}","description":"<p>Deleting first global file</p>\n","urlObject":{"protocol":"https","path":["v4","files","{{firstGlobalFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bbbdc662-1750-4248-8a2b-998992f78ffd"},{"name":"Delete Second Global File","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"10ed264b-a969-44c6-880a-804e9570508b","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/files/{{secondGlobalFileId}}","description":"<p>Deleting second global file</p>\n","urlObject":{"protocol":"https","path":["v4","files","{{secondGlobalFileId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"10ed264b-a969-44c6-880a-804e9570508b"},{"name":"Delete Event","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"11aec61b-8791-432a-a003-aa9f87a0b8a1","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/events/{{globalEventId}}","description":"<p>Delete global appointment event</p>\n","urlObject":{"protocol":"https","path":["v4","events","{{globalEventId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"11aec61b-8791-432a-a003-aa9f87a0b8a1"},{"name":"Delete First Lead","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"f7d9119a-ae6f-4978-8b95-eda71e880d43","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{firstGlobalLeadId}}","urlObject":{"protocol":"https","path":["v4","leads","{{firstGlobalLeadId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7d9119a-ae6f-4978-8b95-eda71e880d43"},{"name":"Delete Second Lead","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"d5b5c5c9-96ff-4e58-a0fc-872b3225f3a1","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/leads/{{secondGlobalLeadId}}","urlObject":{"protocol":"https","path":["v4","leads","{{secondGlobalLeadId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5b5c5c9-96ff-4e58-a0fc-872b3225f3a1"},{"name":"Delete First Person","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"6203a5c1-5b23-4c5d-a973-baeccd8d4ea6","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{firstGlobalPersonId}}","urlObject":{"protocol":"https","path":["v4","people","{{firstGlobalPersonId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6203a5c1-5b23-4c5d-a973-baeccd8d4ea6"},{"name":"Delete Second Person","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"4c703ddd-c549-45e2-9b7f-1ed72cfc7a02","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/people/{{secondGlobalPersonId}}","urlObject":{"protocol":"https","path":["v4","people","{{secondGlobalPersonId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c703ddd-c549-45e2-9b7f-1ed72cfc7a02"},{"name":"Delete First Company","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"afaf4dcc-6869-46a7-8e2f-37049b609d4c","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{firstGlobalCompanyId}}","urlObject":{"protocol":"https","path":["v4","companies","{{firstGlobalCompanyId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"afaf4dcc-6869-46a7-8e2f-37049b609d4c"},{"name":"Delete Second Company","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"55d72d84-e0dd-4c53-bd4d-28c7215ad88c","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/companies/{{secondGlobalCompanyId}}","urlObject":{"protocol":"https","path":["v4","companies","{{secondGlobalCompanyId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"55d72d84-e0dd-4c53-bd4d-28c7215ad88c"},{"name":"Delete First Deal","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"0ec7a471-5320-4ea0-b753-f65424874aa1","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{firstGlobalDealId}}","urlObject":{"protocol":"https","path":["v4","deals","{{firstGlobalDealId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ec7a471-5320-4ea0-b753-f65424874aa1"},{"name":"Delete Second Deal","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status Code is 200\"] = responseCode.code === 200;","","var jsonData = JSON.parse(responseBody);","tests[\"Was Deleted Successfully\"] = jsonData.success;","","try { console.log(tv4.error.message); }","catch (e) {}"]}}],"id":"e9922a8d-04c4-4b77-90dd-15b2d14a2a2e","request":{"method":"DELETE","header":[{"key":"X-App-Key","value":"{{appKey}}"},{"key":"X-Auth-Token","value":"{{authToken}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"raw","raw":""},"url":"https://api.teamgate.com/v4/deals/{{secondGlobalDealId}}","urlObject":{"protocol":"https","path":["v4","deals","{{secondGlobalDealId}}"],"host":["api","teamgate","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9922a8d-04c4-4b77-90dd-15b2d14a2a2e"}],"id":"40e93cd4-6d57-468e-89ec-c6727e408fc6","_postman_id":"40e93cd4-6d57-468e-89ec-c6727e408fc6","description":""},{"name":"Objects","item":[{"name":"Users","item":[],"id":"8641c2c6-121b-4ba4-8fa2-905a7aeb2be7","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the User.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the User. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>surname</strong> <br />String</td>\n<td>Surname of the User. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>username</strong> <br />String</td>\n<td>Username of the User. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>picture</strong> <br />String</td>\n<td>The user picture. For the user picture is using <code>Picture</code> object. Read more information about Picture object here. Read more information about <code>Picture</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#88bb18d6-5538-4676-bb12-9286c3a558d1\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"8641c2c6-121b-4ba4-8fa2-905a7aeb2be7"},{"name":"Price","item":[],"id":"ec82024b-42a3-48eb-a048-f36f477724f6","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>value</strong> <br />Number</td>\n<td></td>\n</tr>\n<tr>\n<td><strong>currency</strong> <br />String</td>\n<td>Currency of the deal, specified in 3-character currency code (<a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217</a>) format e.g., USD, EUR, JPY etc.</td>\n</tr>\n<tr>\n<td><strong>symbol</strong> <br />String</td>\n<td>Symbol of the deal currency e.g., $, €, ¥, ₽ etc.</td>\n</tr>\n<tr>\n<td><strong>rate</strong> <br />Number <em>Read only</em></td>\n<td></td>\n</tr>\n<tr>\n<td><strong>baseValue</strong> <br />String <em>Read only</em></td>\n<td></td>\n</tr>\n<tr>\n<td><strong>rate</strong> <br />Number <em>Read only</em></td>\n<td></td>\n</tr>\n<tr>\n<td><strong>baseCurrency</strong> <br />String <em>Read only</em></td>\n<td>Base currency of the your account, specified in 3-character currency code (<a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217</a>) format.</td>\n</tr>\n<tr>\n<td><strong>baseSymbol</strong> <br />String <em>Read only</em></td>\n<td>Symbol of the your account base currency e.g., $, €, ¥, ₽ etc.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"ec82024b-42a3-48eb-a048-f36f477724f6"},{"name":"Picture","item":[],"id":"2d81f716-0b2e-41eb-bd27-a692cb913a46","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>small</strong> <br />String</td>\n<td>64x64px size picture.</td>\n</tr>\n<tr>\n<td><strong>medium</strong> <br />String</td>\n<td>128x128px size picture.</td>\n</tr>\n<tr>\n<td><strong>large</strong> <br />String</td>\n<td>256x256px size picture.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"2d81f716-0b2e-41eb-bd27-a692cb913a46"},{"name":"Contact","item":[],"id":"4ed92c47-e828-4031-b7d1-60c596ebd8a2","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the Contact.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Contact. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>email</strong> <br />String</td>\n<td>Main email contact. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>phone</strong> <br />String</td>\n<td>Main phone contact. Maximum length is 255 characters.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"4ed92c47-e828-4031-b7d1-60c596ebd8a2"},{"name":"Address","item":[],"id":"f1511aad-d3dc-4118-98d6-bed247321ea3","description":"<h2 id=\"address-object\">Address object</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the Address record.</td>\n</tr>\n<tr>\n<td><strong>value</strong> <br />Object</td>\n<td>The address value. Read more information about Address[value] object here.</td>\n</tr>\n<tr>\n<td><strong>type</strong> <br />String</td>\n<td>Type of the Address. This field must have one of the following values: <ul><li>work</li><li>home</li><li>billing</li><li>shipping</li><li>additional</li></ul></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"addressvalue-object\">Address[value] object</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>street</strong> <br />String</td>\n<td>First line of the address e.g. street, number, suite, apt #, etc.</td>\n</tr>\n<tr>\n<td><strong>city</strong> <br />String</td>\n<td>City name.</td>\n</tr>\n<tr>\n<td><strong>zip</strong> <br />String</td>\n<td>Zip code or postal code.</td>\n</tr>\n<tr>\n<td><strong>state</strong> <br />String</td>\n<td>Name of state/province or region.</td>\n</tr>\n<tr>\n<td><strong>country</strong> <br />Object</td>\n<td>The address country. Read more information about Country object here. Read more information about <code>Country</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#794c7b82-4b51-410a-a051-188c19e70409 \">here</a></td>\n</tr>\n<tr>\n<td><strong>latitude</strong> <br />String</td>\n<td>Latitude is value of geographic location coordinates.</td>\n</tr>\n<tr>\n<td><strong>longitude</strong> <br />String</td>\n<td>Longitude is value of geographic location coordinates.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"f1511aad-d3dc-4118-98d6-bed247321ea3"},{"name":"Phone","item":[],"id":"6a9c4d1a-c72a-4409-8041-afe30c64314c","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the Phone.</td>\n</tr>\n<tr>\n<td><strong>value</strong> <br />String</td>\n<td>Value of the Phone. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>type</strong> <br />String</td>\n<td>Type of the Phone. This field must have one of the following values: <ul><li>work</li><li>home</li><li>mobile</li><li>fax</li><li>other</li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"6a9c4d1a-c72a-4409-8041-afe30c64314c"},{"name":"Email","item":[],"id":"c3d764d8-af9b-46e6-be97-cc8d0264a376","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the Email.</td>\n</tr>\n<tr>\n<td><strong>value</strong> <br />String</td>\n<td>Value of the Email. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>type</strong> <br />String</td>\n<td>Type of the Phone. This field must have one of the following values: <ul><li>work</li><li>personal</li><li>support</li><li>accounting</li><li>other</li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"c3d764d8-af9b-46e6-be97-cc8d0264a376"},{"name":"URL","item":[],"id":"c4d7bd78-8b18-4b2e-9505-82f66f786455","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the URL.</td>\n</tr>\n<tr>\n<td><strong>value</strong> <br />String</td>\n<td>Value of the URL. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>type</strong> <br />String</td>\n<td>Type of the URL. This field must have one of the following values: <ul><li>website</li><li>facebook</li><li>linkedin</li><li>twitter</li><li>skype</li></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"c4d7bd78-8b18-4b2e-9505-82f66f786455"},{"name":"Source","item":[],"id":"97d6de6d-c09a-4f65-8a32-c38639914e5c","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the Source.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Source. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Source. Maximum length is 255 characters.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"97d6de6d-c09a-4f65-8a32-c38639914e5c"},{"name":"Industry","item":[],"id":"e006b7b3-ccf4-4d66-8d86-0c6715f700fe","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the Industry.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Industry. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>description</strong> <br />String</td>\n<td>Description of the Industry. Maximum length is 255 characters.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"e006b7b3-ccf4-4d66-8d86-0c6715f700fe"},{"name":"Tags","item":[],"id":"b889f097-aa3d-42b8-b08c-371a67496bdd","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the Tag.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Tag. Maximum length is 255 characters.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"b889f097-aa3d-42b8-b08c-371a67496bdd"},{"name":"Stage","item":[],"id":"c9a8f95b-f0fc-402e-801f-a8b901b6a25c","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br />Integer <em>Read Only</em></td>\n<td>Unique key of the deal Stage.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br />String</td>\n<td>Name of the Stage. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>pipeline</strong> <br />String</td>\n<td>Pipeline Name of the Stage. Maximum length is 255 characters.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"c9a8f95b-f0fc-402e-801f-a8b901b6a25c"},{"name":"Created","item":[],"id":"7d49fe80-3c31-48d7-addb-aec4afc7a9aa","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>time</strong> <br />DateTime <em>Read Only</em></td>\n<td>The date on which the item was created. Must be an <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> timestamp with mandatory time zone offset, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z. Milliseconds may be provided but will be ignored.</td>\n</tr>\n<tr>\n<td><strong>user</strong> <br />String <em>Read Only</em></td>\n<td>For the creator is using User object. Read more information about User object here. Read more information about <code>User</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#cb28fab8-329d-41f1-9a33-b93b8d73fac1\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"7d49fe80-3c31-48d7-addb-aec4afc7a9aa"},{"name":"Updated","item":[],"id":"aa47147c-6b42-4176-8565-30c52ef76c9a","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>time</strong> <br />DateTime <em>Read Only</em></td>\n<td>The date on which the item was updated. Must be an <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> timestamp with mandatory time zone offset, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z. Milliseconds may be provided but will be ignored.</td>\n</tr>\n<tr>\n<td><strong>user</strong> <br />String <em>Read Only</em></td>\n<td>For the creator is using User object. Read more information about User object here. Read more information about <code>User</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#cb28fab8-329d-41f1-9a33-b93b8d73fac1\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"aa47147c-6b42-4176-8565-30c52ef76c9a"},{"name":"Converted","item":[],"id":"ae94dfe6-6989-45a7-ab92-272bc9f02d67","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>time</strong> <br />DateTime <em>Read Only</em></td>\n<td>The date on which the item was created. Must be an <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> timestamp with mandatory time zone offset, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z. Milliseconds may be provided but will be ignored.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"ae94dfe6-6989-45a7-ab92-272bc9f02d67"},{"name":"Completed","item":[],"id":"dcd7e7e8-a648-4222-899b-53f2b655db1c","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>time</strong> <br />DateTime <em>Read Only</em></td>\n<td>The date on which the item was completed. Must be an <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> timestamp with mandatory time zone offset, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z. Milliseconds may be provided but will be ignored.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"dcd7e7e8-a648-4222-899b-53f2b655db1c"},{"name":"Statuses","item":[],"id":"1e203079-0b00-4587-b17d-736416e0aa65","description":"<h2 id=\"deals-status\">Deals status</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td>This field must have one of he following values: <ul><li>active</li><li>won</li><li>lost</li><li>postponed</li><ul></ul></ul></td>\n</tr>\n<tr>\n<td><strong>date</strong> <br />DateTime</td>\n<td>Date which the user is identified as the closing date. While the deal is open (active), this value is equal to creation time. Must be an <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> timestamp with mandatory time zone offset, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z. Milliseconds may be provided but will be ignored.</td>\n</tr>\n<tr>\n<td><strong>changed</strong> <br />DateTime <em>Read Only</em></td>\n<td>The date on which the deal status was changed. While the deal is open (active), this value is empty. Must be an <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> timestamp with mandatory time zone offset, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z. Milliseconds may be provided but will be ignored.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"leads-status\">Leads status</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Intiger</td>\n<td>This field must have one of the following values:  <ul><li><code>0</code> - Non customer</li><li>won</li><li><code>1</code> - Past customer</li><li><code>2</code> - Customer</li><ul></ul></ul></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td>This field must have one of the Default values or custom valus from your settings. <br /> Pssible values: <ul><li>new</li><li>Unqualified</li><ul></ul></ul></td>\n</tr>\n<tr>\n<td><strong>time</strong> <br />DateTime <em>Read Only</em></td>\n<td>Date and time of the status was changed in <a href=\"https://tools.ietf.org/html/rfc3339\">RFC3339</a> format, e.g., 2016-10-01T10:00:00+03:00, 2016-10-01T10:00:00Z.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"customer-status\">Customer status</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Intiger</td>\n<td>This field must have one of the following values:  <ul><li><code>0</code> - Non customer</li><li>won</li><li><code>1</code> - Past customer</li><li><code>2</code> - Customer</li><ul></ul></ul></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td>This field must have one of the following values:  <br /> Pssible values: <ul><li><code>non_customer</code> - Non Customer</li><li><code>past_customer</code> - Past Customer</li><li><code>customer</code> - customer</li><ul></ul></ul></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"prospect-status\">Prospect Status</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Intiger</td>\n<td>This field must have one of the following values:  <ul><li><code>0</code> - Non customer</li><li>won</li><li><code>1</code> - Past customer</li><li><code>2</code> - Customer</li><ul></ul></ul></td>\n</tr>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td>This field must have one of the following values:  <br /> Pssible values: <ul><li><code>non_customer</code> - Non Customer</li><li><code>past_customer</code> - Past Customer</li><li><code>customer</code> - customer</li><ul></ul></ul></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"1e203079-0b00-4587-b17d-736416e0aa65"},{"name":"Person","item":[],"id":"5641db5a-aa6a-4dda-8935-00c4453336db","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer <em>Read Only</em></td>\n<td>Unique key of the Person.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td>Name of the Person. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>jobTitle</strong> <br /> String</td>\n<td>Job title of the Person. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>phone</strong> <br /> Object</td>\n<td>Main phone of the Person. Read more information about <code>Phone</code> object here. Read more information about <code>Phone</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#dc2da471-2e09-410b-a5bd-114d2595d140\">here</a></td>\n</tr>\n<tr>\n<td><strong>email</strong> <br /> Object</td>\n<td>Main email of the Person. Read more information about <code>Email</code> object here. Read more information about <code>Email</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#9ec4506e-aa96-44fc-85e8-aa1af26bace9\">here</a></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> Object</td>\n<td>Main address of the Person. Read more information about <code>Address</code> object here. Read more information about <code>Address</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#d55f4f56-fcee-4e9b-9236-5a8d89194a49\">here</a></td>\n</tr>\n<tr>\n<td><strong>url</strong> <br /> Object</td>\n<td>Main url of the Person. Read more information about <code>Url</code> object here. Read more information about <code>Url</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#6929c143-9c05-447d-bc60-9cffe73466f7\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"5641db5a-aa6a-4dda-8935-00c4453336db"},{"name":"Company","item":[],"id":"badc7a7b-2a88-404e-9c42-5a8ec8b13b58","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>id</strong> <br /> Integer <em>Read only</em></td>\n<td>Unique key of the Company.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td>Name of the Company. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>jobTitle</strong> <br /> String</td>\n<td>Job title of the person in this Company. Maximum length is 255 characters.</td>\n</tr>\n<tr>\n<td><strong>phone</strong> <br /> Object</td>\n<td>Main phone of the Company. Read more information about <code>Phone</code> object here. Read more information about <code>Phone</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#dc2da471-2e09-410b-a5bd-114d2595d140\">here</a></td>\n</tr>\n<tr>\n<td><strong>email</strong> <br /> Object</td>\n<td>Main email of the Company. Read more information about <code>Email</code> object here. Read more information about <code>Email</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#9ec4506e-aa96-44fc-85e8-aa1af26bace9\">here</a></td>\n</tr>\n<tr>\n<td><strong>address</strong> <br /> Object</td>\n<td>Main address of the Company. Read more information about <code>Address</code> object here. Read more information about <code>Address</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#d55f4f56-fcee-4e9b-9236-5a8d89194a49\">here</a></td>\n</tr>\n<tr>\n<td><strong>url</strong> <br /> Object</td>\n<td>Main url of the Company. Read more information about <code>Url</code> object here. Read more information about <code>Url</code> object <a href=\"https://teamgate.postman.co/collections/4195728-9e2eddc7-a04e-43e7-ad61-e7b8993d051a?workspace=6189195e-aab7-4685-88bb-3c9c2d22bbd2#6929c143-9c05-447d-bc60-9cffe73466f7\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"badc7a7b-2a88-404e-9c42-5a8ec8b13b58"},{"name":"Language","item":[],"id":"91e1a356-26e2-43fc-9703-bf71cc6b5a8e","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>code</strong> <br /> String</td>\n<td>Code of the language.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td>Name of the language.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"91e1a356-26e2-43fc-9703-bf71cc6b5a8e"},{"name":"Country","item":[],"id":"d94565de-2abd-4cfa-9557-1fdedbe12cb1","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>iso</strong> <br /> String</td>\n<td>ISO code of the country.</td>\n</tr>\n<tr>\n<td><strong>name</strong> <br /> String</td>\n<td>Name of the country.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"d94565de-2abd-4cfa-9557-1fdedbe12cb1"}],"id":"e6506f40-ca56-42dc-b480-cef8aca43fbe","_postman_id":"e6506f40-ca56-42dc-b480-cef8aca43fbe","description":""}],"event":[{"listen":"prerequest","script":{"id":"f0f90086-a26d-41b5-84b9-5f81fa69991c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7f23f33e-c40f-46a0-b21a-4291a4772d6d","type":"text/javascript","exec":[""]}}],"variable":[{"key":"dealId","value":"1"}]}