{"info":{"_postman_id":"e111b3a3-68a2-aba8-0c4a-f8a0225d7019","name":"🚀 Pureservice API Guide - 1.0.0 (public preview)","description":"<html><head></head><body><p>Welcome to the Pureservice API documentation. This guide provides a comprehensive overview of the API's capabilities, including authentication, entity management, filtering, paging, and static values. Use this guide to integrate Pureservice into your applications securely and efficiently.</p>\n<p>The Pureservice API offers a robust and flexible interface for integrating with the Pureservice platform. It supports secure operations for reading, creating, updating, and managing entities such as tickets, statuses, users, and more.</p>\n<hr>\n<h1 id=\"table-of-contents\">📚 Table of Contents</h1>\n<ul>\n<li><p><a href=\"#table-of-contents\">📚 Table of Contents</a></p>\n</li>\n<li><p><a href=\"#return-codes\">✅ Return Codes</a></p>\n</li>\n<li><p><a href=\"#base-url\">🌐 Base URL</a></p>\n</li>\n<li><p><a href=\"#content-negotiation\">📝 Content Negotiation</a></p>\n</li>\n<li><p><a href=\"#authentication\">🔐 Authentication</a></p>\n<ul>\n<li><p>🔑 API Keys</p>\n</li>\n<li><p>🔑 API Tokens</p>\n</li>\n</ul>\n</li>\n<li><p><a href=\"#limits-and-throttling\">🚦 Limits and Throttling</a></p>\n<ul>\n<li><p>⏱️ Rate Limits</p>\n</li>\n<li><p>📏 Entity Limits</p>\n</li>\n</ul>\n</li>\n<li><p><a href=\"#entity-operations\">🗂️ Entity Operations</a></p>\n<ul>\n<li><p>🔎 Fetching Entities (GET)</p>\n<ul>\n<li><p>🔍 Get a Single Entity by ID</p>\n</li>\n<li><p>📋 Get All Entities by Type</p>\n</li>\n<li><p>📑 Get Multiple Entities by IDs</p>\n</li>\n</ul>\n</li>\n<li><p>➕ Creating Entities (POST)</p>\n<ul>\n<li>🛠️ Example: Creating a Ticket</li>\n</ul>\n</li>\n<li><p>✏️ Updating Entities (PUT/PATCH)</p>\n<ul>\n<li><p>🛠️ Example: Partial Update (PATCH)</p>\n</li>\n<li><p>🛠️ Example: Full Update (PUT)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><a href=\"#filtering-sorting-and-paging\">🔎 Filtering, Sorting, and Paging</a></p>\n<ul>\n<li><p>🔍 Filtering</p>\n</li>\n<li><p>↕️ Sorting</p>\n</li>\n<li><p>📄 Paging</p>\n</li>\n<li><p>🔗 Including Related Entities</p>\n</li>\n</ul>\n</li>\n<li><p><a href=\"#static-values\">🔢 Static Values</a></p>\n<ul>\n<li><p>UserRole</p>\n</li>\n<li><p>Visibility</p>\n</li>\n<li><p>PhonenumberType</p>\n</li>\n<li><p>📢 AnnouncementType</p>\n</li>\n</ul>\n</li>\n<li><p><a href=\"#%EF%B8%8Fzone-security-if-applicable\">🏷️ Zone Security (If Applicable)</a></p>\n</li>\n<li><p><a href=\"#validation-errors\">❗ Validation Errors</a></p>\n</li>\n</ul>\n<hr>\n<h1 id=\"return-codes\">✅ Return Codes</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code Range</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>🟢 <strong>2XX</strong></td>\n<td>Success — The API call completed successfully.</td>\n</tr>\n<tr>\n<td>🟠 <strong>4XX</strong></td>\n<td>Client Error — There was a validation or input error in the request.</td>\n</tr>\n<tr>\n<td>🔴 <strong>5XX</strong></td>\n<td>Server Error — The API failed to process the request. Try again later.</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h1 id=\"base-url\">🌐 Base URL</h1>\n<p>All API endpoints are served from the <strong>Agent</strong> application. You must direct your API calls to the Agent URL, not the Selfservice (end-user) portal.</p>\n<p>For <strong>SaaS</strong> customers, the base URL follows this pattern:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{customer}.pureservice.com/agent/api/\n\n</code></pre><p>For example, if your Pureservice instance is <code>acme.pureservice.com</code>, your API base URL is:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://acme.pureservice.com/agent/api/\n\n</code></pre><blockquote>\n<p>⚠️ <strong>Important:</strong> Do not send API requests to the Selfservice portal URL (e.g. <code>https://{customer}.pureservice.com/api/</code>). API calls must always target the Agent application path (<code>/agent/api/</code>). </p>\n</blockquote>\n<p>All examples in this documentation use the SaaS URL pattern (<code>customer.pureservice.com/agent/api</code>). If you are running an on-premises installation the base URL depends on your deployment configuration. Contact your system administrator for the correct Agent URL. Request examples show SaaS requests.</p>\n<hr>\n<h1 id=\"content-negotiation\">📝 Content Negotiation</h1>\n<p>To ensure JSON:API-compliant communication, set the following headers:</p>\n<ul>\n<li><p><strong>Accept:</strong><br>  <code>application/vnd.api+json</code></p>\n</li>\n<li><p><strong>Content-Type:</strong><br>  <code>application/vnd.api+json</code> (for requests with a payload)</p>\n</li>\n</ul>\n<blockquote>\n<p>⚠️ <strong>Important:</strong> For <code>PATCH</code> requests, use content-type <code>application/json</code>, see examples.</p>\n</blockquote>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Accept: application/vnd.api+json\nContent-Type: application/vnd.api+json\n\n</code></pre><hr>\n<h1 id=\"authentication\">🔐 Authentication</h1>\n<h2 id=\"🔑-api-keys\">🔑 API Keys</h2>\n<p>API keys allow integration with third-party services and are managed via the Pureservice web interface.</p>\n<p>Authenticate by passing your API key in the <code>X-Authorization-Key</code> HTTP header with every request.</p>\n<p><strong>Best Practices:</strong></p>\n<ul>\n<li><p>🔒 Keep keys confidential and rotate regularly.</p>\n</li>\n<li><p>⏳ Set expiration dates where possible.</p>\n</li>\n<li><p>🗑️ Deactivate or delete unused keys.</p>\n</li>\n</ul>\n<p><strong>Administering API Keys:</strong><br>Navigate to <strong>Pureservice &gt; Administration &gt; Security &gt; API keys</strong> to manage your keys.</p>\n<p><strong>Usage Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /agent/api/status HTTP/1.1\nHost: customer.pureservice.com\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n\n</code></pre>\n<hr>\n<h2 id=\"🔑-api-tokens\">🔑 API Tokens</h2>\n<p>API tokens are used for user-based authentication via the <code>Authorization: Bearer</code> header. This method is scheduled for deprecation.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /agent/api/status HTTP/1.1\nHost: customer.pureservice.com\nAccept: application/vnd.api+json\nAuthorization: Bearer YOUR_USER_TOKEN\n\n</code></pre>\n<hr>\n<h1 id=\"limits-and-throttling\">🚦 Limits and Throttling</h1>\n<h2 id=\"⏱️-rate-limits\">⏱️ Rate Limits</h2>\n<ul>\n<li><p><strong>100 requests per minute</strong> per client (SaaS only).</p>\n</li>\n<li><p>Exceeding this limit returns <code>429 Too Many Requests</code> with potentially a <code>Retry-After</code> header if applicable.</p>\n</li>\n</ul>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">HTTP/1.1 429 Too Many Requests\nContent-Type: application/json\nRetry-After: 15\n\n</code></pre>\n<h2 id=\"📏-entity-limits\">📏 Entity Limits</h2>\n<ul>\n<li><p><strong>Maximum 500 entities per request</strong>.</p>\n</li>\n<li><p>Use paging (<code>start</code> and <code>limit</code> parameters) to retrieve more.</p>\n</li>\n</ul>\n<hr>\n<h1 id=\"entity-operations\">🗂️ Entity Operations</h1>\n<h2 id=\"🔎-fetching-entities-get\">🔎 Fetching Entities (GET)</h2>\n<h3 id=\"🔍-get-a-single-entity-by-id\">🔍 Get a Single Entity by ID</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /agent/api/status/1 HTTP/1.1\nHost: customer.pureservice.com\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n\n</code></pre>\n<p>or</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /agent/api/status?id=1 HTTP/1.1\nHost: customer.pureservice.com\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n\n</code></pre>\n<h3 id=\"📋-get-all-entities-by-type\">📋 Get All Entities by Type</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /agent/api/status/ HTTP/1.1\nHost: customer.pureservice.com\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n\n</code></pre>\n<ul>\n<li><strong>Note:</strong> Maximum 500 items per request. Use paging for more.</li>\n</ul>\n<h3 id=\"📑-get-multiple-entities-by-ids\">📑 Get Multiple Entities by IDs</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /agent/api/status/?ids=1,5 HTTP/1.1\nHost: customer.pureservice.com\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n\n</code></pre>\n<hr>\n<h2 id=\"➕-creating-entities-post\">➕ Creating Entities (POST)</h2>\n<h3 id=\"📝-example-creating-a-ticket\">📝 Example: Creating a Ticket</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">POST /agent/api/ticket HTTP/1.1\nHost: customer.pureservice.com\nContent-Type: application/vnd.api+json\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n{\n  \"tickets\": [\n    {\n      \"subject\": \"Cannot access email\",\n      \"description\": \"User reports email access issues since this morning.\",\n      \"statusId\": 1,\n      \"priorityId\": 2,\n      \"requestTypeId\": 1,\n      \"userId\": 42\n    }\n  ]\n}\n\n</code></pre>\n<hr>\n<h2 id=\"✏️-updating-entities-putpatch\">✏️ Updating Entities (PUT/PATCH)</h2>\n<ul>\n<li><p><strong>PUT:</strong> Full update (missing properties are reset to default).</p>\n</li>\n<li><p><strong>PATCH:</strong> Partial update (only specified properties are updated).</p>\n</li>\n</ul>\n<p><strong>Recommended:</strong> Use <code>PATCH</code> for updates.</p>\n<h3 id=\"🛠️-example-partial-update-patch\">🛠️ Example: Partial Update (PATCH)</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">PATCH /agent/api/ticket/10 HTTP/1.1\nHost: customer.pureservice.com\nContent-Type: application/json\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n{ \"subject\": \"...\" }\n\n</code></pre>\n<h3 id=\"🛠️-example-full-update-put\">🛠️ Example: Full Update (PUT)</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">PUT /agent/api/ticket/10 HTTP/1.1\nHost: customer.pureservice.com\nContent-Type: application/vnd.api+json\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n{\n  \"tickets\": [\n    {\n      \"subject\": \"Updated summary\",\n      \"description\": \"Full description here.\"\n      ...\n    }\n  ]\n}\n\n</code></pre>\n<hr>\n<h1 id=\"filtering-sorting-and-paging\">🔎 Filtering, Sorting, and Paging</h1>\n<h2 id=\"🔍-filtering\">🔍 Filtering</h2>\n<p>Use the <code>filter</code> query parameter to filter entities. Supports logical operators (<code>AND</code>, <code>OR</code>) and standard operators.</p>\n<p><strong>Examples:</strong></p>\n<ul>\n<li><p><code>name == \"Closed\"</code></p>\n</li>\n<li><p><code>default == true AND name == \"Open\"</code></p>\n</li>\n<li><p><code>name == \"Closed\" OR (default == true AND name == \"Open\")</code></p>\n</li>\n</ul>\n<p><strong>Supported Operators:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Operator Type</th>\n<th>Syntax</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>🟰 Equals</td>\n<td><code>==</code></td>\n<td><code>status == \"Closed\"</code></td>\n</tr>\n<tr>\n<td>🔼 Greater than</td>\n<td><code>&gt;</code></td>\n<td><code>index &gt; 1</code></td>\n</tr>\n<tr>\n<td>🔽 Less than</td>\n<td><code>&lt;</code></td>\n<td><code>index &lt; 5</code></td>\n</tr>\n<tr>\n<td>🔎 Contains</td>\n<td><code>[Property].Contains([Value])</code></td>\n<td><code>name.Contains(\"Open\")</code></td>\n</tr>\n<tr>\n<td>✔️ Boolean</td>\n<td><code>[Property] == true/false</code></td>\n<td><code>default == true</code></td>\n</tr>\n<tr>\n<td>➕ AND</td>\n<td><code>AND / &amp;&amp;</code></td>\n<td><code>name == \"Open\" AND default == true</code></td>\n</tr>\n<tr>\n<td>➖ OR</td>\n<td>`OR /</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h2 id=\"↕️-sorting\">↕️ Sorting</h2>\n<p>Use the <code>sort</code> query parameter to sort results.</p>\n<ul>\n<li><p>Single field: <code>?sort=fieldName asc</code></p>\n</li>\n<li><p>Multiple fields: <code>?sort=field1 asc,field2 desc</code></p>\n</li>\n<li><p>Default direction is ascending.</p>\n</li>\n</ul>\n<hr>\n<h2 id=\"📄-paging\">📄 Paging</h2>\n<p>Use <code>start</code> and <code>limit</code> query parameters for paging.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /agent/api/status/?start=0&amp;limit=10 HTTP/1.1\nHost: customer.pureservice.com\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n\n</code></pre>\n<hr>\n<h2 id=\"🔗-including-related-entities\">🔗 Including Related Entities</h2>\n<p>Use the <code>include</code> parameter to include related entities.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET /agent/api/status/?include=requesttype,createdBy HTTP/1.1\nHost: customer.pureservice.com\nAccept: application/vnd.api+json\nX-Authorization-Key: YOUR_API_KEY\n\n</code></pre>\n<hr>\n<h1 id=\"static-values\">🔢 Static Values</h1>\n<p>The following enumerated constants are used throughout the Pureservice API:</p>\n<h2 id=\"userrole\">UserRole</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>None</td>\n<td><code>0</code></td>\n</tr>\n<tr>\n<td>PendingActivate</td>\n<td><code>1</code></td>\n</tr>\n<tr>\n<td>LocationPendingActivate</td>\n<td><code>2</code></td>\n</tr>\n<tr>\n<td>Enduser</td>\n<td><code>10</code></td>\n</tr>\n<tr>\n<td>Agent</td>\n<td><code>20</code></td>\n</tr>\n<tr>\n<td>ZoneAdmin</td>\n<td><code>25</code></td>\n</tr>\n<tr>\n<td>Administrator</td>\n<td><code>30</code></td>\n</tr>\n<tr>\n<td>System</td>\n<td><code>50</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"visibility\">Visibility</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Visible</td>\n<td><code>0</code></td>\n</tr>\n<tr>\n<td>VisibleSilent</td>\n<td><code>1</code></td>\n</tr>\n<tr>\n<td>NotVisible</td>\n<td><code>2</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"phonenumbertype\">PhonenumberType</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Home</td>\n<td><code>0</code></td>\n</tr>\n<tr>\n<td>Cellphone</td>\n<td><code>1</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"announcementtype\">AnnouncementType</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Information</td>\n<td><code>0</code></td>\n</tr>\n<tr>\n<td>Warning</td>\n<td><code>1</code></td>\n</tr>\n<tr>\n<td>Critical</td>\n<td><code>2</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h1 id=\"zone-security-if-applicable\">🏷️ Zone Security (If Applicable)</h1>\n<p>If your Pureservice instance uses <strong>zone-security features</strong>, note:</p>\n<ul>\n<li><p>🏷️ Entities with a <code>department</code> or <code>assignedDepartment</code> property must have a non-null value.</p>\n</li>\n<li><p>🏷️ Entities restricted by a zone must be explicitly assigned to a zone.</p>\n</li>\n<li><p>🏷️ The property is called <code>department</code> in the API for backward compatibility, but is displayed as <code>zone</code> in the UI.</p>\n</li>\n<li><p>❗ Missing or invalid zone fields result in a <code>400 Bad Request</code>.</p>\n</li>\n</ul>\n<hr>\n<h1 id=\"validation-errors\">❗ Validation Errors</h1>\n<p>Validation errors are returned as an array of error objects under the <code>errors</code> property.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">HTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n  \"errors\": [{\n    \"message\": \"SomeFieldOne : SomeFieldOne is required.\"\n  }]\n}\n\n</code></pre>\n<hr>\n<p>For further details or assistance, <a href=\"https://support.pureservice.com\">contact our support</a> or send us an email at <a href=\"mailto:support@pureservice.com\">support@pureservice.com</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"📚 Table of Contents","slug":"table-of-contents"},{"content":"✅ Return Codes","slug":"return-codes"},{"content":"🌐 Base URL","slug":"base-url"},{"content":"📝 Content Negotiation","slug":"content-negotiation"},{"content":"🔐 Authentication","slug":"authentication"},{"content":"🚦 Limits and Throttling","slug":"limits-and-throttling"},{"content":"🗂️ Entity Operations","slug":"entity-operations"},{"content":"🔎 Filtering, Sorting, and Paging","slug":"filtering-sorting-and-paging"},{"content":"🔢 Static Values","slug":"static-values"},{"content":"🏷️ Zone Security (If Applicable)","slug":"zone-security-if-applicable"},{"content":"❗ Validation Errors","slug":"validation-errors"}],"owner":"398215","collectionId":"e111b3a3-68a2-aba8-0c4a-f8a0225d7019","publishedId":"2SJVwo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-11-06T14:12:51.000Z"},"item":[{"name":"Count","item":[{"name":"Tickets - Count resolved/closed","id":"a511b95f-f9e2-4054-b96e-730bc1bd6c4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?filter=status.coreStatus >= CoreStatus.Resolved","urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"status.coreStatus >= CoreStatus.Resolved"}],"variable":[]}},"response":[],"_postman_id":"a511b95f-f9e2-4054-b96e-730bc1bd6c4a"},{"name":"Users - Count having at least agent role","id":"bceee7b5-3aa6-4100-9ca6-50187ab809c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/user/count/?filter=role == UserRole.Agent || role == UserRole.Administrator","urlObject":{"protocol":"https","path":["agent","api","user","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"role == UserRole.Agent || role == UserRole.Administrator"}],"variable":[]}},"response":[],"_postman_id":"bceee7b5-3aa6-4100-9ca6-50187ab809c9"}],"id":"988886ae-afc3-4e13-a58c-00729340a92b","_postman_id":"988886ae-afc3-4e13-a58c-00729340a92b","description":""},{"name":"Count with grouping (Reporting)","item":[{"name":"Change - Group by Category Level 2, Year","id":"781db6b2-8536-4d74-9214-fb5fcf9abf14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/change/count/?groupBy=category2.name,created.Year&filter=status.coreStatus >= CoreStatus.Resolved","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","change","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"category2.name,created.Year"},{"key":"filter","value":"status.coreStatus >= CoreStatus.Resolved"}],"variable":[]}},"response":[],"_postman_id":"781db6b2-8536-4d74-9214-fb5fcf9abf14"},{"name":"Tickets - Group by Team","id":"dac0b510-449b-4d9d-ac28-9c0d8f826e1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=assignedTeam.name&filter=status.coreStatus >= CoreStatus.Resolved","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"assignedTeam.name"},{"key":"filter","value":"status.coreStatus >= CoreStatus.Resolved"}],"variable":[]}},"response":[],"_postman_id":"dac0b510-449b-4d9d-ac28-9c0d8f826e1a"},{"name":"Tickets - Group by Year, Month, Team","id":"9cef00af-3104-43c7-a0e2-3b92a01a3656","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=created.Year,created.Month,assignedTeam.name&filter=status.coreStatus >= CoreStatus.Resolved","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"created.Year,created.Month,assignedTeam.name"},{"key":"filter","value":"status.coreStatus >= CoreStatus.Resolved"}],"variable":[]}},"response":[],"_postman_id":"9cef00af-3104-43c7-a0e2-3b92a01a3656"},{"name":"Tickets - Group by Category Level 1, Year","id":"86ca6bb2-9fb9-408f-a220-aeffe23e701a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=category1.name,created.Year&filter=status.coreStatus >= CoreStatus.Resolved","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"category1.name,created.Year"},{"key":"filter","value":"status.coreStatus >= CoreStatus.Resolved"}],"variable":[]}},"response":[],"_postman_id":"86ca6bb2-9fb9-408f-a220-aeffe23e701a"},{"name":"Tickets - Group by Year, Assigned Agent","id":"58daf68e-baa5-463c-a43a-e79398341f73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=created.Year,assignedAgent.fullName&filter=status.coreStatus >= CoreStatus.Resolved","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"created.Year,assignedAgent.fullName"},{"key":"filter","value":"status.coreStatus >= CoreStatus.Resolved"}],"variable":[]}},"response":[],"_postman_id":"58daf68e-baa5-463c-a43a-e79398341f73"},{"name":"Tickets - Group by Enduser Country","id":"965cba24-1698-48e2-a922-e025d0d595db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=user.address.country,created.year,created.month&filter=status.coreStatus >= CoreStatus.Resolved","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"user.address.country,created.year,created.month"},{"key":"filter","value":"status.coreStatus >= CoreStatus.Resolved"}],"variable":[]}},"response":[],"_postman_id":"965cba24-1698-48e2-a922-e025d0d595db"},{"name":"Tickets - Group by Source, Year","id":"f14f39d5-0dde-467c-b88f-035ac5c1d467","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=source.name,created.year&filter=status.coreStatus >= CoreStatus.Resolved","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"source.name,created.year"},{"key":"filter","value":"status.coreStatus >= CoreStatus.Resolved"}],"variable":[]}},"response":[],"_postman_id":"f14f39d5-0dde-467c-b88f-035ac5c1d467"},{"name":"Tickets - Group by Ticket type, Category level 3 - With SLA and RequestNumber","id":"f5c31e2b-83f4-49ea-95b4-e079a1ff20c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=tickettype.name,category3.name&select=requestNumber,serviceTargetRelationships[breached,timeUsed,serviceTarget.name]&filter=serviceTargetRelationships.Any() %26%26 created.Year == 2021","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"tickettype.name,category3.name"},{"key":"select","value":"requestNumber,serviceTargetRelationships[breached,timeUsed,serviceTarget.name]"},{"key":"filter","value":"serviceTargetRelationships.Any() && created.Year == 2021"}],"variable":[]}},"response":[],"_postman_id":"f5c31e2b-83f4-49ea-95b4-e079a1ff20c6"},{"name":"Tickets - Group by Assigned Team - Select Average diff hours","id":"90056394-6d9e-4683-8192-640506f61f14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=assignedTeam.name&select=average-diff-hours(created,resolved)&filter=created.Year == 2020","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"assignedTeam.name"},{"key":"select","value":"average-diff-hours(created,resolved)"},{"key":"filter","value":"created.Year == 2020"}],"variable":[]}},"response":[],"_postman_id":"90056394-6d9e-4683-8192-640506f61f14"},{"name":"Tickets - Group by Assigned Agent- Select Average diff days","id":"d02bb654-4d00-42a8-990d-816115292d10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=assignedAgent.fullName&select=average-diff-days(created,resolved)&filter=created.Year == 2020","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"assignedAgent.fullName"},{"key":"select","value":"average-diff-days(created,resolved)"},{"key":"filter","value":"created.Year == 2020"}],"variable":[]}},"response":[],"_postman_id":"d02bb654-4d00-42a8-990d-816115292d10"},{"name":"Tickets - Group by Assigned Agent- Select Average diff minutes","id":"0215d633-fab4-498b-bb75-3448caeeec99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?groupBy=assignedAgent.fullName&select=average-diff-minutes(created,resolved)&filter=created.Year == 2021","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","id":"4aa68e8a-9585-4805-a65d-096f937693b4","name":"Count with grouping (Reporting)","type":"folder"}},"urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"groupBy","value":"assignedAgent.fullName"},{"key":"select","value":"average-diff-minutes(created,resolved)"},{"key":"filter","value":"created.Year == 2021"}],"variable":[]}},"response":[],"_postman_id":"0215d633-fab4-498b-bb75-3448caeeec99"}],"id":"4aa68e8a-9585-4805-a65d-096f937693b4","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"ac77f836-585e-41c6-842d-017ceaecd40c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c9900fd5-cdb2-4393-9d56-198a6140ec1f","type":"text/javascript","exec":[""]}}],"_postman_id":"4aa68e8a-9585-4805-a65d-096f937693b4","description":""},{"name":"Patch","item":[{"name":"Ticket - Update subject and description (with return)","event":[{"listen":"prerequest","script":{"id":"c8691667-571f-4bed-abe4-378829c58dcc","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"7c7abe8f-7e12-4622-be1b-ddd6805ef626","exec":[""],"type":"text/javascript"}}],"id":"9ab1442d-6ed4-4077-b4d4-158092aa0321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Accept","value":"application/vnd.api+json"},{"key":"Content-Type","value":"application/json"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"subject\": \"Updated subject\",\r\n    \"description\": \"Updated description\"\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/{{ticketId}}","urlObject":{"protocol":"https","path":["agent","api","ticket","{{ticketId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ab1442d-6ed4-4077-b4d4-158092aa0321"},{"name":"Ticket - Update subject and description (without return)","event":[{"listen":"prerequest","script":{"id":"effb745f-dec4-4a5f-a0d2-fea0b548ca79","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"7cb9257e-0f53-416d-b403-9f2df1f6fcbb","exec":[""],"type":"text/javascript"}}],"id":"3be9dc64-cb17-4198-aa44-494d63306eb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"default"}],"body":{"mode":"raw","raw":"{\r\n    \"subject\": \"Updated subject\",\r\n    \"description\": \"Updated description\"\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/{{ticketId}}","urlObject":{"protocol":"https","path":["agent","api","ticket","{{ticketId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3be9dc64-cb17-4198-aa44-494d63306eb1"}],"id":"c7e747a1-8a0a-48c2-973e-8b8b3c8ccca4","_postman_id":"c7e747a1-8a0a-48c2-973e-8b8b3c8ccca4","description":""},{"name":"Announcement","item":[{"name":"Announcement - List all active announcements","id":"30f7b6a1-cf99-47a6-aa46-f8df04f71a81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Accept","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/announcement/?filter=activeFrom == [beforenow] %26%26 activeTo == [afternow]","urlObject":{"protocol":"https","path":["agent","api","announcement",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"activeFrom == [beforenow] %26%26 activeTo == [afternow]"}],"variable":[]}},"response":[],"_postman_id":"30f7b6a1-cf99-47a6-aa46-f8df04f71a81"},{"name":"Announcement - List all active announcements of critical type","id":"5089f331-97be-4523-9155-b0e378299a2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Accept","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/announcement/?filter=activeFrom == [beforenow] %26%26 activeTo == [afternow] %26%26 announcementType == AnnouncementType.Critical","urlObject":{"protocol":"https","path":["agent","api","announcement",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"activeFrom == [beforenow] %26%26 activeTo == [afternow] %26%26 announcementType == AnnouncementType.Critical"}],"variable":[]}},"response":[],"_postman_id":"5089f331-97be-4523-9155-b0e378299a2b"},{"name":"Announcement - List all active announcements for a specific department/zone","id":"ecbccaa0-804e-4589-a043-edcfb65e3778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Accept","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/announcement/?filter=activeFrom == [beforenow] %26%26 activeTo == [afternow] %26%26 departmentId == 1","urlObject":{"protocol":"https","path":["agent","api","announcement",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"activeFrom == [beforenow] %26%26 activeTo == [afternow] %26%26 departmentId == 1"}],"variable":[]}},"response":[],"_postman_id":"ecbccaa0-804e-4589-a043-edcfb65e3778"},{"name":"Announcement - Create new","id":"8316a365-fded-40ee-8d05-a1eb36aa0180","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/vnd.api+json","type":"text"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"announcements\": [\r\n        {\r\n            \"subject\": \"Summary\",\r\n            \"description\": \"Description\",\r\n            \"announcementType\": 1,\r\n            \"activeFrom\": \"2025-01-01T00:00:00.000Z\",\r\n            \"activeTo\": \"2025-01-02T12:00:00.000Z\",\r\n            \"departmentId\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{tenant.pureservice.com}}/agent/api/announcement/","urlObject":{"protocol":"https","path":["agent","api","announcement",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8316a365-fded-40ee-8d05-a1eb36aa0180"},{"name":"Announcement - Update","id":"a4a4dbba-db9d-4bac-850e-374b2af09449","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/vnd.api+json","type":"text"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"announcements\": [\r\n        {\r\n            \"id\": \"1\",\r\n            \"subject\": \"Updated summary\",\r\n            \"description\": \"Updated description\",\r\n            \"announcementType\": 1,\r\n            \"activeFrom\": \"2025-01-01T00:00:00.000Z\",\r\n            \"activeTo\": \"2025-01-02T12:00:00.000Z\",\r\n            \"departmentId\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{tenant.pureservice.com}}/agent/api/announcement/1","urlObject":{"protocol":"https","path":["agent","api","announcement","1"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4a4dbba-db9d-4bac-850e-374b2af09449"}],"id":"f4c19043-dd6d-49b6-a69f-f8f846442800","_postman_id":"f4c19043-dd6d-49b6-a69f-f8f846442800","description":""},{"name":"Asset","item":[{"name":"Asset","event":[{"listen":"test","script":{"id":"86825ea2-6831-4dfe-8c70-8f184dfd590d","exec":[""],"type":"text/javascript"}}],"id":"7aa374ad-f21a-4be8-ae44-9ac63eecfdf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/asset/{{assetId}}","urlObject":{"protocol":"https","path":["agent","api","asset","{{assetId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7aa374ad-f21a-4be8-ae44-9ac63eecfdf7"},{"name":"Assets - Search with query","event":[{"listen":"test","script":{"id":"e6db8f3e-e17c-4f91-8905-42d86311bb63","exec":["if(pm.response.to.have.status(200)) {\r","    //const ticket = pm.response.json().tickets[0];\r","    pm.environment.set(\"assetId\", pm.response.json().assets[0].id);\r","}"],"type":"text/javascript"}}],"id":"6bb430f0-ab6b-487d-bda1-01fc2ae7a8dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/asset/search?query=IT&limit=5","urlObject":{"protocol":"https","path":["agent","api","asset","search"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"query","value":"IT"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"6bb430f0-ab6b-487d-bda1-01fc2ae7a8dc"},{"name":"Asset types - List asset types detailed information","event":[{"listen":"test","script":{"id":"9384603b-dbfc-4866-b3b4-9904b0db6c81","exec":[""],"type":"text/javascript"}}],"id":"6d8b3f76-aec4-4d3e-a8e7-336c091f9f7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/assettype/","urlObject":{"protocol":"https","path":["agent","api","assettype",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6d8b3f76-aec4-4d3e-a8e7-336c091f9f7d"},{"name":"Asset type - List asset type with fields and statuses","event":[{"listen":"test","script":{"id":"9384603b-dbfc-4866-b3b4-9904b0db6c81","exec":[""],"type":"text/javascript"}}],"id":"a1177794-61f5-4964-ac21-8e478be7890f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/assettype/{{assetTypeId}}?include=fields,statuses","urlObject":{"protocol":"https","path":["agent","api","assettype","{{assetTypeId}}"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"fields,statuses"}],"variable":[]}},"response":[],"_postman_id":"a1177794-61f5-4964-ac21-8e478be7890f"},{"name":"Asset - Create new","event":[{"listen":"test","script":{"id":"952f18ba-5c0d-4b77-992d-776b236b15f8","exec":[""],"type":"text/javascript"}}],"id":"20ceefe7-b155-4663-9719-6ef0d41c5574","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"{{assetType_uniqueClassName}}\": [\r\n        {\r\n            \"assets_UDF_95_Model\": \"UHD S2722QC\",\r\n            \"assets_UDF_95_Serial_32_number\": \"0b9d814f-4f75-4005-b398-f37605e5c5e9\",\r\n            \"assets_UDF_95_Purchase_32_date\": \"2021-08-31T22:00:00.000Z\",\r\n            \"assets_UDF_95_VendorItemId\": 4,\r\n            \"assets_UDF_95_Warranty_32_expiration\": null,\r\n            \"assets_UDF_95_Size_32__40_inches_41_\": 27,\r\n            \"assets_UDF_95_OwnerUserId\": \"21\",\r\n            \"links\": {\r\n                \"type\": {\r\n                    \"id\": {{assetTypeId}}\r\n                },\r\n                \"status\": {\r\n                    \"id\": {{assetStatusId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{tenant.pureservice.com}}/agent/api/asset/{{assetType_uniqueClassName}}","description":"<p>Replace {{assetType_uniqueClassName}} by selecting the appropriate \"UniqueClassName\" for the desired asset type by querying the asset type endpoint. ({{url}}/assettype/)</p>\n<p>Build the JSON body by querying the asset type endpoint for one particular type and include fields and/or statuses. Property names can be extracted from links.assettypefields.propertyName. ({{url}}/assettype/{{assetTypeId}}?include=fields,statuses). </p>\n<ul>\n<li>Links.type.id must be set to the asset type id </li>\n<li>Links.status.id must be one of the available statuses for the type.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["agent","api","asset","{{assetType_uniqueClassName}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"20ceefe7-b155-4663-9719-6ef0d41c5574"},{"name":"Asset - Update","event":[{"listen":"test","script":{"id":"945a4862-56e8-4bda-9bf2-48c2ef947a4b","exec":[""],"type":"text/javascript"}}],"id":"1dbe76a8-d713-4924-bc3e-2d81ba108777","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"{{assetType_uniqueClassName}}\": [\r\n        {\r\n            \"id\": {{assetId}},\r\n            \"assets_UDF_95_Model\": \"UHD S2722QC\",\r\n            \"assets_UDF_95_Serial_32_number\": \"27162127-513b-4e5d-bbe1-20f47b445a27\",\r\n            \"assets_UDF_95_Purchase_32_date\": \"2021-08-31T22:00:00.000Z\",\r\n            \"assets_UDF_95_VendorItemId\": 4,\r\n            \"assets_UDF_95_Warranty_32_expiration\": null,\r\n            \"assets_UDF_95_Size_32__40_inches_41_\": 27,\r\n            \"assets_UDF_95_OwnerUserId\": \"21\",\r\n            \"links\": {\r\n                \"type\": {\r\n                    \"id\": {{assetTypeId}}\r\n                },\r\n                \"status\": {\r\n                    \"id\": {{assetStatusId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{tenant.pureservice.com}}/agent/api/asset/{{assetId}}","description":"<p>Replace {{assetType_uniqueClassName}} by selecting the appropriate \"UniqueClassName\" for the desired asset type by querying the asset type endpoint. ({{url}}/assettype/)</p>\n<p>Build the JSON body by querying the asset type endpoint for one particular type and include fields and/or statuses. Property names can be extracted from links.assettypefields.propertyName. ({{url}}/assettype/{{assetTypeId}}?include=fields,statuses). </p>\n<ul>\n<li>Links.type.id must be set to the asset type id </li>\n<li>Links.status.id must be one of the available statuses for the type.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["agent","api","asset","{{assetId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1dbe76a8-d713-4924-bc3e-2d81ba108777"}],"id":"cab02a95-272a-4836-9f7c-5c9da2b736c5","_postman_id":"cab02a95-272a-4836-9f7c-5c9da2b736c5","description":""},{"name":"Attachment","item":[{"name":"Attachment - Create new (ticket) (version > 3.23140)","id":"8dfb7978-20d7-47b2-9e11-5d7a94414f5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=----some-boundary-value","type":"text"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"------some-boundary-value\r\nContent-Disposition: form-data; name=\"file\"; filename=\"some-file.txt\"\r\nContent-Type: text/plain\r\n\r\nsome file content\r\n------some-boundary-value--"},"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/{{ticketId}}/?relatedType=Ticket&isVisible=true","urlObject":{"protocol":"https","path":["agent","api","attachment","{{ticketId}}",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"relatedType","value":"Ticket"},{"key":"isVisible","value":"true"}],"variable":[]}},"response":[],"_postman_id":"8dfb7978-20d7-47b2-9e11-5d7a94414f5b"},{"name":"Attachment - Create new (ticket) (version < 3.23140)","id":"b05f3cf3-af9d-4763-8d91-1b85f585e2ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=----some-boundary-value","type":"text"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"------some-boundary-value\r\nContent-Disposition: form-data; name=\"file\"; filename=\"some-file.txt\"\r\nContent-Type: text/plain\r\n\r\nsome file content\r\n------some-boundary-value--"},"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/?relatedId={{ticketId}}&relatedType=Ticket&isVisible=true","urlObject":{"protocol":"https","path":["agent","api","attachment",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"relatedId","value":"{{ticketId}}"},{"key":"relatedType","value":"Ticket"},{"key":"isVisible","value":"true"}],"variable":[]}},"response":[],"_postman_id":"b05f3cf3-af9d-4763-8d91-1b85f585e2ed"},{"name":"Attachment - Create new (change) (version > 3.23140)","id":"cee9acc3-53ed-4fc5-a201-82349b7a23af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=----some-boundary-value","type":"text"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"------some-boundary-value\r\nContent-Disposition: form-data; name=\"file\"; filename=\"some-file.txt\"\r\nContent-Type: text/plain\r\n\r\nsome file content\r\n------some-boundary-value--"},"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/{{changeId}}/?relatedType=Change&isVisible=true","urlObject":{"protocol":"https","path":["agent","api","attachment","{{changeId}}",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"relatedType","value":"Change"},{"key":"isVisible","value":"true"}],"variable":[]}},"response":[],"_postman_id":"cee9acc3-53ed-4fc5-a201-82349b7a23af"},{"name":"Attachment - Create new (asset) (version > 3.23140)","id":"44919700-fd71-4a08-861f-ed739f741aee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=----some-boundary-value","type":"text"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"------some-boundary-value\r\nContent-Disposition: form-data; name=\"file\"; filename=\"some-file.txt\"\r\nContent-Type: text/plain\r\n\r\nsome file content\r\n------some-boundary-value--"},"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/{{assetId}}/?relatedType=Asset&isVisible=true","urlObject":{"protocol":"https","path":["agent","api","attachment","{{assetId}}",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"relatedType","value":"Asset"},{"key":"isVisible","value":"true"}],"variable":[]}},"response":[],"_postman_id":"44919700-fd71-4a08-861f-ed739f741aee"},{"name":"Attachment","id":"7c08d84a-b3f1-412c-9d8c-f80efe27cb27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Content-Type","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/{{attachmentId}}","urlObject":{"protocol":"https","path":["agent","api","attachment","{{attachmentId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c08d84a-b3f1-412c-9d8c-f80efe27cb27"},{"name":"Attachment - Download","id":"c04918a9-ac08-4ddb-acbc-fd92dd6b365a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Content-Type","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/download/{{attachmentId}}","urlObject":{"protocol":"https","path":["agent","api","attachment","download","{{attachmentId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c04918a9-ac08-4ddb-acbc-fd92dd6b365a"},{"name":"Attachment - Get thumbnail","id":"9cfa3c64-51c7-4c4b-b454-e016ca586bc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Content-Type","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/thumbnail/{{attachment.contentId}}","urlObject":{"protocol":"https","path":["agent","api","attachment","thumbnail","{{attachment.contentId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9cfa3c64-51c7-4c4b-b454-e016ca586bc5"},{"name":"Attachment - List all for ticket","id":"503ffff7-7b85-4cb8-aa0a-e47982a6678d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Content-Type","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/?filter=ticketId == {{ticketId}}","urlObject":{"protocol":"https","path":["agent","api","attachment",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"ticketId == {{ticketId}}"}],"variable":[]}},"response":[],"_postman_id":"503ffff7-7b85-4cb8-aa0a-e47982a6678d"},{"name":"Attachment - List all for change","id":"71789c2b-25a5-4b35-9b59-8ab5ec16809a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Content-Type","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/?filter=changeId == {{changeId}}","urlObject":{"protocol":"https","path":["agent","api","attachment",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"changeId == {{changeId}}"}],"variable":[]}},"response":[],"_postman_id":"71789c2b-25a5-4b35-9b59-8ab5ec16809a"},{"name":"Attachment - List all for asset","id":"1e1e081d-c820-4f45-a0e8-39dace060890","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Content-Type","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/?filter=assetId == {{assetId}}","urlObject":{"protocol":"https","path":["agent","api","attachment",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"assetId == {{assetId}}"}],"variable":[]}},"response":[],"_postman_id":"1e1e081d-c820-4f45-a0e8-39dace060890"},{"name":"Attachment - With content (bytes)","id":"a4414e24-315f-438a-a353-f9b0887892b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"},{"key":"Content-Type","value":"application/vnd.api+json","type":"text"}],"url":"https://{{tenant.pureservice.com}}/agent/api/attachment/{{attachmentId}}/?include=content","urlObject":{"protocol":"https","path":["agent","api","attachment","{{attachmentId}}",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"content"}],"variable":[]}},"response":[],"_postman_id":"a4414e24-315f-438a-a353-f9b0887892b7"}],"id":"db1fd09c-68a5-4aa8-901c-f4727606b2dd","_postman_id":"db1fd09c-68a5-4aa8-901c-f4727606b2dd","description":""},{"name":"Category","item":[{"name":"Categories - List active ticket categories","id":"5e3c4888-3dea-4672-8433-621df7152a65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/category/?filter=disabled == false %26%26 requestType.Key == \"Ticket\"","urlObject":{"protocol":"https","path":["agent","api","category",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false && requestType.Key == \"Ticket\""}],"variable":[]}},"response":[],"_postman_id":"5e3c4888-3dea-4672-8433-621df7152a65"},{"name":"Categories - List active change categories","id":"044c6d25-09dd-44b6-9f3e-5ecb9dd3141d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/category/?filter=disabled == false %26%26 requestType.Key == \"Change\"","urlObject":{"protocol":"https","path":["agent","api","category",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false && requestType.Key == \"Change\""}],"variable":[]}},"response":[],"_postman_id":"044c6d25-09dd-44b6-9f3e-5ecb9dd3141d"},{"name":"Categories - List child categories for a specific level 1 category","id":"9c6c48a1-b2c7-4c07-bcc2-c458c8d419be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/category/?filter=parentCategoryId == 1","urlObject":{"protocol":"https","path":["agent","api","category",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"parentCategoryId == 1"}],"variable":[]}},"response":[],"_postman_id":"9c6c48a1-b2c7-4c07-bcc2-c458c8d419be"}],"id":"4922c0a9-9f6a-4da9-bef4-b62a5e18186c","_postman_id":"4922c0a9-9f6a-4da9-bef4-b62a5e18186c","description":""},{"name":"Communication (Messages, Internal notes..)","item":[{"name":"Communications - List for a specific ticket","id":"a15172d3-2200-4660-a72e-6c8e89b28ce9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/communication/?filter=ticketId == {{ticketId}}&limit=10","urlObject":{"protocol":"https","path":["agent","api","communication",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"ticketId == {{ticketId}}"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"a15172d3-2200-4660-a72e-6c8e89b28ce9"},{"name":"Communications - List with type and ticket source filter, include ticket","id":"a592d58f-16ff-47f2-93ab-835defb9d1d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/communication/?sort=modified DESC&filter=(type == CommunicationType.Note || type == CommunicationType.Message) %26%26 ticket.sourceId == 1&include=ticket&limit=5","urlObject":{"protocol":"https","path":["agent","api","communication",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"sort","value":"modified DESC"},{"key":"filter","value":"(type == CommunicationType.Note || type == CommunicationType.Message) %26%26 ticket.sourceId == 1"},{"key":"include","value":"ticket"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"a592d58f-16ff-47f2-93ab-835defb9d1d6"},{"name":"Communication - Create internal note","id":"7574d262-83dd-4c73-8075-27668fc7bbe5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"communications\": [\n        {\n            \"text\": \"Example internal note text\",\n            \"type\": 1,\n            \"direction\": 3,\n            \"links\": {\n                \"ticket\":{\n                    \"id\": {{ticketId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/communication/","urlObject":{"protocol":"https","path":["agent","api","communication",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7574d262-83dd-4c73-8075-27668fc7bbe5"},{"name":"Communication - Create internal note (change)","id":"a24acd4f-2e4d-4e98-a038-bc10c69e0335","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"communications\": [\n        {\n            \"text\": \"Example internal note text\",\n            \"type\": 1,\n            \"direction\": 3,\n            \"links\": {\n                \"change\":{\n                    \"id\": {{changeId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/communication/","urlObject":{"protocol":"https","path":["agent","api","communication",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a24acd4f-2e4d-4e98-a038-bc10c69e0335"},{"name":"Communication - Create inbound message with attachment","id":"23487252-1200-4ed8-bf07-2e3799a77dd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"communications\": [\n        {\n            \"type\": 2,\n            \"direction\": 1,\n            \"subject\": \"Sample\",\n            \"text\": \"Description\",\n            \"links\": {\n                \"attachments\": [\n                    {\n                        \"temporaryId\": \"attachment-1\"\n                    }\n                ],\n                \"ticket\": {\n                    \"id\": {{ticketId}}\n                }\n            }\n        }\n    ],\n    \"linked\": {\n        \"attachments\": [\n            {\n                \"bytes\": \"aGVsbG8gd29ybGQh\",\n                \"fileName\": \"sample.txt\",\n                \"name\": \"sample.txt\",\n                \"size\": \"12.0 bytes\",\n                \"temporaryId\": \"attachment-1\"\n            }\n        ]\n    }\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/communication/?include=sender,attachments","urlObject":{"protocol":"https","path":["agent","api","communication",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"sender,attachments"}],"variable":[]}},"response":[],"_postman_id":"23487252-1200-4ed8-bf07-2e3799a77dd2"},{"name":"Communication - Create outbound message with user recipient","id":"e1d88757-65ea-4554-a5bc-8a498e2d0594","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"communications\": [\n        {\n            \"type\": 2,\n            \"direction\": 2,\n            \"subject\": \"Sample\",\n            \"text\": \"Description\",\n            \"links\": {\n                \"ticket\": {\n                    \"id\": {{ticketId}}\n                },\n                \"recipients\": [\n                    {\n                        \"temporaryId\": \"recipient-1\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"linked\": {\n        \"communicationrecipients\": [\n            {\n                \"userId\": {{userId}},\n                \"temporaryId\": \"recipient-1\"\n            }\n        ]\n    }\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/communication/","urlObject":{"protocol":"https","path":["agent","api","communication",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1d88757-65ea-4554-a5bc-8a498e2d0594"},{"name":"Communication - Create outbound message with email recipient","id":"8f6f535f-3d32-49e0-b86a-822652aa80e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"communications\": [\n        {\n            \"type\": 2,\n            \"direction\": 2,\n            \"subject\": \"Sample\",\n            \"text\": \"Description\",\n            \"links\": {\n                \"ticket\": {\n                    \"id\": {{ticketId}}\n                },\n                \"recipients\": [\n                    {\n                        \"temporaryId\": \"recipient-1\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"linked\": {\n        \"communicationrecipients\": [\n            {\n                \"email\": \"recipient@pureservice.local\",\n                \"temporaryId\": \"recipient-1\"\n            }\n        ]\n    }\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/communication/","urlObject":{"protocol":"https","path":["agent","api","communication",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f6f535f-3d32-49e0-b86a-822652aa80e9"},{"name":"Communication - Create inbound message with custom communication type","id":"9413e633-fe2f-4943-8380-a9fbbaae08d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"communications\": [\n        {\n            \"text\": \"Text from external system\",\n            \"type\": 90,\n            \"direction\": 1,\n            \"customTypeId\": {{customTypeId}},\n            \"links\": {\n                \"ticket\":{\n                    \"id\": {{ticketId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/communication/","urlObject":{"protocol":"https","path":["agent","api","communication",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9413e633-fe2f-4943-8380-a9fbbaae08d6"}],"id":"0ec46d26-6be2-43d9-8107-ac42db08dcc8","description":"<h4 id=\"static-values-for-type\">Static values for Type</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    Note = 1,\n    Message = 2,\n    Sms = 3,\n    Solution = 4,\n    PreviousSolution = 5,\n    History = 6,\n    InitialMessage = 7,\n    TaskHistory = 8,\n    Timeloghistory = 9,\n    ServicetargetHistory = 10,\n    AttachmentHistory = 11,\n    RiskHistory = 12,\n    RollbackPlanHistory = 13,\n    TransferComment = 14,\n    Custom = 90\n}\n\n</code></pre>\n<h1 id=\"static-values-for-direction\">Static values for Direction</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    Inbound = 1,\n    Outbound = 2,\n    None = 3\n}\n\n</code></pre>\n","_postman_id":"0ec46d26-6be2-43d9-8107-ac42db08dcc8"},{"name":"Company","item":[{"name":"Create new company","item":[{"name":"Step 1 - Create new phonenumber (optional)","event":[{"listen":"test","script":{"id":"75a102e1-0707-4ac5-a880-28e3d4c6bbec","exec":["if(pm.response.to.have.status(201)) {\r","    const phonenumber = pm.response.json().phonenumbers[0];\r","    pm.environment.set(\"phonenumberId\", phonenumber.id);\r","}"],"type":"text/javascript"}}],"id":"e6f15454-909a-4c3a-8d31-d430f60aa3e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"phonenumbers\": [\r\n        {\r\n            \"number\": \"+47 11223344\",\r\n            \"type\": 1\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/phonenumber/","urlObject":{"protocol":"https","path":["agent","api","phonenumber",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6f15454-909a-4c3a-8d31-d430f60aa3e6"},{"name":"Step 2 - Create new email address (optional)","event":[{"listen":"test","script":{"id":"6a894ab0-1bd1-4238-a9cd-a42ceb453ec6","exec":["if(pm.response.to.have.status(201)) {\r","    const emailAddress = pm.response.json().emailaddresses[0];\r","    pm.environment.set(\"emailAddressId\", emailAddress.id);\r","}"],"type":"text/javascript"}}],"id":"78202401-df98-454a-a89c-05db42c81fab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"emailaddresses\": [\r\n        {\r\n            \"email\": \"companyemail@company.local\"\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/companyemailaddress/","urlObject":{"protocol":"https","path":["agent","api","companyemailaddress",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"78202401-df98-454a-a89c-05db42c81fab"},{"name":"Step 3 - Create new company","id":"5cdcd104-b0b7-49bc-8e38-df0c539db265","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"companies\": [\r\n        {\r\n            \"name\": \"Company Org.\",\r\n            \"organizationNumber\": \"1111 2222 3333\",\r\n            \"companyNumber\": \"1234\",\r\n            \"disabled\": false,\r\n            \"links\": {\r\n                \"phonenumber\": {\r\n                    \"id\": {{phonernumberId}}\r\n                },\r\n                \"emailAddress\": {\r\n                    \"id\": {{companyEmailaddressId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/company/","urlObject":{"protocol":"https","path":["agent","api","company",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cdcd104-b0b7-49bc-8e38-df0c539db265"}],"id":"eef89ea4-65b9-4447-a04e-1c64bab8b09f","_postman_id":"eef89ea4-65b9-4447-a04e-1c64bab8b09f","description":""},{"name":"Company","id":"93d95a97-bc11-4ccc-854a-fa67c92b2d57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/company/{{companyId}}","urlObject":{"protocol":"https","path":["agent","api","company","{{companyId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"93d95a97-bc11-4ccc-854a-fa67c92b2d57"},{"name":"Companies - List all active","id":"460aaa25-61ee-40da-a2fd-8125faf5cdd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/company/?filter=disabled == false&sort=name ASC&start=0&limit=10","urlObject":{"protocol":"https","path":["agent","api","company",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false"},{"key":"sort","value":"name ASC"},{"key":"start","value":"0"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"460aaa25-61ee-40da-a2fd-8125faf5cdd9"},{"name":"Companies - List by company number","id":"73df43bd-51cd-47ad-b3a3-887fc6f1aedc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/company/?filter=companyNumber == \"1234\"","urlObject":{"protocol":"https","path":["agent","api","company",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"companyNumber == \"1234\""}],"variable":[]}},"response":[],"_postman_id":"73df43bd-51cd-47ad-b3a3-887fc6f1aedc"},{"name":"Companies - Get single with emailaddress and phonenumber","id":"906c3a54-57c2-44ba-8500-e6e65cf5e9f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/company/{{companyId}}?include=phonenumber,emailAddress","urlObject":{"protocol":"https","path":["agent","api","company","{{companyId}}"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"phonenumber,emailAddress"}],"variable":[]}},"response":[],"_postman_id":"906c3a54-57c2-44ba-8500-e6e65cf5e9f5"}],"id":"5879479b-982b-4a40-971e-d8a7706546f7","_postman_id":"5879479b-982b-4a40-971e-d8a7706546f7","description":""},{"name":"Change","item":[{"name":"Change","id":"173ce06a-8564-4cae-b691-3637ad8106d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/change/{{changeId}}","urlObject":{"protocol":"https","path":["agent","api","change","{{changeId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"173ce06a-8564-4cae-b691-3637ad8106d7"},{"name":"Change - Get by change number","id":"428c07b3-f7f3-4e02-8465-6874a0d4ad1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/change/{{requestNumber}}/requestNumber/","urlObject":{"protocol":"https","path":["agent","api","change","{{requestNumber}}","requestNumber",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"428c07b3-f7f3-4e02-8465-6874a0d4ad1e"},{"name":"Changes - List all in CoreStatus \"New\" and \"Planning\"","event":[{"listen":"test","script":{"id":"2d920ffe-d595-48e2-8f6f-ae3adb16e6dd","exec":[""],"type":"text/javascript","packages":{}}}],"id":"699aa017-1c35-42c8-988d-715c4dedd434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/change?filter=(status.coreStatus == CoreStatus.ChangeNew || status.coreStatus == CoreStatus.ChangePlanning)&sort=created DESC&start=0&limit=5","urlObject":{"protocol":"https","path":["agent","api","change"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"(status.coreStatus == CoreStatus.ChangeNew || status.coreStatus == CoreStatus.ChangePlanning)"},{"key":"sort","value":"created DESC"},{"key":"start","value":"0"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"699aa017-1c35-42c8-988d-715c4dedd434"},{"name":"Change - Create new","id":"261703b9-b87b-4361-824b-3c21c5ee44fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"changes\": [\r\n        {\r\n            \"subject\": \"This is the subject/summary of the change\",\r\n            \"description\": \"This is the description of the change\",\r\n            \"note\": \"This is the notes on the change\",\r\n            \"rollbackPlan\": \"This is the rollback plan of the change\",\r\n            \"plannedStart\": \"2020-02-13T07:00:00.000Z\",\r\n            \"plannedEnd\": \"2020-03-20T07:00:00.000Z\",\r\n            \"links\": {\r\n                \"requestType\": {\r\n                    \"id\": \"2\"\r\n                },\r\n                \"source\": {\r\n                    \"id\": {{changeSourceId}}\r\n                },\r\n                \"status\": {\r\n                    \"id\": {{changeStatusId}}\r\n                },\r\n                \"requester\": {\r\n                    \"id\": {{userId}}\r\n                },\r\n                \"coordinator\": {\r\n                    \"id\": {{changeCoordinatorId}}\r\n                },\r\n                \"urgency\": {\r\n                    \"id\": {{changeUrgencyId}}\r\n                },\r\n                \"impact\": {\r\n                    \"id\": {{changeImpactId}}\r\n                },\r\n                \"type\": {\r\n                    \"id\": {{changeTypeId}}\r\n                },\r\n                \"category1\": {\r\n                    \"id\": {{changeCategory1Id}}\r\n                },\r\n                \"category2\": {\r\n                    \"id\": {{changeCategory2Id}}\r\n                },\r\n                \"category3\": {\r\n                    \"id\": {{changeCategory3Id}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/change/","urlObject":{"protocol":"https","path":["agent","api","change",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"261703b9-b87b-4361-824b-3c21c5ee44fe"},{"name":"Change - Create new (with zone)","id":"994311ac-9997-4b9b-8b25-4a40375a3cfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"changes\": [\r\n        {\r\n            \"subject\": \"This is the subject/summary of the change\",\r\n            \"description\": \"This is the description of the change\",\r\n            \"note\": \"This is the notes on the change\",\r\n            \"rollbackPlan\": \"This is the rollback plan of the change\",\r\n            \"plannedStart\": \"2020-02-13T07:00:00.000Z\",\r\n            \"plannedEnd\": \"2020-03-20T07:00:00.000Z\",\r\n            \"links\": {\r\n                \"source\": {\r\n                    \"id\": {{changeSourceId}}\r\n                },\r\n                \"status\": {\r\n                    \"id\": {{changeStatusId}}\r\n                },\r\n                \"requester\": {\r\n                    \"id\": {{userId}}\r\n                },\r\n                \"coordinator\": {\r\n                    \"id\": {{changeCoordinatorId}}\r\n                },\r\n                \"urgency\": {\r\n                    \"id\": {{changeUrgencyId}}\r\n                },\r\n                \"impact\": {\r\n                    \"id\": {{changeImpactId}}\r\n                },\r\n                \"type\": {\r\n                    \"id\": {{changeTypeId}}\r\n                },\r\n                \"category1\": {\r\n                    \"id\": {{changeCategory1Id}}\r\n                },\r\n                \"category2\": {\r\n                    \"id\": {{changeCategory2Id}}\r\n                },\r\n                \"category3\": {\r\n                    \"id\": {{changeCategory3Id}}\r\n                },\r\n                \"assignedDepartment\": {\r\n                    \"id\": {{changeDepartmentZoneId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/change/","urlObject":{"protocol":"https","path":["agent","api","change",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"994311ac-9997-4b9b-8b25-4a40375a3cfa"}],"id":"643ad7a2-6b6c-45e1-9330-dd6f7164dca6","_postman_id":"643ad7a2-6b6c-45e1-9330-dd6f7164dca6","description":""},{"name":"Faq","item":[{"name":"Faq","id":"f522b5b1-b078-43ca-bb72-9be7a6caeff5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/faq/{{faqId}}","urlObject":{"protocol":"https","path":["agent","api","faq","{{faqId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f522b5b1-b078-43ca-bb72-9be7a6caeff5"},{"name":"Faq - Create new","id":"e9ba2915-272e-42b4-9170-b624d0c314ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n  \"faqs\": [\n    {\n      \"title\": \"Faq title\",\n      \"text\": \"Faq text\",\n      \"views\": 0,\n      \"upVotes\": 0,\n      \"downVotes\": 0,\n      \"status\": 0\n    }\n  ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/faq/","urlObject":{"protocol":"https","path":["agent","api","faq",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9ba2915-272e-42b4-9170-b624d0c314ef"}],"id":"7ed26ffd-70d6-4c1f-8b8e-ea0c26e33178","description":"<h4 id=\"static-valued-for-faqstatus\">Static valued for FaqStatus</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    NotPublished = 0,\n    PublishedToSelfservice = 1,\n    PublishedToPureservice = 2,\n    PublishedToBoth = 3\n}\n\n</code></pre>\n","_postman_id":"7ed26ffd-70d6-4c1f-8b8e-ea0c26e33178"},{"name":"Notification","item":[{"name":"Notifications - List all unread for user","id":"f78c9ac2-4c02-407b-babd-5df5a3295581","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/notification/?filter=read == false %26%26 receiverId == {{userId}}&limit=5","urlObject":{"protocol":"https","path":["agent","api","notification",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"read == false %26%26 receiverId == {{userId}}"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"f78c9ac2-4c02-407b-babd-5df5a3295581"},{"name":"Notifications - Count total unread","id":"b73e856e-56a6-4e0d-b6a6-219bd90e8544","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/notification/count/?filter=read == false","urlObject":{"protocol":"https","path":["agent","api","notification","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"read == false"}],"variable":[]}},"response":[],"_postman_id":"b73e856e-56a6-4e0d-b6a6-219bd90e8544"}],"id":"6913de49-d5b7-4546-9322-e263ca4680ee","_postman_id":"6913de49-d5b7-4546-9322-e263ca4680ee","description":""},{"name":"Priority","item":[{"name":"Prioritiy","id":"8933a661-cc51-4ef8-8239-cb237ed7cca7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/priority/{{priorityId}}","urlObject":{"protocol":"https","path":["agent","api","priority","{{priorityId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8933a661-cc51-4ef8-8239-cb237ed7cca7"},{"name":"Priorities - List all active","id":"8afd0aae-8aff-44d3-8ed6-a6829217ee33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/priority/?filter=disabled == false","urlObject":{"protocol":"https","path":["agent","api","priority",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false"}],"variable":[]}},"response":[],"_postman_id":"8afd0aae-8aff-44d3-8ed6-a6829217ee33"},{"name":"Priorities - List all ticket priorities","id":"5a7144b0-5b88-45c1-a6b1-7b5662d90e9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/priority/?filter=requestType.Key == \"Ticket\"","urlObject":{"protocol":"https","path":["agent","api","priority",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"requestType.Key == \"Ticket\""}],"variable":[]}},"response":[],"_postman_id":"5a7144b0-5b88-45c1-a6b1-7b5662d90e9f"},{"name":"Priorities - List all change priorities","id":"4cb16808-1648-411b-a19f-576f71335104","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/priority/?filter=requestType.Key == \"Change\"","urlObject":{"protocol":"https","path":["agent","api","priority",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"requestType.Key == \"Change\""}],"variable":[]}},"response":[],"_postman_id":"4cb16808-1648-411b-a19f-576f71335104"}],"id":"d59fa019-94f0-4cc1-8a27-7856b1e8981b","_postman_id":"d59fa019-94f0-4cc1-8a27-7856b1e8981b","description":""},{"name":"Relationship","item":[{"name":"Relationships - List relationships to asset","event":[{"listen":"test","script":{"id":"b407980c-a783-455b-b877-aba252db895f","exec":[""],"type":"text/javascript"}}],"id":"dd45c315-9e3a-4dba-ad69-66918ea0a194","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/relationship/{{assetId}}/fromAsset?include=type,type.relationshipTypeGroup,toAsset,toTicket,toTicket.assignedAgent,toChange,toChange.coordinator,toUser,toCompany&filter=(toAssetId != NULL %26%26 !toAsset.Type.Disabled) || toTicketId != NULL || toChangeId != NULL || toCompanyId != NULL || toUserId != NULL","urlObject":{"protocol":"https","path":["agent","api","relationship","{{assetId}}","fromAsset"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"type,type.relationshipTypeGroup,toAsset,toTicket,toTicket.assignedAgent,toChange,toChange.coordinator,toUser,toCompany"},{"key":"filter","value":"(toAssetId != NULL && !toAsset.Type.Disabled) || toTicketId != NULL || toChangeId != NULL || toCompanyId != NULL || toUserId != NULL"}],"variable":[]}},"response":[],"_postman_id":"dd45c315-9e3a-4dba-ad69-66918ea0a194"},{"name":"Relationship - Relate two tickets with a solving relationship","id":"ffcea122-2451-4422-b289-9673a685f3b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/vnd.api+json","type":"text"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"relationships\": [\r\n        {\r\n            \"main\": \"ToTicketId\",\r\n            \"inverseMain\": \"FromTicketId\",\r\n            \"solvingRelationship\": true,\r\n            \"links\": {\r\n                \"type\": {\r\n                    \"id\": {{relationshipTypeId}}\r\n                },\r\n                \"toTicket\": {\r\n                    \"id\": {{toTicketId}}\r\n                },\r\n                \"fromTicket\": {\r\n                    \"id\": {{fromTicketId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{tenant.pureservice.com}}/agent/api/relationship/","urlObject":{"protocol":"https","path":["agent","api","relationship",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ffcea122-2451-4422-b289-9673a685f3b3"},{"name":"Relationship - Relate two tickets with a regular relationship","id":"664977ad-2aba-41f0-8cfe-1aa0a0f95aaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/vnd.api+json","type":"text"},{"key":"X-Authorization-Key","value":"{{apikey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"relationships\": [\r\n        {\r\n            \"main\": \"ToTicketId\",\r\n            \"inverseMain\": \"FromTicketId\",\r\n            \"links\": {\r\n                \"type\": {\r\n                    \"id\": {{relationshipTypeId}}\r\n                },\r\n                \"toTicket\": {\r\n                    \"id\": {{toTicketId}}\r\n                },\r\n                \"fromTicket\": {\r\n                    \"id\": {{fromTicketId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{tenant.pureservice.com}}/agent/api/relationship/","urlObject":{"protocol":"https","path":["agent","api","relationship",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"664977ad-2aba-41f0-8cfe-1aa0a0f95aaa"},{"name":"Relationship - Relate an asset and a ticket","id":"9d6480a4-1ae3-4482-a565-618c21e377ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"relationships\": [\n        {\n            \"main\": \"ToAssetId\",\n            \"inverseMain\": \"FromAssetId\",\n            \"links\": {\n                \"type\": {\n                    \"id\": {{relationshipTypeId}}\n                },\n                \"toAsset\": {\n                    \"id\": {{toAssetId}}\n                },\n                \"fromTicket\": {\n                    \"id\": {{fromTicketId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/relationship/","urlObject":{"protocol":"https","path":["agent","api","relationship",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d6480a4-1ae3-4482-a565-618c21e377ad"}],"id":"1b7f92b6-b178-4620-9998-2b15e9209f27","_postman_id":"1b7f92b6-b178-4620-9998-2b15e9209f27","description":""},{"name":"Search","item":[{"name":"Index search - Basic example","id":"4e262c52-d26b-43cd-ab85-54f7fd84511e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"}],"url":"https://{{tenant.pureservice.com}}/agent/api/search/?query=reset user password&start=0&limit=10","urlObject":{"protocol":"https","path":["agent","api","search",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"query","value":"reset user password"},{"key":"start","value":"0"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"4e262c52-d26b-43cd-ab85-54f7fd84511e"},{"name":"Index search - Filter on users","id":"884d7944-d552-4700-ae02-0cc9d84c30d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"}],"url":"https://{{tenant.pureservice.com}}/agent/api/search/?query=example@pureservice.local&start=0&limit=10&filter=Type=User","urlObject":{"protocol":"https","path":["agent","api","search",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"query","value":"example@pureservice.local"},{"key":"start","value":"0"},{"key":"limit","value":"10"},{"key":"filter","value":"Type=User"}],"variable":[]}},"response":[],"_postman_id":"884d7944-d552-4700-ae02-0cc9d84c30d6"},{"name":"Index search - Filter on tickets","id":"04d83aa3-2ed2-43bb-b00b-9edd78afd62f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"}],"url":"https://{{tenant.pureservice.com}}/agent/api/search/?query=application problem&start=0&limit=10&filter=Type=Ticket","urlObject":{"protocol":"https","path":["agent","api","search",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"query","value":"application problem"},{"key":"start","value":"0"},{"key":"limit","value":"10"},{"key":"filter","value":"Type=Ticket"}],"variable":[]}},"response":[],"_postman_id":"04d83aa3-2ed2-43bb-b00b-9edd78afd62f"},{"name":"Search - Enabled users","id":"3b7d195c-1964-446e-b7be-84c60b68cf18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"}],"url":"https://{{tenant.pureservice.com}}/agent/api/search/enabled/users?query=oscar","urlObject":{"protocol":"https","path":["agent","api","search","enabled","users"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"query","value":"oscar"}],"variable":[]}},"response":[],"_postman_id":"3b7d195c-1964-446e-b7be-84c60b68cf18"},{"name":"Search - All users","id":"1f5d95cf-6e83-4bd2-9e66-19c05932ab85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"}],"url":"https://{{tenant.pureservice.com}}/agent/api/search/all/users?query=oscar","urlObject":{"protocol":"https","path":["agent","api","search","all","users"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"query","value":"oscar"}],"variable":[]}},"response":[],"_postman_id":"1f5d95cf-6e83-4bd2-9e66-19c05932ab85"},{"name":"Search - Enabled companies","id":"e5c788a6-3088-4e27-a1bb-0ee6880ce6ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"}],"url":"https://{{tenant.pureservice.com}}/agent/api/search/enabled/companies?query=Pureservice AS","urlObject":{"protocol":"https","path":["agent","api","search","enabled","companies"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"query","value":"Pureservice AS"}],"variable":[]}},"response":[],"_postman_id":"e5c788a6-3088-4e27-a1bb-0ee6880ce6ea"},{"name":"Search - All companies","id":"d2a47976-daa8-424b-8ff9-1598f56a9ff9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"}],"url":"https://{{tenant.pureservice.com}}/agent/api/search/all/companies?query=Pureservice AS","urlObject":{"protocol":"https","path":["agent","api","search","all","companies"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"query","value":"Pureservice AS"}],"variable":[]}},"response":[],"_postman_id":"d2a47976-daa8-424b-8ff9-1598f56a9ff9"},{"name":"Search - Enabled users (include email)","id":"9b1d6a97-aa1f-4c6e-9531-b6b2b1952766","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"}],"url":"https://{{tenant.pureservice.com}}/agent/api/search/enabled/users?query=oscar&include=emailAddresses","urlObject":{"protocol":"https","path":["agent","api","search","enabled","users"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"query","value":"oscar"},{"key":"include","value":"emailAddresses"}],"variable":[]}},"response":[],"_postman_id":"9b1d6a97-aa1f-4c6e-9531-b6b2b1952766"}],"id":"97862db2-e0db-4de4-a0d9-b87ce226ed88","_postman_id":"97862db2-e0db-4de4-a0d9-b87ce226ed88","description":""},{"name":"Source","item":[{"name":"Source","id":"d32181b3-d7ab-46db-939c-afbb43144d24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/source/{{sourceId}}","urlObject":{"protocol":"https","path":["agent","api","source","{{sourceId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d32181b3-d7ab-46db-939c-afbb43144d24"},{"name":"Sources - List all active","id":"d720e8cc-a598-46d9-b33d-e3ea5699686b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/source/?filter=disabled == false","urlObject":{"protocol":"https","path":["agent","api","source",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false"}],"variable":[]}},"response":[],"_postman_id":"d720e8cc-a598-46d9-b33d-e3ea5699686b"},{"name":"Sources - List all ticket sources","id":"162b343e-5fef-463a-880b-a07a716e85ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/source/?filter=requestType.Key == \"Ticket\"","urlObject":{"protocol":"https","path":["agent","api","source",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"requestType.Key == \"Ticket\""}],"variable":[]}},"response":[],"_postman_id":"162b343e-5fef-463a-880b-a07a716e85ef"},{"name":"Sources - List all change sources","id":"ed69acdb-b4aa-42b9-a875-9b0064b7fb46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/source/?filter=requestType.Key == \"Change\"","urlObject":{"protocol":"https","path":["agent","api","source",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"requestType.Key == \"Change\""}],"variable":[]}},"response":[],"_postman_id":"ed69acdb-b4aa-42b9-a875-9b0064b7fb46"}],"id":"8e3e6797-8aab-4319-b69e-733ed759d6a9","_postman_id":"8e3e6797-8aab-4319-b69e-733ed759d6a9","description":""},{"name":"Status","item":[{"name":"Status","id":"ad61a6aa-3173-4bb0-95dd-03b3dbe8f3eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/status/{{statusId}}","description":"<p>Status with API KEY</p>\n","urlObject":{"protocol":"https","path":["agent","api","status","{{statusId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad61a6aa-3173-4bb0-95dd-03b3dbe8f3eb"},{"name":"Status - With Include","id":"0d069883-3615-4420-a354-24e97db37122","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/status/{{statusId}}/?include=requestType","urlObject":{"protocol":"https","path":["agent","api","status","{{statusId}}",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"requestType"}],"variable":[]}},"response":[],"_postman_id":"0d069883-3615-4420-a354-24e97db37122"},{"name":"Statuses","id":"397f866f-cac5-4828-ab7c-47d84a635115","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/status/?limit=10","urlObject":{"protocol":"https","path":["agent","api","status",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"397f866f-cac5-4828-ab7c-47d84a635115"},{"name":"Statuses - Ids filter","id":"28381c09-7449-4513-9721-54e0691cbb9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/status?ids=1,2","urlObject":{"protocol":"https","path":["agent","api","status"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"ids","value":"1,2"}],"variable":[]}},"response":[],"_postman_id":"28381c09-7449-4513-9721-54e0691cbb9c"},{"name":"Statuses - Filter default statuses","id":"8e5030f3-3874-45e3-b933-70357437a7a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/status?filter=default&limit=10","urlObject":{"protocol":"https","path":["agent","api","status"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"default"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"8e5030f3-3874-45e3-b933-70357437a7a4"},{"name":"Statuses - Filter advanced","id":"50a35b54-b61c-4808-8d99-f88ca58d73d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/status?filter=default %26%26 name.contains(\"Clo\")&limit=10","urlObject":{"protocol":"https","path":["agent","api","status"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"default && name.contains(\"Clo\")"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"50a35b54-b61c-4808-8d99-f88ca58d73d0"},{"name":"Statuses - Filter advanced nested with include","id":"ecd007c8-65c4-478f-8280-0c6c60488d2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/status/?filter=default == true %26%26 name == \"Closed\"&include=requestType&limit=10","urlObject":{"protocol":"https","path":["agent","api","status",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"default == true && name == \"Closed\""},{"key":"include","value":"requestType"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"ecd007c8-65c4-478f-8280-0c6c60488d2b"},{"name":"Statuses - Filter advanced nested with includes","id":"bb1ce8c5-5f0e-4947-96c9-820ccf66c74c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/status/?filter=default == true %26%26 name == \"Closed\"&include=requestType,createdBy,createdBy.emailAddress&limit=10","urlObject":{"protocol":"https","path":["agent","api","status",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"default == true && name == \"Closed\""},{"key":"include","value":"requestType,createdBy,createdBy.emailAddress"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"bb1ce8c5-5f0e-4947-96c9-820ccf66c74c"},{"name":"Statuses - Filter advanced nested","id":"341755bf-0f96-4d55-9b65-e11251946d41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/status?filter=(default == true %26%26 name.contains(\"Clo\")) || name == \"In Progress\" || coreStatus == CoreStatus..New&limit=10","urlObject":{"protocol":"https","path":["agent","api","status"],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"(default == true && name.contains(\"Clo\")) || name == \"In Progress\" || coreStatus == CoreStatus..New"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"341755bf-0f96-4d55-9b65-e11251946d41"}],"id":"5889127b-f69b-4426-b9a8-9b2544e2b377","description":"<h4 id=\"static-values-for-corestatus\">Static values for CoreStatus</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    // Ticket\n    New = 10,\n    Assigned = 20,\n    Open = 30,\n    Pending = 40,\n    PendingCustomer = 42,\n    Resolved = 50,\n    Closed = 60,\n    \n    // Change\n    ChangeNew = 110,\n    ChangePlanning = 120,\n    ChangeImplementation = 130,\n    ChangeImplemented = 140,\n    ChangeClosed = 150\n}\n\n</code></pre>\n","_postman_id":"5889127b-f69b-4426-b9a8-9b2544e2b377"},{"name":"Task","item":[{"name":"Task","id":"d0868404-ce29-49df-b4ba-8a89c318dfc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/task/{{taskId}}","urlObject":{"protocol":"https","path":["agent","api","task","{{taskId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0868404-ce29-49df-b4ba-8a89c318dfc3"},{"name":"Tasks - List all assigned a given agent","id":"19ad0b62-fa6f-4cc1-b7ef-ec90badf60ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/task/?filter=assignedAgentId == {{userId}} %26%26 status == TaskStatus.New","urlObject":{"protocol":"https","path":["agent","api","task",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"assignedAgentId == {{userId}} && status == TaskStatus.New"}],"variable":[]}},"response":[],"_postman_id":"19ad0b62-fa6f-4cc1-b7ef-ec90badf60ce"},{"name":"Tasks - List all related to a given ticket","id":"96f37ade-2b53-43e0-a858-2b591bea4bd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/task/?filter=ticketId == {{ticketId}}&limit=10","urlObject":{"protocol":"https","path":["agent","api","task",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"ticketId == {{ticketId}}"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"96f37ade-2b53-43e0-a858-2b591bea4bd8"},{"name":"Task - Create new","id":"a28fb1a1-4851-449c-ab74-67a9ec59299a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tasks\": [\n        {\n            \"summary\": \"This task needs a summary\",\n            \"details\": \"More details here.\",\n            \"status\": 0,\n            \"completeBy\": \"2023-10-14T08:00:00.000Z\",\n            \"completed\": null,\n            \n            \"links\": {\n                \"assignedAgent\": null,\n                \"assignedTeam\": null,\n                \"ticket\": {\n                    \"id\": {{ticketId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/task/","urlObject":{"protocol":"https","path":["agent","api","task",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a28fb1a1-4851-449c-ab74-67a9ec59299a"},{"name":"Task - Create new task in TaskGroup","id":"55375c69-2f82-45bc-890a-10905e0761cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tasks\": [\n        {\n            \"summary\": \"This task needs a summary\",\n            \"details\": \"More details here.\",\n            \"status\": 0,\n            \"index\": 0,\n            \"completeBy\": \"2023-10-14T08:00:00.000Z\",\n            \"completed\": null,\n            \n            \"links\": {\n                \"assignedAgent\": null,\n                \"assignedTeam\": null,\n                \"ticket\": {\n                    \"id\": {{ticketId}}\n                },\n                \"group\": {\n                    \"id\": {{taskGroupId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/task/","urlObject":{"protocol":"https","path":["agent","api","task",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"55375c69-2f82-45bc-890a-10905e0761cb"},{"name":"Task - Set task as completed","id":"07cc1b19-2b66-44cf-9a9d-94d2208ebd75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tasks\": [\n        {\n            \"id\": {{taskId}},\n            \"summary\": \"This task needs a summary\",\n            \"details\": \"More details here.\",\n            \"status\": 1,\n            \"completeBy\": \"2023-10-14T08:00:00.000Z\",\n            \"completed\": \"2022-10-15T08:00:00.000Z\",\n            \"links\": {\n                \"assignedAgent\": null,\n                \"assignedTeam\": null,\n                \"ticket\": {\n                    \"id\": {{ticketId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/task/{{taskId}}","urlObject":{"protocol":"https","path":["agent","api","task","{{taskId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"07cc1b19-2b66-44cf-9a9d-94d2208ebd75"}],"id":"ac7dab09-da28-403a-b51e-17b2e712f811","description":"<h4 id=\"static-values-for-taskstatus\">Static values for TaskStatus</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    // Task\n    New = 0,\n    InProgress = 2,\n    NotCompletable = 3,\n    Completed = 1,\n    \n    // Approval\n    PendingApproval = 4,\n    Blocked = 5,\n    Approved = 6,\n    Rejected = 7,\n}\n\n</code></pre>\n","_postman_id":"ac7dab09-da28-403a-b51e-17b2e712f811"},{"name":"TaskGroup","item":[{"name":"TaskGroup - GetAll","id":"586860a3-d376-487f-8ea8-7cedae184c8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/taskgroup/","urlObject":{"protocol":"https","path":["agent","api","taskgroup",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"586860a3-d376-487f-8ea8-7cedae184c8b"},{"name":"TaskGroup - Get by Id","id":"08194352-5239-4187-82b2-dd71d12a7fa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/taskgroup/{{taskId}}","urlObject":{"protocol":"https","path":["agent","api","taskgroup","{{taskId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"08194352-5239-4187-82b2-dd71d12a7fa6"},{"name":"TaskGroup - Create","id":"00b0b754-5031-41a3-ade6-fbe8ad4dfcad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"taskgroups\": [\r\n        {\r\n            \"name\": \"Sekvensgruppe #1\",\r\n            \"index\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{tenant.pureservice.com}}/agent/api/taskgroup/","urlObject":{"protocol":"https","path":["agent","api","taskgroup",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"00b0b754-5031-41a3-ade6-fbe8ad4dfcad"}],"id":"c1e49ed3-f108-4de2-bf46-41bff347d846","_postman_id":"c1e49ed3-f108-4de2-bf46-41bff347d846","description":""},{"name":"Ticket","item":[{"name":"Chained request - Get a ticket and update the subject","item":[{"name":"Step 1 - Get a ticket","event":[{"listen":"test","script":{"id":"9f026076-2f48-46a1-ae2d-435d20c3dec3","exec":[""],"type":"text/javascript"}}],"id":"60c0a88f-7f11-4bce-b04b-c7f9cd9a6c8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/{{ticketId}}","urlObject":{"protocol":"https","path":["agent","api","ticket","{{ticketId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"60c0a88f-7f11-4bce-b04b-c7f9cd9a6c8f"},{"name":"Step 2 - Update ticket from step 1","id":"be70d2f5-7682-464b-b8ec-2cc40c0738c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"subject\": \"Subject is changed\"\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/{{ticketId}}","urlObject":{"protocol":"https","path":["agent","api","ticket","{{ticketId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"be70d2f5-7682-464b-b8ec-2cc40c0738c0"}],"id":"450dc902-6d69-4df2-a0d4-e0509ead8c8c","event":[{"listen":"prerequest","script":{"id":"7b555ce0-cf1d-48e1-b69c-366c56e1ff5d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"625964b8-a790-4ed1-8ada-b165688e2a20","type":"text/javascript","exec":[""]}}],"_postman_id":"450dc902-6d69-4df2-a0d4-e0509ead8c8c","description":""},{"name":"Chained request - Create ticket with form","item":[{"name":"Step 1 - Create a ticket form (with data)","id":"878b723b-798c-4602-a3ee-359df20c5294","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"forms\": [\n        {\n            \"links\": {\n                \"definition\": {\n                    \"id\": 1\n                },\n                \"datas\": [\n                    {\n                        \"temporaryId\": \"data-1\",\n                        \"type\": \"formdatas\"\n                    },\n                    {\n                        \"temporaryId\": \"data-2\",\n                        \"type\": \"formdatas\"\n                    },\n                    {\n                        \"temporaryId\": \"data-3\",\n                        \"type\": \"formdatas\"\n                    },\n                    {\n                        \"temporaryId\": \"data-4\",\n                        \"type\": \"formdatas\"\n                    }\n                ],\n                \"restrictedUser\": {\n                    \"id\": {{currentEndUserId}}\n                }\n            }\n        }\n    ],\n    \"linked\": {\n        \"formdatas\": [\n            {\n                \"temporaryId\": \"data-1\",\n                \"links\": {\n                    \"component\": {\n                        \"id\": 1\n                    }\n                },\n                \"value\": \"Text\"\n            },\n            {\n                \"temporaryId\": \"data-2\",\n                \"links\": {\n                    \"component\": {\n                        \"id\": 2\n                    }\n                },\n                \"value\": \"Item 1\"\n            },\n            {\n                \"temporaryId\": \"data-3\",\n                \"links\": {\n                    \"component\": {\n                        \"id\": 3\n                    }\n                },\n                \"value\": \"Yes\"\n            },\n            {\n                \"temporaryId\": \"data-4\",\n                \"links\": {\n                    \"component\": {\n                        \"id\": 4\n                    }\n                },\n                \"value\": \"Value 1\"\n            }\n        ]\n    }\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/form/","urlObject":{"protocol":"https","path":["agent","api","form",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"878b723b-798c-4602-a3ee-359df20c5294"},{"name":"Step 2 - Create a ticket","id":"f5b79ab5-26d6-4721-93b3-2b323a388b30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tickets\": [\n        {\n            \"subject\": \"Creating ticket from API\",\n            \"description\": \"This will be the ticket description. Form value(s) must be added here from the previous step if visibility in Selfservice is required. For example: <strong>Person</strong><br>Charles Wayne<br><br><strong>Location</strong><br>Oslo\",\n            \"links\": {\n                \"requestType\": {\n                    \"id\": \"1\"\n                },\n                \"user\": {\n                    \"id\": {{userId}}\n                },\n                \"ticketType\": {\n                    \"id\": {{ticketTypeId}}\n                },\n                \"priority\": {\n                    \"id\": {{ticketPriorityId}}\n                },\n                \"status\": {\n                    \"id\": {{ticketStatusId}}\n                },\n                \"source\": {\n                    \"id\": {{ticketSourceId}}\n                },\n                \"assignedDepartment\": {\n                    \"id\": {{ticketAssignedDepartmentZoneId}}\n                },\n                \"assignedTeam\": {\n                    \"id\": {{ticketAssignedTeamId}}\n                },\n                \"form\": {\n                    \"id\": {{formId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5b79ab5-26d6-4721-93b3-2b323a388b30"}],"id":"55b76b49-42ce-4ca4-82d7-e8ed30732325","_postman_id":"55b76b49-42ce-4ca4-82d7-e8ed30732325","description":""},{"name":"Ticket","event":[{"listen":"test","script":{"id":"f3ea8dab-4236-487b-b23e-ff452ab0cf44","exec":[""],"type":"text/javascript"}}],"id":"9e8d2103-33d4-459b-ae93-b387e3ae33a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/{{ticketId}}","urlObject":{"protocol":"https","path":["agent","api","ticket","{{ticketId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[{"id":"34625e52-510d-4349-81cc-e7b39d8cb0d6","name":"Ticket","originalRequest":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"{{url}}/ticket/{{ticketId}}"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"Date","value":"Fri, 12 Dec 2025 09:15:12 GMT"},{"key":"Content-Encoding","value":"gzip"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Vary","value":"Accept-Encoding"},{"key":"InstanceId","value":"localhost"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"tickets\": [\n        {\n            \"solution\": null,\n            \"emailAddress\": \"<ticket email address>\",\n            \"reopenedCount\": null,\n            \"responded\": null,\n            \"resolved\": null,\n            \"reopened\": null,\n            \"closed\": null,\n            \"userWaitedSince\": \"<date>\",\n            \"userReminded\": null,\n            \"pendingUserSince\": null,\n            \"isMarkedForDeletion\": false,\n            \"totalTimelogMinutes\": <int>,\n            \"links\": {\n                \"assignedDepartment\": null,\n                \"priority\": null,\n                \"ticketType\": null,\n                \"user\": null,\n                \"assignedTeam\": null,\n                \"assignedAgent\": null,\n                \"respondedBy\": null,\n                \"resolvedBy\": null,\n                \"reopenedBy\": null,\n                \"closedBy\": null,\n                \"form\": null,\n                \"archiveMetaData\": null,\n                \"source\": null,\n                \"status\": null,\n                \"category1\": null,\n                \"category2\": null,\n                \"category3\": null,\n                \"requestType\": null,\n                \"createdBy\": null,\n                \"modifiedBy\": null,\n            },\n            \"assignedDepartmentId\": <int>,\n            \"transferComment\": null,\n            \"priorityId\": <int>,\n            \"ticketTypeId\": <int>,\n            \"userId\": <int>,\n            \"assignedTeamId\": null,\n            \"assignedAgentId\": null,\n            \"respondedById\": null,\n            \"resolvedById\": null,\n            \"reopenedById\": null,\n            \"closedById\": null,\n            \"formId\": null,\n            \"archiveMetaDataId\": null,\n            \"requestNumber\": <int>,\n            \"subject\": \"subject\",\n            \"description\": \"description\",\n            \"customerReference\": null,\n            \"visibility\": 0,\n            \"origin\": 3,\n            \"sourceId\": <int>,\n            \"statusId\": <int>,\n            \"category1Id\": null,\n            \"category2Id\": null,\n            \"category3Id\": null,\n            \"requestTypeId\": <int>,\n            \"cf_1\": null,\n            \"cf_2\": null,\n            \"cf_3\": null,\n            \"cf_4\": null,\n            \"cf_5\": null,\n            \"cf_6\": null,\n            \"cf_7\": null,\n            \"cf_8\": null,\n            \"cf_9\": null,\n            \"id\": <int>,\n            \"created\": \"<date>\",\n            \"modified\": \"<date>\",\n            \"createdById\": <int>,\n            \"modifiedById\": <int>,\n            \"coordinates\": null\n        }\n    ]\n}"}],"_postman_id":"9e8d2103-33d4-459b-ae93-b387e3ae33a4"},{"name":"Ticket - Get by ticket number","id":"839f39f4-5216-4e52-ad33-c6bbe4e2644c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/{{requestNumber}}/requestNumber/","urlObject":{"protocol":"https","path":["agent","api","ticket","{{requestNumber}}","requestNumber",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"839f39f4-5216-4e52-ad33-c6bbe4e2644c"},{"name":"Tickets - Count - Filtered by open corestatus","id":"cf406e2b-c4be-41c6-868c-0a608d48171a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/count/?filter=status.coreStatus == CoreStatus.Open","urlObject":{"protocol":"https","path":["agent","api","ticket","count",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"status.coreStatus == CoreStatus.Open"}],"variable":[]}},"response":[],"_postman_id":"cf406e2b-c4be-41c6-868c-0a608d48171a"},{"name":"Tickets - Multiple by Id","id":"ec7579f8-7a39-41a8-a38c-bdb8a66e2017","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?ids=10,12,18","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"ids","value":"10,12,18"}],"variable":[]}},"response":[],"_postman_id":"ec7579f8-7a39-41a8-a38c-bdb8a66e2017"},{"name":"Tickets - Filtered by Id","id":"3b8f83e6-df9b-4279-9ec9-a0c9dcc8f367","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?filter=id == 1 OR id == 2","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"id == 1 OR id == 2"}],"variable":[]}},"response":[],"_postman_id":"3b8f83e6-df9b-4279-9ec9-a0c9dcc8f367"},{"name":"Tickets - Filtered modified date - Includes Enduser, Assigned Agent, Assigned Team, Assigned Teams Department","id":"fa5109cc-9e56-4c5f-a91e-a16e24378bee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?filter=modified > DateTimeOffset(2020, 1, 1, 0, 0, 0, 000, TimeSpan(0,2,0,0))&include=user,assignedagent,assignedteam,assignedteam.department&limit=5","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"modified > DateTimeOffset(2020, 1, 1, 0, 0, 0, 000, TimeSpan(0,2,0,0))"},{"key":"include","value":"user,assignedagent,assignedteam,assignedteam.department"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"fa5109cc-9e56-4c5f-a91e-a16e24378bee"},{"name":"Tickets - Paged from 10 to 15","id":"759c7965-0f39-4a89-9363-64bed9905c85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?start=10&limit=5","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"start","value":"10"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"759c7965-0f39-4a89-9363-64bed9905c85"},{"name":"Tickets - Paged (10) with attachments","id":"c5f66f3e-b2b3-4088-b80f-ca809bd9905a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?start=0&limit=10&include=attachments","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"start","value":"0"},{"key":"limit","value":"10"},{"key":"include","value":"attachments"}],"variable":[]}},"response":[],"_postman_id":"c5f66f3e-b2b3-4088-b80f-ca809bd9905a"},{"name":"Tickets - Filtered by SLA","id":"416712d6-c1a6-4082-97f2-d2dabf18b457","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?filter=serviceTargetRelationships.Any(isActive) %26%26 serviceTargetRelationships.Any(breached != NULL) %26%26 isMarkedForDeletion == false&include=assignedAgent,user,user.phonenumber,user.emailAddress,user.address,user.company,servicetargetrelationships,fromrelationships&sort=created DESC&start=0&limit=5","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"serviceTargetRelationships.Any(isActive) %26%26 serviceTargetRelationships.Any(breached != NULL) %26%26 isMarkedForDeletion == false"},{"key":"include","value":"assignedAgent,user,user.phonenumber,user.emailAddress,user.address,user.company,servicetargetrelationships,fromrelationships"},{"key":"sort","value":"created DESC"},{"key":"start","value":"0"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"416712d6-c1a6-4082-97f2-d2dabf18b457"},{"name":"Tickets - List all for company","id":"173dc66c-4cad-4bc4-8be8-57d6b5ad851b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?include=user,user.company&filter=isMarkedForDeletion == false %26%26 user.companyId == {{companyId}}&start=0&limit=1&sort=created DESC","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"user,user.company"},{"key":"filter","value":"isMarkedForDeletion == false %26%26 user.companyId == {{companyId}}"},{"key":"start","value":"0"},{"key":"limit","value":"1"},{"key":"sort","value":"created DESC"}],"variable":[]}},"response":[],"_postman_id":"173dc66c-4cad-4bc4-8be8-57d6b5ad851b"},{"name":"Tickets - Filtered by timelogs not billed","id":"7114add8-a5bb-4dce-9e1e-93bb531e10d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?filter=timelogs.Any(billed == null)&include=timelogs&limit=1","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"timelogs.Any(billed == null)"},{"key":"include","value":"timelogs"},{"key":"limit","value":"1"}],"variable":[]}},"response":[],"_postman_id":"7114add8-a5bb-4dce-9e1e-93bb531e10d4"},{"name":"Tickets - Includes (timelogs,fromRelationships,toRelationships)","id":"537be102-3b20-4df5-9ea6-bdfdfc2713d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?include=timelogs,fromRelationships,toRelationships&limit=1&start=5","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"timelogs,fromRelationships,toRelationships"},{"key":"limit","value":"1"},{"key":"start","value":"5"}],"variable":[]}},"response":[],"_postman_id":"537be102-3b20-4df5-9ea6-bdfdfc2713d2"},{"name":"Tickets - Includes (communications,tasks,attachments,serviceTargetRelationships)","id":"6a22549f-e11e-4eb5-9a6f-bf53adedf307","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?include=communications,tasks,attachments,serviceTargetRelationships&limit=1&start=5","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"communications,tasks,attachments,serviceTargetRelationships"},{"key":"limit","value":"1"},{"key":"start","value":"5"}],"variable":[]}},"response":[],"_postman_id":"6a22549f-e11e-4eb5-9a6f-bf53adedf307"},{"name":"Tickets - Includes (priority,status,ticketType,user,user.company)","id":"f44f8f53-5ae6-4e25-9cb2-44299f749347","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?include=priority,status,ticketType,user,user.company&limit=1&start=5","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"priority,status,ticketType,user,user.company"},{"key":"limit","value":"1"},{"key":"start","value":"5"}],"variable":[]}},"response":[],"_postman_id":"f44f8f53-5ae6-4e25-9cb2-44299f749347"},{"name":"Tickets - Includes (assignedTeam,assignedAgent,form,createdBy)","id":"7a85c9b9-c2a4-4535-9d73-f81f63641fc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?include=assignedTeam,assignedAgent,form,createdBy&limit=1&start=5","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"include","value":"assignedTeam,assignedAgent,form,createdBy"},{"key":"limit","value":"1"},{"key":"start","value":"5"}],"variable":[]}},"response":[],"_postman_id":"7a85c9b9-c2a4-4535-9d73-f81f63641fc1"},{"name":"Ticket - Basic","id":"37a676c9-0fa5-447c-ac2c-9e2a3d4c6ab1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tickets\": [\n        {\n            \"subject\": \"This is the subject/summary of the ticket\",\n            \"description\": \"This is the description of the ticket\",\n            \"links\": {\n                \"requestType\": {\n                    \"id\": {{requestTypeId}}\n                },\n                \"user\": {\n                    \"id\": {{userId}}\n                },\n                \"ticketType\": {\n                    \"id\": {{ticketTypeId}}\n                },\n                \"priority\": {\n                    \"id\": {{ticketPriorityId}}\n                },\n                \"status\": {\n                    \"id\": {{ticketStatusId}}\n                },\n                \"source\": {\n                    \"id\": {{ticketSourceId}}\n                },\n                \"assignedDepartment\": {\n                    \"id\": {{ticketAssignedDepartmentZoneId}}\n                },\n                \"assignedTeam\": {\n                    \"id\": {{ticketAssignedTeamId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"37a676c9-0fa5-447c-ac2c-9e2a3d4c6ab1"},{"name":"Ticket - Basic with attachment","id":"90b7a5f6-13ba-4ff1-9653-a64a72bea36a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tickets\": [\n        {\n            \"subject\": \"This is the subject/summary of the ticket\",\n            \"description\": \"This is the description of the ticket\",\n            \"links\": {\n                \"requestType\": {\n                    \"id\": {{requestTypeId}}\n                },\n                \"user\": {\n                    \"id\": {{userId}}\n                },\n                \"ticketType\": {\n                    \"id\": {{ticketTypeId}}\n                },\n                \"priority\": {\n                    \"id\": {{ticketPriorityId}}\n                },\n                \"status\": {\n                    \"id\": {{ticketStatusId}}\n                },\n                \"source\": {\n                    \"id\": {{ticketSourceId}}\n                },\n                \"assignedDepartment\": {\n                    \"id\": {{ticketAssignedDepartmentZoneId}}\n                },\n                \"assignedTeam\": {\n                    \"id\": {{ticketAssignedTeamId}}\n                },\n                \"attachments\": [{\n                    \"temporaryId\": \"attachment-1\",\n                    \"type\": \"attachment\"\n                }]\n            }\n        }\n    ],\n    \"linked\": {\n        \"attachments\": [{\n                \"name\": \"attachment.txt\",\n                \"fileName\": \"attachment.txt\",\n                \"contentLength\": 1234,\n                \"isVisible\": true,\n                \"bytes\": \"base64-formatted-bytes\",\n                \"temporaryId\": \"attachment-1\"\n            }]\n    }\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"90b7a5f6-13ba-4ff1-9653-a64a72bea36a"},{"name":"Ticket - Basic with coordinates","id":"a7280e5f-622b-4a89-8dac-1cd3315a7220","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tickets\": [\n        {\n            \"subject\": \"This is the subject/summary of the ticket\",\n            \"description\": \"This is the description of the ticket\",\n            \"coordinates\": {\n                \"latitude\": 59.93805800000001,\n                \"longitude\": 10.6017261,\n                \"id\": \"ChIJfZXMeTBtQUYRm_WtplPWOI0\" // optional google places id\n            },\n            \"links\": {\n                \"requestType\": {\n                    \"id\": {{requestTypeId}}\n                },\n                \"user\": {\n                    \"id\": {{userId}}\n                },\n                \"ticketType\": {\n                    \"id\": {{ticketTypeId}}\n                },\n                \"priority\": {\n                    \"id\": {{ticketPriorityId}}\n                },\n                \"status\": {\n                    \"id\": {{ticketStatusId}}\n                },\n                \"source\": {\n                    \"id\": {{ticketSourceId}}\n                },\n                \"assignedDepartment\": {\n                    \"id\": {{ticketAssignedDepartmentZoneId}}\n                },\n                \"assignedTeam\": {\n                    \"id\": {{ticketAssignedTeamId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7280e5f-622b-4a89-8dac-1cd3315a7220"},{"name":"Ticket - Extended","id":"aba3e60a-1f75-4ac1-98fe-52b7f79ff624","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tickets\": [\n        {\n            \"subject\": \"This is the subject/summary of the ticket\",\n            \"description\": \"This is the description of the ticket\",\n            \"solution\": null,\n            \"cf_1\": null,\n            \"cf_2\": null,\n            \"cf_3\": null,\n            \"cf_4\": null,\n            \"cf_5\": null,\n            \"cf_6\": null,\n            \"cf_7\": null,\n            \"cf_8\": null,\n            \"cf_9\": null,\n            \"visibility\": 0,\n            \"customerReference\": null,\n            \"coordinates\": null,\n            \"isMarkedForDeletion\": false,\n            \"links\": {\n                \"requestType\": {\n                    \"id\": {{requestTypeId}}\n                },\n                \"user\": {\n                    \"id\": {{userId}}\n                },\n                \"ticketType\": {\n                    \"id\": {{ticketTypeId}}\n                },\n                \"priority\": {\n                    \"id\": {{ticketPriorityId}}\n                },\n                \"status\": {\n                    \"id\": {{ticketStatusId}}\n                },\n                \"source\": {\n                    \"id\": {{ticketSourceId}}\n                },\n                \"assignedDepartment\": {\n                    \"id\": {{ticketAssignedDepartmentZoneId}}\n                },\n                \"assignedTeam\": {\n                    \"id\": {{ticketAssignedTeamId}}\n                },\n                \"assignedAgent\": {\n                    \"id\": {{ticketAssignedAgentId}}\n                },\n                \"form\": {\n                    \"id\": {{formId}}\n                },\n                \"category1\": {\n                    \"id\": {{ticketCategory1Id}}\n                },\n                \"category2\": {\n                    \"id\": {{ticketCategory2Id}}\n                },\n                \"category3\": {\n                    \"id\": {{ticketCategory3Id}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aba3e60a-1f75-4ac1-98fe-52b7f79ff624"},{"name":"Ticket - Basic (missing properties is set to NULL)","id":"5dcd250a-6bfc-4667-a23e-81efea3ee11a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tickets\": [\n        {\n            \"id\": 100,\n            \"subject\": \"This is the subject/summary of the ticket\",\n            \"description\": \"This is the description of the ticket\",\n            \"links\": {\n                \"user\": {\n                    \"id\": {{userId}}\n                },\n                \"ticketType\": {\n                    \"id\": {{ticketTypeId}}\n                },\n                \"priority\": {\n                    \"id\": {{ticketPriorityId}}\n                },\n                \"status\": {\n                    \"id\": {{ticketStatusId}}\n                },\n                \"source\": {\n                    \"id\": {{ticketSourceId}}\n                },\n                \"assignedDepartment\": {\n                    \"id\": {{ticketAssignedDepartmentZoneId}}\n                },\n                \"assignedTeam\": {\n                    \"id\": {{ticketAssignedTeamId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/100","urlObject":{"protocol":"https","path":["agent","api","ticket","100"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5dcd250a-6bfc-4667-a23e-81efea3ee11a"},{"name":"Ticket - Extended","id":"229f7b5e-974e-402b-b012-7fc753c0f780","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"tickets\": [\n        {\n            \"id\": 100,\n            \"requestNumber\": 100,\n            \"subject\": \"This is the subject/summary of the ticket\",\n            \"description\": \"This is the description of the ticket\",\n            \"solution\": null,\n            \"cf_1\": null,\n            \"cf_2\": null,\n            \"cf_3\": null,\n            \"cf_4\": null,\n            \"cf_5\": null,\n            \"cf_6\": null,\n            \"cf_7\": null,\n            \"cf_8\": null,\n            \"cf_9\": null,\n            \"visibility\": 0,\n            \"customerReference\": null,\n            \"coordinates\": null,\n            \"isMarkedForDeletion\": false,\n            \"links\": {\n                \"requestType\": {\n                    \"id\": 1\n                },\n                \"user\": {\n                    \"id\": {{userId}}\n                },\n                \"ticketType\": {\n                    \"id\": {{ticketTypeId}}\n                },\n                \"priority\": {\n                    \"id\": {{ticketPriorityId}}\n                },\n                \"status\": {\n                    \"id\": {{ticketStatusId}}\n                },\n                \"source\": {\n                    \"id\": {{ticketSourceId}}\n                },\n                \"assignedDepartment\": {\n                    \"id\": {{ticketAssignedDepartmentZoneId}}\n                },\n                \"assignedTeam\": {\n                    \"id\": {{ticketAssignedTeamId}}\n                },\n                \"assignedAgent\": {\n                    \"id\": {{ticketAssignedAgentId}}\n                },\n                \"form\": {\n                    \"id\": {{formId}}\n                },\n                \"category1\": {\n                    \"id\": {{ticketCategory1Id}}\n                },\n                \"category2\": {\n                    \"id\": {{ticketCategory2Id}}\n                },\n                \"category3\": {\n                    \"id\": {{ticketCategory3Id}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/100","urlObject":{"protocol":"https","path":["agent","api","ticket","100"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"229f7b5e-974e-402b-b012-7fc753c0f780"}],"id":"75cb09ed-7a39-42ab-80ce-dc40eaf90e45","description":"<h4 id=\"includes\">Includes</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Tasks\nCommunications\nAttachments \nServiceTargetRelationships\nTimelogs\nRecipientsCc\nFromRelationships\nToRelationships \nSubscriptions\nTicketType\nUser (Enduser)\nAssignedDepartment\nAssignedTeam\nAssignedAgent\nRespondedBy\nResolvedBy\nReopenedBy\nClosedBy\nForm (Selfservice form)\nRequestType\nSource\nStatus\nCategory1\nCategory2\nCategory3\n\n</code></pre><h4 id=\"static-values-for-origin\">Static values for Origin</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    Api = 0,\n    Pureservice = 1,\n    Selfservice = 2,\n    Email = 3,\n    SelfserviceLocation = 4\n}\n\n</code></pre>\n<h4 id=\"static-values-for-visibility\">Static values for Visibility</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    Visible = 0,\n    VisibleSilent = 1,\n    NotVisible = 2\n}\n\n</code></pre>\n","_postman_id":"75cb09ed-7a39-42ab-80ce-dc40eaf90e45"},{"name":"Timelog","item":[{"name":"Timelogs - List all for a specific ticket","id":"aaa21261-e186-44ee-ad81-4cf51519d18c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/timelog/?limit=10&filter=ticketId == {{ticketId}}","urlObject":{"protocol":"https","path":["agent","api","timelog",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"limit","value":"10"},{"key":"filter","value":"ticketId == {{ticketId}}"}],"variable":[]}},"response":[],"_postman_id":"aaa21261-e186-44ee-ad81-4cf51519d18c"},{"name":"Timelogs - Filter by completed within one month","id":"a89836b8-b9e2-485a-a995-fc17efa171d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/timelog/?filter=completed == [1month]&limit=10","urlObject":{"protocol":"https","path":["agent","api","timelog",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"completed == [1month]"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"a89836b8-b9e2-485a-a995-fc17efa171d1"},{"name":"Tickets - List tickets having timelogs that are not billed","id":"41bf8b82-e8d5-40c5-9334-571d922be15a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/ticket/?filter=timelogs.Any(billed == null)&include=timelogs&limit=10","urlObject":{"protocol":"https","path":["agent","api","ticket",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"timelogs.Any(billed == null)"},{"key":"include","value":"timelogs"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"41bf8b82-e8d5-40c5-9334-571d922be15a"},{"name":"Timelog - Create new","id":"6e990b83-113e-4dfd-88f8-74c802762d9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\n    \"timelogs\": [\n        {\n            \"summary\": \"Did some work for the client\",\n            \"details\": \"This is what I did\",\n            \"completed\": \"2020-09-14T22:00:00.000Z\",\n            \"billed\": null,\n            \"totalMinutes\": 122,\n            \"links\": {\n                \"ticket\": {\n                    \"id\": {{ticketId}}\n                },\n                \"type\": {\n                    \"id\": \"2\"\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/timelog/","urlObject":{"protocol":"https","path":["agent","api","timelog",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e990b83-113e-4dfd-88f8-74c802762d9a"},{"name":"Timelog - Set billed date","id":"21bb2c0b-5e15-4571-acc5-bbdce6f204de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"timelogs\": [\n        {\n            \"id\": \"1\",\n            \"summary\": \"Test 2\",\n            \"details\": null,\n            \"completed\": \"2019-08-28T22:00:00.000Z\",\n            \"billed\": \"2019-08-28T22:00:00.0000000+00:00\",\n            \"totalMinutes\": 240,\n            \"links\": {\n                \"ticket\": {\n                    \"id\": {{ticketId}}\n                }\n            }\n        }\n    ]\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/timelog/1","urlObject":{"protocol":"https","path":["agent","api","timelog","1"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"21bb2c0b-5e15-4571-acc5-bbdce6f204de"}],"id":"1a86870b-0b40-468d-9d00-f5e3b689c4a0","_postman_id":"1a86870b-0b40-468d-9d00-f5e3b689c4a0","description":""},{"name":"Type","item":[{"name":"Type - List active ticket types","id":"a1f58891-b9e1-48f7-bcb2-c78d125e2b14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/tickettype/?filter=disabled == false","urlObject":{"protocol":"https","path":["agent","api","tickettype",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false"}],"variable":[]}},"response":[],"_postman_id":"a1f58891-b9e1-48f7-bcb2-c78d125e2b14"},{"name":"Type - List active change types","id":"aa1c0c5c-4c26-459b-9602-605e4ffaee72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/changetype/?filter=disabled == false","urlObject":{"protocol":"https","path":["agent","api","changetype",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false"}],"variable":[]}},"response":[],"_postman_id":"aa1c0c5c-4c26-459b-9602-605e4ffaee72"},{"name":"Type - List active asset types","id":"276cb50a-a7a4-474a-bd88-541acb67fe4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/assettype/?filter=disabled == false","urlObject":{"protocol":"https","path":["agent","api","assettype",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false"}],"variable":[]}},"response":[],"_postman_id":"276cb50a-a7a4-474a-bd88-541acb67fe4d"}],"id":"6d3131cc-4ae1-4bb3-b78a-05b403e6ad58","_postman_id":"6d3131cc-4ae1-4bb3-b78a-05b403e6ad58","description":""},{"name":"User","item":[{"name":"Create new User","item":[{"name":"Step 1 - Create new address","event":[{"listen":"test","script":{"id":"7868fd2c-7de2-4b66-a8bf-e33be68bdba0","exec":["if(pm.response.to.have.status(201)) {\r","    const physicaladdress = pm.response.json().physicaladdresses[0];\r","    pm.environment.set(\"physicaladdressId\", physicaladdress.id);\r","}"],"type":"text/javascript"}}],"id":"f8881cfc-a5df-4580-b7f1-0f60bfa3b7d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"physicaladdresses\": [\r\n        {\r\n            \"streetAddress\": \"Magnolia Lawn\",\r\n            \"city\": \"Midland\",\r\n            \"postalCode\": \"1234\",\r\n            \"country\": \"Fictasia\"\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/physicaladdress/","urlObject":{"protocol":"https","path":["agent","api","physicaladdress",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f8881cfc-a5df-4580-b7f1-0f60bfa3b7d6"},{"name":"Step 2 - Create new phonenumber","event":[{"listen":"test","script":{"id":"75a102e1-0707-4ac5-a880-28e3d4c6bbec","exec":["if(pm.response.to.have.status(201)) {\r","    const phonenumber = pm.response.json().phonenumbers[0];\r","    pm.environment.set(\"phonenumberId\", phonenumber.id);\r","}"],"type":"text/javascript"}}],"id":"76f4bac9-8b8a-44d4-ac93-5ea3c2ef5d03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"phonenumbers\": [\r\n        {\r\n            \"number\": \"+47 11223344\",\r\n            \"type\": 1\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/phonenumber/","urlObject":{"protocol":"https","path":["agent","api","phonenumber",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"76f4bac9-8b8a-44d4-ac93-5ea3c2ef5d03"},{"name":"Step 3 - Create new email address","event":[{"listen":"test","script":{"id":"6a894ab0-1bd1-4238-a9cd-a42ceb453ec6","exec":["if(pm.response.to.have.status(201)) {\r","    const emailAddress = pm.response.json().emailaddresses[0];\r","    pm.environment.set(\"emailAddressId\", emailAddress.id);\r","}"],"type":"text/javascript"}}],"id":"90efa1b2-5e73-4ce0-93c8-3a527b713b37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"emailaddresses\": [\r\n        {\r\n            \"email\": \"useremail@company.local\"\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/emailaddress/","urlObject":{"protocol":"https","path":["agent","api","emailaddress",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"90efa1b2-5e73-4ce0-93c8-3a527b713b37"},{"name":"Step 4 - Create new user","id":"410fd100-fc74-47ba-8a46-a28611842e64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"users\": [\r\n        {\r\n            \"firstName\": \"Joanne\",\r\n            \"middleName\": \"R.\",\r\n            \"lastName\": \"Staples\",\r\n            \"unavailable\": false,\r\n            \"title\": null,\r\n            \"department\": null,\r\n            \"location\": null,\r\n            \"notes\": null,\r\n            \"role\": 10,\r\n            \"disabled\": false,\r\n            \"isSuperuser\": false,\r\n            \"importUniqueKey\": null,\r\n            \"links\": {\r\n                \"address\": {\r\n                    \"id\": {{physicaladdressId}}\r\n                },\r\n                \"emailAddress\": {\r\n                    \"id\": {{emailAddressId}}\r\n                },\r\n                \"phonenumber\": {\r\n                    \"id\": {{phonenumberId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/user/","urlObject":{"protocol":"https","path":["agent","api","user",""],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"410fd100-fc74-47ba-8a46-a28611842e64"}],"id":"549d6296-9e97-4b93-94c8-4c2953b3a1ad","_postman_id":"549d6296-9e97-4b93-94c8-4c2953b3a1ad","description":""},{"name":"Users - Members of a specific team id","id":"35a94a2a-c050-4e13-b100-a84f71174141","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/user/?filter=memberships.any(id == 2)&limit=10","urlObject":{"protocol":"https","path":["agent","api","user",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"memberships.any(id == 2)"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"35a94a2a-c050-4e13-b100-a84f71174141"},{"name":"Users - List agents and administrators","id":"2a0b3baa-4f32-4d6c-86ae-fbcca1ca5582","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/user/?filter=disabled == false %26%26 (role == UserRole.Agent || role == UserRole.Administrator)&sort=firstName,lastName&limit=10","urlObject":{"protocol":"https","path":["agent","api","user",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false && (role == UserRole.Agent || role == UserRole.Administrator)"},{"key":"sort","value":"firstName,lastName"},{"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"2a0b3baa-4f32-4d6c-86ae-fbcca1ca5582"},{"name":"Users - Find user based on e-mail","id":"45b76c37-88d1-49ab-80e1-2e0ca54cc12c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Accept","value":"application/vnd.api+json"}],"url":"https://{{tenant.pureservice.com}}/agent/api/user/?filter=disabled == false %26%26 emailAddress.Email == \"user@email.com\"","urlObject":{"protocol":"https","path":["agent","api","user",""],"host":["{{tenant.pureservice.com}}"],"query":[{"key":"filter","value":"disabled == false && emailAddress.Email == \"user@email.com\""}],"variable":[]}},"response":[],"_postman_id":"45b76c37-88d1-49ab-80e1-2e0ca54cc12c"},{"name":"User - Basic","id":"95cc31a7-038d-4846-a914-9937ba2afb29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"users\": [\r\n        {\r\n            \"id\": {{userId}},\r\n            \"firstName\": \"Chris\",\r\n            \"middleName\": null,\r\n            \"lastName\": \"Diaz\",\r\n            \"unavailable\": false,\r\n            \"title\": null,\r\n            \"department\": null,\r\n            \"location\": null,\r\n            \"notes\": null,\r\n            \"role\": 10,\r\n            \"type\": 0,\r\n            \"notificationScheme\": 1,\r\n            \"disabled\": false,\r\n            \"isAnonymized\": false,\r\n            \"isSuperuser\": false,\r\n            \"links\": {\r\n                \"credentials\": {\r\n                    \"id\": {{credentialsId}}\r\n                },\r\n                \"company\": {\r\n                    \"id\": {{companyId}}\r\n                },\r\n                \"address\": {\r\n                    \"id\": {{physicalAddressId}}\r\n                },\r\n                \"emailAddress\": {\r\n                    \"id\": {{emailAddressId}}\r\n                },\r\n                \"phonenumber\": {\r\n                    \"id\": {{phonenumberId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/user/{{userId}}","urlObject":{"protocol":"https","path":["agent","api","user","{{userId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"95cc31a7-038d-4846-a914-9937ba2afb29"},{"name":"User - Update emailaddress","event":[{"listen":"test","script":{"id":"72ee7783-097a-4109-bf14-b9583a4739f2","exec":[""],"type":"text/javascript"}}],"id":"62c129d7-4238-4484-b2bd-c597ce2364b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"emailaddresses\": [\r\n        {\r\n            \"id\": {{emailAddressId}},\r\n            \"email\": \"useremail@company.local\",\r\n            \"links\": {\r\n                \"user\": {\r\n                    \"id\": {{userId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/emailaddress/{{emailAddressId}}","urlObject":{"protocol":"https","path":["agent","api","emailaddress","{{emailAddressId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"62c129d7-4238-4484-b2bd-c597ce2364b9"},{"name":"User - Update phonenumber","event":[{"listen":"test","script":{"id":"0cc76f00-bd39-45ee-b957-340a9a239e46","exec":[""],"type":"text/javascript"}}],"id":"6d743b7f-c35e-4272-8e3f-f12e7dc7cea7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"phonenumbers\": [\r\n        {\r\n            \"id\": {{phonenumberId}},\r\n            \"number\": \"+47 11223344\",\r\n            \"type\": 3,\r\n            \"links\": {\r\n                \"user\": {\r\n                    \"id\": {{userId}}\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/phonenumber/{{phonenumberId}}","description":"<h4 id=\"enum-phonenumbertype\">Enum PhonenumberType</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    Home = 0,\n    Cellphone = 1,\n    Fax = 2,\n    Business = 3\n}\n\n</code></pre>","urlObject":{"protocol":"https","path":["agent","api","phonenumber","{{phonenumberId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6d743b7f-c35e-4272-8e3f-f12e7dc7cea7"},{"name":"User - Update address","event":[{"listen":"test","script":{"id":"4a12aeb3-22c3-4b11-a52e-84a98e516f7f","exec":[""],"type":"text/javascript"}}],"id":"37671efa-d864-4f8d-9e9a-a727457ebab6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Authorization-Key","value":"{{apikey}}"},{"key":"Content-Type","value":"application/vnd.api+json"}],"body":{"mode":"raw","raw":"{\r\n    \"physicaladdresses\": [\r\n        {\r\n            \"id\": {{physicaladdressId}},\r\n            \"streetAddress\": \"Magnolia Lawn\",\r\n            \"city\": \"Midland\",\r\n            \"postalCode\": \"1234\",\r\n            \"country\": \"Fictasia\"\r\n        }\r\n    ]\r\n}"},"url":"https://{{tenant.pureservice.com}}/agent/api/physicaladdress/{{physicaladdressId}}","urlObject":{"protocol":"https","path":["agent","api","physicaladdress","{{physicaladdressId}}"],"host":["{{tenant.pureservice.com}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"37671efa-d864-4f8d-9e9a-a727457ebab6"}],"id":"73ecae8c-2644-43c1-b0c6-e92c307b1922","description":"<h4 id=\"static-values-for-userrole\">Static values for UserRole</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    None = 0,\n    PendingActivate = 1,\n    LocationPendingActivate = 2,\n    Enduser = 10,\n    Agent = 20,\n    ZoneAdmin = 25,\n    Administrator = 30,\n    System = 50\n}\n\n</code></pre>\n","_postman_id":"73ecae8c-2644-43c1-b0c6-e92c307b1922"}],"event":[{"listen":"prerequest","script":{"id":"cf59cc33-e146-4a8b-88ed-b7bdd96ea36a","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"b672a455-b128-4099-b5d8-879b3df58c8e","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"{{tenant.pureservice.com}}","value":""},{"key":"{{apiKey}}","value":""}]}